-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
update kustomize scaffolding to work with kustomize 2.0 #614
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Liujingfang1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@Liujingfang1 Will this new structure work with kustomize 1.0.0 as well ? I am thinking of cases where users have projects with current/new kustomization structure, but they have older kustomize (1.0.0) will it work for both ? because upgrading to kustomize 2.0.0 will force them to migrate to newer structure. Also, was wondering if we can update the issue with set of kustomize commands to run to migrate the old structure to work with new structure. |
@droot Yes, this structure works with kustomize 1.0 as well. |
There is no commands in Kustomize to migrate the structures. It requires manual work :( |
@droot I added some instructions for migrating from the old structure to the new structure in the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. one small thing to confirm, have left a comment.
- ../rbac/auth_proxy_role.yaml | ||
- ../rbac/auth_proxy_role_binding.yaml | ||
bases: | ||
- ../rbac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to double check, but rbac manifests get generated everytime make runs, so not sure if delete all yamls in rbac
directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC it doesn't delete everything, it overwrites the content in ../rbac/rbac_role.yaml
. We'd better confirm it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed, it doesn't delete, so the change is good.
@Liujingfang1 The change is good, but we do not have an e2e test in travis which can verify this. we generally test |
@droot Sure, I'll test it manually :) |
I ran following commands and all of them succeeded. @droot
|
Awesome. Thanks for the e2e test. |
Fix #595