Commit af0f639d authored by Edmund Ochieng's avatar Edmund Ochieng

add patch to set preserveUnknownFields to false in crd

parent f8e3eea7
......@@ -27,6 +27,7 @@ spec:
shortNames:
- gl
singular: gitlab
preserveUnknownFields: false
scope: Namespaced
subresources:
status: {}
......
......@@ -14,6 +14,7 @@ spec:
shortNames:
- gbk
singular: glbackup
preserveUnknownFields: false
scope: Namespaced
subresources:
status: {}
......
......@@ -12,6 +12,7 @@ spec:
listKind: RunnerList
plural: runners
singular: runner
preserveUnknownFields: false
scope: Namespaced
subresources:
status: {}
......
......@@ -65,7 +65,7 @@ metadata:
}
}
]
capabilities: Basic Install
capabilities: Full Lifecycle
categories: Integration & Delivery
certified: "true"
containerImage: registry.connect.redhat.com/gitlab/gitlab-operator:v0.0.1
......
......@@ -22,6 +22,11 @@ patchesStrategicMerge:
#- patches/cainjection_in_glbackups.yaml
# +kubebuilder:scaffold:crdkustomizecainjectionpatch
# Add patch to set spec.preserveUnknownFields to false
- patches/preserve_unknown_gitlabs.yaml
- patches/preserve_unknown_runners.yaml
- patches/preserve_unknown_glbackups.yaml
# the following config is for teaching kustomize how to do kustomization for CRDs.
configurations:
- kustomizeconfig.yaml
# The following patch sets spec.preserveUnknownFields to false in the CRD
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: gitlabs.apps.gitlab.com
spec:
preserveUnknownFields: false
\ No newline at end of file
# The following patch sets spec.preserveUnknownFields to false in the CRD
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: glbackups.apps.gitlab.com
spec:
preserveUnknownFields: false
\ No newline at end of file
# The following patch sets spec.preserveUnknownFields to false in the CRD
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: runners.apps.gitlab.com
spec:
preserveUnknownFields: false
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment