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

Switch cinder-api to a statefulset #309

Merged

Conversation

ASBishop
Copy link
Contributor

Change cinder-api from a deployment to a statefulset. Although the service doesn't require preserving stateful data, it helps with the pod naming convention so they're similar to glance-api pods, and eliminates the squirrely suffixes like "cinder-api-xzkpl"

Copy link
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

In general I'm +1 to move to statefulset and be consistent across the board. I don't see a particular reason that prevents this kind of switch.
We'll make another pass once the issues w/ controller-gen are resolved, but I'm not against this change.

@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.1
controller-gen.kubebuilder.io/version: v0.10.0
Copy link
Contributor

Choose a reason for hiding this comment

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

you probably have an older version of controller-gen within your repo because this shouldn't change.
(the same comment applies to the other files).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoa! I knew I was working on an older system that has an old controller-gen, but accidentally "git add -u" when I only meant to update a single file.

@ASBishop ASBishop force-pushed the c-api-statefulset branch 2 times, most recently from cd5f5c7 to 096bec0 Compare December 14, 2023 13:56
@ASBishop
Copy link
Contributor Author

/retest

Change cinder-api from a deployment to a statefulset. Although the
service doesn't require preserving stateful data, it helps with
the pod naming convention so they're similar to glance-api pods,
and eliminates the squirrely suffixes like "cinder-api-xzkpl"
Copy link
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 17, 2023
Copy link
Contributor

openshift-ci bot commented Dec 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ASBishop, fmount

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 31de85a into openstack-k8s-operators:main Dec 17, 2023
7 checks passed
@ASBishop ASBishop deleted the c-api-statefulset branch December 17, 2023 23:53
ASBishop pushed a commit to ASBishop/cinder-operator that referenced this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants