Skip to content

Commit

Permalink
Merge pull request #131 from erhancagirici/xp-version-no-leading-v
Browse files Browse the repository at this point in the history
add CRD validation for XP version in ControlPlanes has no leading v
  • Loading branch information
phisco authored Dec 13, 2024
2 parents 4cc346d + c1dabdf commit bc7b5a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apis/spaces/v1beta1/controlplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ type CrossplaneAutoUpgradeSpec struct {
type CrossplaneSpec struct {
// Version is the version of Universal Crossplane to install.
// +optional
// +kubebuilder:validation:XValidation:rule=(self.matches('^[^v].*')),message=The version must not start with a leading 'v'
Version *string `json:"version,omitempty"`

// AutoUpgrades defines the auto upgrade configuration for Crossplane.
Expand Down

0 comments on commit bc7b5a1

Please sign in to comment.