Skip to content

Commit ec9bf3f

Browse files
Merge pull request #2105 from bertinatto/decrease-runlevel-clustercsidrivers
OCPBUGS-44324 : Rename files to use the default run-level for storage
2 parents caf9796 + 15f5718 commit ec9bf3f

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

hack/update-payload-crds.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ crd_globs="\
2626
operator/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfigurations*.crd.yaml
2727
config/v1alpha1/zz_generated.crd-manifests/0000_10_config-operator_01_clusterimagepolicies*.crd.yaml
2828
config/v1alpha1/zz_generated.crd-manifests/0000_10_config-operator_01_imagepolicies*.crd.yaml
29-
operator/v1/zz_generated.crd-manifests/0000_50_storage_01_storages*.crd.yaml
30-
operator/v1/zz_generated.crd-manifests/0000_90_csi-driver_01_clustercsidrivers*.crd.yaml
29+
operator/v1/zz_generated.crd-manifests/*_storage_01_storages*.crd.yaml
30+
operator/v1/zz_generated.crd-manifests/*_csi-driver_01_clustercsidrivers*.crd.yaml
3131
"
3232

3333
# To allow the crd_globs to be sourced in the verify script,
3434
# wrap the copy action to prevent it running when sourced.
3535
if [ "$0" = "$BASH_SOURCE" ] ; then
36+
rm -rf "${SCRIPT_ROOT}/payload-manifests/crds/"*
3637
for f in ${crd_globs}; do
3738
cp "$f" "${SCRIPT_ROOT}/payload-manifests/crds/"
3839
done

operator/v1/types_csi_cluster_driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
// +kubebuilder:resource:path=clustercsidrivers,scope=Cluster
2121
// +kubebuilder:subresource:status
2222
// +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/701
23-
// +openshift:file-pattern=cvoRunLevel=0000_90,operatorName=csi-driver,operatorOrdering=01
23+
// +openshift:file-pattern=cvoRunLevel=0000_50,operatorName=csi-driver,operatorOrdering=01
2424

2525
// ClusterCSIDriver object allows management and configuration of a CSI driver operator
2626
// installed by default in OpenShift. Name of the object must be name of the CSI driver
@@ -71,7 +71,7 @@ const (
7171
RemovedStorageClass StorageClassStateName = "Removed"
7272
)
7373

74-
// If you are adding a new driver name here, ensure that 0000_90_cluster_csi_driver_01_config.crd.yaml-merge-patch file is also updated with new driver name.
74+
// If you are adding a new driver name here, ensure that 0000_50_cluster_csi_driver_01_config.crd.yaml-merge-patch file is also updated with new driver name.
7575
const (
7676
AWSEBSCSIDriver CSIDriverName = "ebs.csi.aws.com"
7777
AWSEFSCSIDriver CSIDriverName = "efs.csi.aws.com"

operator/v1/zz_generated.featuregated-crd-manifests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ clustercsidrivers.operator.openshift.io:
7373
- VSphereDriverConfiguration
7474
FilenameOperatorName: csi-driver
7575
FilenameOperatorOrdering: "01"
76-
FilenameRunLevel: "0000_90"
76+
FilenameRunLevel: "0000_50"
7777
GroupName: operator.openshift.io
7878
HasStatus: true
7979
KindName: ClusterCSIDriver

operator/v1/zz_generated.featuregated-crd-manifests/clustercsidrivers.operator.openshift.io/AAA_ungated.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
api-approved.openshift.io: https://github.com/openshift/api/pull/701
6-
api.openshift.io/filename-cvo-runlevel: "0000_90"
6+
api.openshift.io/filename-cvo-runlevel: "0000_50"
77
api.openshift.io/filename-operator: csi-driver
88
api.openshift.io/filename-ordering: "01"
99
feature-gate.release.openshift.io/: "true"

operator/v1/zz_generated.featuregated-crd-manifests/clustercsidrivers.operator.openshift.io/AWSEFSDriverVolumeMetrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
api-approved.openshift.io: https://github.com/openshift/api/pull/701
6-
api.openshift.io/filename-cvo-runlevel: "0000_90"
6+
api.openshift.io/filename-cvo-runlevel: "0000_50"
77
api.openshift.io/filename-operator: csi-driver
88
api.openshift.io/filename-ordering: "01"
99
feature-gate.release.openshift.io/AWSEFSDriverVolumeMetrics: "true"

operator/v1/zz_generated.featuregated-crd-manifests/clustercsidrivers.operator.openshift.io/VSphereDriverConfiguration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
api-approved.openshift.io: https://github.com/openshift/api/pull/701
6-
api.openshift.io/filename-cvo-runlevel: "0000_90"
6+
api.openshift.io/filename-cvo-runlevel: "0000_50"
77
api.openshift.io/filename-operator: csi-driver
88
api.openshift.io/filename-ordering: "01"
99
feature-gate.release.openshift.io/VSphereDriverConfiguration: "true"

0 commit comments

Comments
 (0)