Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JHeilCoveo committed Sep 18, 2019
1 parent 491e023 commit 55e7412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iam_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
logger.info("Could not load kubeconfig. Error is : {}".format(e))

API = client.CoreV1Api()
custom_objets_API = client.CustomObjectsApi()
custom_objects_API = client.CustomObjectsApi()

@kopf.on.update('iamauthenticator.k8s.aws', 'v1alpha1', 'iamidentitymappings')
@kopf.on.create('iamauthenticator.k8s.aws', 'v1alpha1', 'iamidentitymappings')
Expand Down Expand Up @@ -43,7 +43,7 @@ def delete_mapping(body: dict, meta: dict, spec: dict, **kwargs):
def full_synchronize():
# Get Kubernetes' objects
cm = API.read_namespaced_config_map('aws-auth', 'kube-system')
identity_mappings = custom_objets_API.list_cluster_custom_object('iamauthenticator.k8s.aws', 'v1alpha1', 'iamidentitymappings')
identity_mappings = custom_objects_API.list_cluster_custom_object('iamauthenticator.k8s.aws', 'v1alpha1', 'iamidentitymappings')

users = get_user_mapping(cm)
users = users if type(users) == "list" else list()
Expand Down

0 comments on commit 55e7412

Please sign in to comment.