Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kubernetes-module): handle namespace attribute correctly #1197

Merged
merged 2 commits into from
Sep 18, 2019

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Sep 17, 2019

What this PR does / why we need it:

Previously we set the --namespace flag when applying the specified
resources. We now instead ensure the namespace property is set on every
relevant resource.

Also improved the log output when exec-ing external commands.

Which issue(s) this PR fixes:

Fixes #1191

}

function getSelector(service: KubernetesService) {
return `${gardenAnnotationKey("service")}=${service.name}`
}

async function getManifests(module: KubernetesModule): Promise<KubernetesResource[]> {
async function readManifests(module: KubernetesModule) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a comment above this function and the getManifests function below so the difference is clear.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Previously we set the --namespace flag when applying the specified
resources. We now instead ensure the namespace property is set on every
relevant resource.

Fixes #1191
@edvald edvald force-pushed the fix-namespace-handling branch from 0af1cfb to b6fffd0 Compare September 18, 2019 07:35
@eysi09 eysi09 merged commit 3592588 into master Sep 18, 2019
@eysi09 eysi09 deleted the fix-namespace-handling branch September 18, 2019 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module type: kubernetes with rbac settings produce an error
2 participants