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

K8SPS-61: Rename CRD to PerconaServerMySQL #45

Merged
merged 2 commits into from
Jan 25, 2022
Merged

K8SPS-61: Rename CRD to PerconaServerMySQL #45

merged 2 commits into from
Jan 25, 2022

Conversation

egegunes
Copy link
Contributor

We're also changing the api version (from v2 to v1alpha1) of our CRD. It
may break the new deployments if the old CRDs installed in the cluster.

In case of any errors, delete the old ones:

kubectl delete crd perconaserverformysqls.ps.percona.com
kubectl delete crd perconaserverformysqlbackups.ps.percona.com
kubectl delete crd perconaserverformysqlrestores.ps.percona.com

@egegunes egegunes requested review from delgod, tplavcic and hors January 21, 2022 06:38
Copy link
Collaborator

@hors hors left a comment

Choose a reason for hiding this comment

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

@egegunes please add task number to the PR

Copy link
Member

@tplavcic tplavcic left a comment

Choose a reason for hiding this comment

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

In rbac.yaml our roles/rolesbindings are called like:

  name: percona-server-for-mysql-operator-leader-election-role
  name: percona-server-for-mysql-operator-role
  name: percona-server-for-mysql-operator-leader-election-rolebinding
  name: percona-server-for-mysql-operator-leader-election-role
  name: percona-server-for-mysql-operator-rolebinding

so they have suffix -role and -rolebinding which I don't see in PSMDB/PXC operators.
Maybe consider making it the same.
https://github.com/percona/percona-server-mysql-operator/blob/main/deploy/rbac.yaml#L9
https://github.com/percona/percona-xtradb-cluster-operator/blob/main/deploy/rbac.yaml
https://github.com/percona/percona-server-mongodb-operator/blob/main/deploy/rbac.yaml

We're also changing the api version (from v2 to v1alpha1) of our CRD. It
may break the new deployments if the old CRDs installed in the cluster.

In case of any errors, delete the old ones:

```
kubectl delete crd perconaserverformysqls.ps.percona.com
kubectl delete crd perconaserverformysqlbackups.ps.percona.com
kubectl delete crd perconaserverformysqlrestores.ps.percona.com
```
@egegunes egegunes changed the title Rename CRD to PerconaServerMySQL K8SPS-61: Rename CRD to PerconaServerMySQL Jan 24, 2022
@JNKPercona
Copy link
Collaborator

Test name Status
init-deploy passed
semi-sync passed
monitoring passed
sidecars passed
config passed
users passed

commit: 8ab54f7
image: perconalab/percona-server-mysql-operator:PR-45-8ab54f7

@delgod delgod removed their request for review January 24, 2022 13:58
@egegunes egegunes requested review from delgod and tplavcic January 24, 2022 14:27
@egegunes
Copy link
Contributor Author

@tplavcic 8ab54f7

@egegunes egegunes requested review from spron-in and removed request for delgod January 24, 2022 14:29
@egegunes egegunes merged commit d30e84e into main Jan 25, 2022
@egegunes egegunes deleted the K8SPS-61 branch January 25, 2022 08:55
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.

5 participants