-
Notifications
You must be signed in to change notification settings - Fork 517
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
CFE-1167: Feature-gated MachineNamePrefix field for CMPS #2086
base: master
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
Hello @chiragkyal! Some important instructions when contributing to openshift/api: |
2c36507
to
0e34d83
Compare
@chiragkyal: This pull request references CFE-1167 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@chiragkyal: This pull request references CFE-1167 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@chiragkyal: This pull request references CFE-1167 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/assign @JoelSpeed |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: chiragkyal The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
It looks like the integration test is failing only on
Seems like Lines 532 to 546 in a2817b8
Lines 564 to 569 in a2817b8
@JoelSpeed Are we expecting |
No, it is as expected, we don't want the gate in any feature set just yet. Do you know why there is a difference? There shouldn't be a default on those fields IIRC, so I wouldn't expect it to interfere |
Oops, it does have a default, try adding |
I tried adding
but it looks like we cannot add more than one gate. The test is erroing out locally.
|
12cc271
to
77b2eb5
Compare
b9d5c67
to
3957069
Compare
3957069
to
b24c801
Compare
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$` | ||
// +kubebuilder:validation:MinLength=1 | ||
// +kubebuilder:validation:MaxLength=32 |
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.
We want to update the validation to check for dns1123Subdomain
format., which will look something like
// +openshift:validation:FeatureGateAwareXValidation:featureGate=CMPSMachineNamePrefix,rule="format.dns1123Subdomain.validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character"
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=245
However, the CEL format validation requires K8s 1.32 which is under WIP and will land soon in 4.18/4.19.
b24c801
to
8fe3819
Compare
Signed-off-by: chiragkyal <[email protected]>
Signed-off-by: chiragkyal <[email protected]>
Signed-off-by: chiragkyal <[email protected]>
8fe3819
to
4857916
Compare
Signed-off-by: chiragkyal <[email protected]>
@chiragkyal: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This PR
Introduces
MachineNamePrefix
field inControlPlaneMachineSet
allowing custom prefixes to be used for Control Plane Machine names.This feature is gated behind the
CMPSMachineNamePrefix
feature gate.Feature gate PR : CFE-1168: Add CMPSMachineNamePrefix feature-gate #2094
Implements CFE-1166: Customizing control plane machine names enhancements#1714
Part of CFE-1167