From 30548977faccfd0a98b37f9b26b5680a8f806db5 Mon Sep 17 00:00:00 2001 From: encalada Date: Tue, 9 Jan 2024 09:51:22 -0500 Subject: [PATCH] switch storage version --- deploy/crds/shipwright.io_buildruns.yaml | 4 ++-- deploy/crds/shipwright.io_builds.yaml | 4 ++-- deploy/crds/shipwright.io_buildstrategies.yaml | 4 ++-- deploy/crds/shipwright.io_clusterbuildstrategies.yaml | 4 ++-- pkg/apis/build/v1alpha1/build_types.go | 1 - pkg/apis/build/v1alpha1/buildrun_types.go | 1 - pkg/apis/build/v1alpha1/buildstrategy_types.go | 1 - pkg/apis/build/v1alpha1/clusterbuildstrategy_types.go | 1 - pkg/apis/build/v1beta1/build_types.go | 1 + pkg/apis/build/v1beta1/buildrun_types.go | 1 + pkg/apis/build/v1beta1/buildstrategy_types.go | 1 + pkg/apis/build/v1beta1/clusterbuildstrategy_types.go | 1 + 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/deploy/crds/shipwright.io_buildruns.yaml b/deploy/crds/shipwright.io_buildruns.yaml index d3cb6e5b2e..bd68b3fac7 100644 --- a/deploy/crds/shipwright.io_buildruns.yaml +++ b/deploy/crds/shipwright.io_buildruns.yaml @@ -6347,7 +6347,7 @@ spec: - spec type: object served: true - storage: true + storage: false subresources: status: {} - additionalPrinterColumns: @@ -12566,7 +12566,7 @@ spec: - spec type: object served: true - storage: false + storage: true subresources: status: {} diff --git a/deploy/crds/shipwright.io_builds.yaml b/deploy/crds/shipwright.io_builds.yaml index a76781a66f..82bbd07b67 100644 --- a/deploy/crds/shipwright.io_builds.yaml +++ b/deploy/crds/shipwright.io_builds.yaml @@ -2143,7 +2143,7 @@ spec: - spec type: object served: true - storage: true + storage: false subresources: status: {} - additionalPrinterColumns: @@ -4197,7 +4197,7 @@ spec: - spec type: object served: true - storage: false + storage: true subresources: status: {} diff --git a/deploy/crds/shipwright.io_buildstrategies.yaml b/deploy/crds/shipwright.io_buildstrategies.yaml index 2887d73696..0c2c0779bb 100644 --- a/deploy/crds/shipwright.io_buildstrategies.yaml +++ b/deploy/crds/shipwright.io_buildstrategies.yaml @@ -2930,7 +2930,7 @@ spec: type: object type: object served: true - storage: true + storage: false subresources: status: {} - name: v1beta1 @@ -5026,7 +5026,7 @@ spec: type: object type: object served: true - storage: false + storage: true subresources: status: {} diff --git a/deploy/crds/shipwright.io_clusterbuildstrategies.yaml b/deploy/crds/shipwright.io_clusterbuildstrategies.yaml index c7f5467c6c..1ed12dee0e 100644 --- a/deploy/crds/shipwright.io_clusterbuildstrategies.yaml +++ b/deploy/crds/shipwright.io_clusterbuildstrategies.yaml @@ -2930,7 +2930,7 @@ spec: type: object type: object served: true - storage: true + storage: false subresources: status: {} - name: v1beta1 @@ -5026,7 +5026,7 @@ spec: type: object type: object served: true - storage: false + storage: true subresources: status: {} diff --git a/pkg/apis/build/v1alpha1/build_types.go b/pkg/apis/build/v1alpha1/build_types.go index e9f3789079..8023c71f32 100644 --- a/pkg/apis/build/v1alpha1/build_types.go +++ b/pkg/apis/build/v1alpha1/build_types.go @@ -257,7 +257,6 @@ type BuildStatus struct { // Build is the Schema representing a Build definition // +kubebuilder:subresource:status -// +kubebuilder:storageversion // +kubebuilder:resource:path=builds,scope=Namespaced // +kubebuilder:printcolumn:name="Registered",type="string",JSONPath=".status.registered",description="The register status of the Build" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.reason",description="The reason of the registered Build, either an error or succeed message" diff --git a/pkg/apis/build/v1alpha1/buildrun_types.go b/pkg/apis/build/v1alpha1/buildrun_types.go index f8458f82b2..3f85bdfec4 100644 --- a/pkg/apis/build/v1alpha1/buildrun_types.go +++ b/pkg/apis/build/v1alpha1/buildrun_types.go @@ -230,7 +230,6 @@ type ServiceAccount struct { // BuildRun is the Schema representing an instance of build execution // +kubebuilder:subresource:status -// +kubebuilder:storageversion // +kubebuilder:resource:path=buildruns,scope=Namespaced,shortName=br;brs // +kubebuilder:printcolumn:name="Succeeded",type="string",JSONPath=".status.conditions[?(@.type==\"Succeeded\")].status",description="The Succeeded status of the BuildRun" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type==\"Succeeded\")].reason",description="The Succeeded reason of the BuildRun" diff --git a/pkg/apis/build/v1alpha1/buildstrategy_types.go b/pkg/apis/build/v1alpha1/buildstrategy_types.go index 395e459f81..3bb7373927 100644 --- a/pkg/apis/build/v1alpha1/buildstrategy_types.go +++ b/pkg/apis/build/v1alpha1/buildstrategy_types.go @@ -26,7 +26,6 @@ const ( // BuildStrategy is the Schema representing a strategy in the namespace scope to build images from source code. // +kubebuilder:subresource:status -// +kubebuilder:storageversion // +kubebuilder:resource:path=buildstrategies,scope=Namespaced,shortName=bs;bss type BuildStrategy struct { metav1.TypeMeta `json:",inline"` diff --git a/pkg/apis/build/v1alpha1/clusterbuildstrategy_types.go b/pkg/apis/build/v1alpha1/clusterbuildstrategy_types.go index b247167bf1..ae41c2a85d 100644 --- a/pkg/apis/build/v1alpha1/clusterbuildstrategy_types.go +++ b/pkg/apis/build/v1alpha1/clusterbuildstrategy_types.go @@ -27,7 +27,6 @@ const ( // ClusterBuildStrategy is the Schema representing a strategy in the cluster scope to build images from source code. // +kubebuilder:subresource:status -// +kubebuilder:storageversion // +kubebuilder:resource:path=clusterbuildstrategies,scope=Cluster,shortName=cbs;cbss type ClusterBuildStrategy struct { metav1.TypeMeta `json:",inline"` diff --git a/pkg/apis/build/v1beta1/build_types.go b/pkg/apis/build/v1beta1/build_types.go index 738fa05e14..0c2225e58f 100644 --- a/pkg/apis/build/v1beta1/build_types.go +++ b/pkg/apis/build/v1beta1/build_types.go @@ -220,6 +220,7 @@ type BuildStatus struct { // Build is the Schema representing a Build definition // +kubebuilder:subresource:status +// +kubebuilder:storageversion // +kubebuilder:resource:path=builds,scope=Namespaced // +kubebuilder:printcolumn:name="Registered",type="string",JSONPath=".status.registered",description="The register status of the Build" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.reason",description="The reason of the registered Build, either an error or succeed message" diff --git a/pkg/apis/build/v1beta1/buildrun_types.go b/pkg/apis/build/v1beta1/buildrun_types.go index 7a40e822b0..b32ba0e10f 100644 --- a/pkg/apis/build/v1beta1/buildrun_types.go +++ b/pkg/apis/build/v1beta1/buildrun_types.go @@ -213,6 +213,7 @@ type FailureDetails struct { // BuildRun is the Schema representing an instance of build execution // +kubebuilder:subresource:status +// +kubebuilder:storageversion // +kubebuilder:resource:path=buildruns,scope=Namespaced,shortName=br;brs // +kubebuilder:printcolumn:name="Succeeded",type="string",JSONPath=".status.conditions[?(@.type==\"Succeeded\")].status",description="The Succeeded status of the BuildRun" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type==\"Succeeded\")].reason",description="The Succeeded reason of the BuildRun" diff --git a/pkg/apis/build/v1beta1/buildstrategy_types.go b/pkg/apis/build/v1beta1/buildstrategy_types.go index 2d1ece058f..1613164c7d 100644 --- a/pkg/apis/build/v1beta1/buildstrategy_types.go +++ b/pkg/apis/build/v1beta1/buildstrategy_types.go @@ -26,6 +26,7 @@ const ( // BuildStrategy is the Schema representing a strategy in the namespace scope to build images from source code. // +kubebuilder:subresource:status +// +kubebuilder:storageversion // +kubebuilder:resource:path=buildstrategies,scope=Namespaced,shortName=bs;bss type BuildStrategy struct { metav1.TypeMeta `json:",inline"` diff --git a/pkg/apis/build/v1beta1/clusterbuildstrategy_types.go b/pkg/apis/build/v1beta1/clusterbuildstrategy_types.go index 42df58465f..c6c612c391 100644 --- a/pkg/apis/build/v1beta1/clusterbuildstrategy_types.go +++ b/pkg/apis/build/v1beta1/clusterbuildstrategy_types.go @@ -27,6 +27,7 @@ const ( // ClusterBuildStrategy is the Schema representing a strategy in the cluster scope to build images from source code. // +kubebuilder:subresource:status +// +kubebuilder:storageversion // +kubebuilder:resource:path=clusterbuildstrategies,scope=Cluster,shortName=cbs;cbss type ClusterBuildStrategy struct { metav1.TypeMeta `json:",inline"`