diff --git a/charts/policy-controller/templates/crds/clusterimagepolicy.yaml b/charts/policy-controller/templates/crds/clusterimagepolicy.yaml index 9fb4269d..76e52385 100644 --- a/charts/policy-controller/templates/crds/clusterimagepolicy.yaml +++ b/charts/policy-controller/templates/crds/clusterimagepolicy.yaml @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +{{- if .Values.installCRDs }} apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -702,3 +703,4 @@ spec: description: ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. type: integer format: int64 +{{- end }} diff --git a/charts/policy-controller/templates/crds/trustroots.yaml b/charts/policy-controller/templates/crds/trustroots.yaml index f9336a5d..b96f8ed6 100644 --- a/charts/policy-controller/templates/crds/trustroots.yaml +++ b/charts/policy-controller/templates/crds/trustroots.yaml @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +{{- if .Values.installCRDs }} apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -180,3 +181,4 @@ spec: description: ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. type: integer format: int64 +{{- end }}