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

Early apply namespaces in addition to CRDs #547

Merged
merged 1 commit into from
May 15, 2020
Merged

Conversation

marccampbell
Copy link
Member

This makes it possible for a KOTS application include a namespace definition and manifest that will be deployed into that namespace, while supporting a single "apply" release.

The operator, which handles the application phase, will extract namespaces from the manifest, apply them before applying the rest of the documents.

There's a 5 second hard coded sleep after CRD and namespace that already exists. The Kubernetes API server will have this much time to actually apply the namespace or the deploy will still fail.

A better solution could be to use an informer to allow for the namespace creation to happen in > 5 seconds. This has not been a problem yet, but this is something to watch for.

@divolgin
Copy link
Member

We'll need to add this to kind: List when that's supported

@marccampbell marccampbell merged commit abaebb1 into master May 15, 2020
@markpundsack markpundsack deleted the preapply-namespaces branch August 5, 2020 15:25
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.

None yet

2 participants