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 RBAC issues with postgresqluser CRD #1131

Merged
merged 9 commits into from
Jun 4, 2020

Conversation

jananivMS
Copy link
Contributor

@jananivMS jananivMS commented Jun 3, 2020

It looks like the Postgresqluser PR added a kubebuilder directive for shortname that defined a different name for the CRD. This is causing issues when making helm chart manifests and deploying to AKS cluster.

Removing this directive now as we are looking at shortnames in a different PR.

After this, I still have RBAC issues with this CRD. So had to enable RBAC through the kubebuilder directive in main.go. This aberration seems mostly because of not using Kubebuilder to generate the CRD

melonrush13
melonrush13 previously approved these changes Jun 3, 2020
Copy link
Contributor

@melonrush13 melonrush13 left a comment

Choose a reason for hiding this comment

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

LGTM!

Looks like it is in the current PR for MySQL too which is in review. We should remove it there too when/if you fix that delete bug!

@jananivMS jananivMS changed the title remove kubebuilder directive that defines a different name for CRD Fix RBAC issues with postgresqluser CRD Jun 4, 2020
@buhongw7583c buhongw7583c self-requested a review June 4, 2020 04:25
@jananivMS jananivMS requested review from buhongw7583c and melonrush13 and removed request for buhongw7583c June 4, 2020 04:28
Copy link
Contributor

@buhongw7583c buhongw7583c left a comment

Choose a reason for hiding this comment

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

Successfully deployed on AKS and verify the creation of posgresqlserver/database/firwallrul/user successfully.

@buhongw7583c
Copy link
Contributor

@jananivMS Janani, I can now successfully deploy the CRD on AKS and verify the creation of postgresqlserver/database/firewallrule/user. But seems the PR can only be reviewed with at least one of the code owners' approval.

Copy link
Contributor

@WilliamMortlMicrosoft WilliamMortlMicrosoft left a comment

Choose a reason for hiding this comment

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

lgtm

@jananivMS jananivMS merged commit df00e2a into Azure:master Jun 4, 2020
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.

4 participants