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

KEP-31: Impl of --create-namespace #1531

Merged
merged 1 commit into from
May 18, 2020
Merged

KEP-31: Impl of --create-namespace #1531

merged 1 commit into from
May 18, 2020

Conversation

kensipe
Copy link
Member

@kensipe kensipe commented May 18, 2020

Working version of --create-namespace with namespaceManifest file as defined in KEP 31

Tests still need to be added but it is tested fully functional with errors on namespace exits and with and without provided manifest file.

Properly need to test with corrupt manifest file ++

IMPORTANT CONTEXT:

  1. This provides --create-namespace functionality and a) creates a namespace, b) fails if it exists and c) creates a namespace with manifest
  2. Future PRs to provide a) template capabilities in namespace manifest file and b) package verify of namespace and errors on namespace manifests in the operator

Fixes #

Signed-off-by: Ken Sipe kensipe@gmail.com

Signed-off-by: Ken Sipe <kensipe@gmail.com>

I think annotations are good

Signed-off-by: Ken Sipe <kensipe@gmail.com>
@kensipe kensipe changed the title create-namespace working KEP-31: Impl of --create-namespace May 18, 2020
Copy link
Member

@ANeumann82 ANeumann82 left a comment

Choose a reason for hiding this comment

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

lgtm

@kensipe
Copy link
Member Author

kensipe commented May 18, 2020

This PR was originally opped with #1529 and has been open for several days... with approvals in place... merging...

@kensipe kensipe added the release/highlight This PR is a highlight for the next release label May 18, 2020
@kensipe kensipe merged commit ec540a1 into master May 18, 2020
@kensipe kensipe deleted the ken/create-ns3 branch May 18, 2020 18:33
}
ns.TypeMeta.Kind = "Namespace"
ns.Name = namespace
ns.Annotations["created-by"] = "kudo-cli"
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this annotation needed for? And if it's actually needed, let's put it into labels.go with other annotations and prefix it with kudo.dev/???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/highlight This PR is a highlight for the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants