@@ -83,31 +83,21 @@ createnamespaces:
83
83
deletenamespaces :
84
84
$(PGO_KUBE_CLIENT ) delete -k ./config/namespace
85
85
86
- # Note: For 'install', 'deploy' and 'deploy-dev' below
87
- # Using `--server-side --force-conflicts` when applying the K8s objects in order to
88
- # A) remove the `kubectl.kubernetes.io/last-applied-configuration` from the CRD since it
89
- # was violating the limit on size of `metadata.annotations`
90
- # - https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go#L36
91
- # B) overriding conflicts around managed fields during subsequent applies;
92
- # the fields that were erroring in a local k3s cluster were `.status.conditions`,
93
- # `.status.acceptedNames.kind`, and `.status.acceptedNames.plural`, which were managed by
94
- # `k3s` rather than by `kubectl`
95
-
96
86
# Install the postgrescluster CRD
97
87
install :
98
- $(PGO_KUBE_CLIENT ) apply --server-side --force-conflicts - k ./config/crd
88
+ $(PGO_KUBE_CLIENT ) apply --server-side -k ./config/crd
99
89
100
90
# Delete the postgrescluster CRD
101
91
uninstall :
102
92
$(PGO_KUBE_CLIENT ) delete -k ./config/crd
103
93
104
94
# Deploy the PostgreSQL Operator (enables the postgrescluster controller)
105
95
deploy :
106
- $(PGO_KUBE_CLIENT ) apply --server-side --force-conflicts - k ./config/default
96
+ $(PGO_KUBE_CLIENT ) apply --server-side -k ./config/default
107
97
108
98
# Deploy the PostgreSQL Operator locally
109
99
deploy-dev : build-postgres-operator createnamespaces
110
- $(PGO_KUBE_CLIENT ) apply --server-side --force-conflicts - k ./config/dev
100
+ $(PGO_KUBE_CLIENT ) apply --server-side -k ./config/dev
111
101
hack/create-kubeconfig.sh postgres-operator pgo
112
102
env \
113
103
CRUNCHY_DEBUG=true \
@@ -197,17 +187,9 @@ check-envtest: hack/tools/envtest
197
187
KUBEBUILDER_ASSETS=" $( CURDIR) /$^/bin" PGO_NAMESPACE=" postgres-operator" $(GO_TEST ) -count=1 -cover -tags=envtest ./...
198
188
199
189
# - PGO_TEST_TIMEOUT_SCALE=1
200
- # Note: using `--server-side --force-conflicts` when applying the K8s objects in order to
201
- # A) remove the `kubectl.kubernetes.io/last-applied-configuration` from the CRD since it
202
- # was violating the limit on size of `metadata.annotations`
203
- # - https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go#L36
204
- # B) overriding conflicts around managed fields during subsequent applies;
205
- # the fields that were erroring in a local k3s cluster were `.status.conditions`,
206
- # `.status.acceptedNames.kind`, and `.status.acceptedNames.plural`, which were managed by
207
- # `k3s` rather than by `kubectl`
208
190
.PHONY : check-envtest-existing
209
191
check-envtest-existing : createnamespaces
210
- ${PGO_KUBE_CLIENT} apply --server-side --force-conflicts - k ./config/dev
192
+ ${PGO_KUBE_CLIENT} apply --server-side -k ./config/dev
211
193
USE_EXISTING_CLUSTER=true PGO_NAMESPACE=" postgres-operator" $(GO_TEST ) -count=1 -cover -p=1 -tags=envtest ./...
212
194
${PGO_KUBE_CLIENT} delete -k ./config/dev
213
195
0 commit comments