Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

fixing issue where node groups with hooks are not parsed properly #165

Merged
merged 4 commits into from
Jan 7, 2019

Conversation

ejether
Copy link
Contributor

@ejether ejether commented Jan 7, 2019

No description provided.

for policy_type in cluster_spec.get('additionalPolicies', {}):
cluster_spec['additionalPolicies'][policy_type] = literal_unicode(cluster_spec['additionalPolicies'][policy_type])

hook = yaml.load(aws_iam_kops_hook)
hook['manifest'] = literal_unicode(hook['manifest'])
cluster_spec['hooks'].append(hook)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this to a more logical place in the code.

hook['manifest'] = literal_unicode(hook['manifest'])

logging.debug("Removing existing kops-hook-authenticator-config.service at %d", kops_hook_index)
hooks.pop(kops_hook_index)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the pop outside the loop so that we can actually iterate over the list properly and run the literal_unicode on the other hook manifests.

@ejether ejether merged commit 2d30dff into master Jan 7, 2019
@ejether ejether deleted the release/2.7.1 branch January 7, 2019 20:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants