Skip to content

Commit

Permalink
Use semver versioning for default OperatingSystemProfiles (#128)
Browse files Browse the repository at this point in the history
Signed-off-by: Waleed Malik <[email protected]>
  • Loading branch information
ahmedwaleedmalik authored Jan 13, 2022
1 parent eb6aca1 commit f039fa9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions deploy/crd/crd-operating-system-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,4 @@ spec:
version:
description: Version is the version of the operating System Profile
type: string
pattern: v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
2 changes: 1 addition & 1 deletion deploy/osps/default/osp-amzn2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "amzn2"
osVersion: "2.0"
version: "1.0.0"
version: "v0.1.0"
supportedCloudProviders:
- name: "aws"
supportedContainerRuntimes:
Expand Down
2 changes: 1 addition & 1 deletion deploy/osps/default/osp-centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "centos"
osVersion: "7.7"
version: "1.0.0"
version: "v0.1.0"
supportedCloudProviders:
- name: "aws"
- name: "azure"
Expand Down
2 changes: 1 addition & 1 deletion deploy/osps/default/osp-flatcar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
osName: flatcar
## Flatcar Stable (09/11/2021)
osVersion: "2983.2.0"
version: "1.0.0"
version: "v0.1.0"
supportedCloudProviders:
- name: aws
- name: azure
Expand Down
2 changes: 1 addition & 1 deletion deploy/osps/default/osp-rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "rhel"
osVersion: "8.4"
version: "1.0.0"
version: "v0.1.0"
supportedCloudProviders:
- name: "aws"
- name: "azure"
Expand Down
2 changes: 1 addition & 1 deletion deploy/osps/default/osp-sles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: sles
osVersion: "15-SP-1"
version: "1.0.0"
version: "v0.1.0"
supportedCloudProviders:
- name: aws
supportedContainerRuntimes:
Expand Down
2 changes: 1 addition & 1 deletion deploy/osps/default/osp-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "ubuntu"
osVersion: "20.04"
version: "1.0.0"
version: "v0.1.0"
supportedCloudProviders:
- name: "aws"
- name: "azure"
Expand Down
1 change: 1 addition & 0 deletions pkg/crd/osm/v1alpha1/operatingsystemprofile_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type OperatingSystemProfileSpec struct {
// OSVersion the version of the operating system
OSVersion string `json:"osVersion"`
// Version is the version of the operating System Profile
// +kubebuilder:validation:Pattern=`v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`
Version string `json:"version"`
// SupportedCloudProviders represent the cloud providers that support the given operating system version
SupportedCloudProviders []CloudProviderSpec `json:"supportedCloudProviders"`
Expand Down

0 comments on commit f039fa9

Please sign in to comment.