Skip to content

Commit 6737f60

Browse files
committed
Update install.sh to use server-side apply
The install of OLM CRDs via install.sh via apply was failing due to the 'last-applied-configuration' annotation causing the size of the CRD annotations to be too large for the server to accept. Applying via server-side apply does not cause the annotation to be automatically appended to the object, so the application goes through successfully. Signed-off-by: Daniel Sover <[email protected]>
1 parent 3002cf7 commit 6737f60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ if kubectl get deployment olm-operator -n ${namespace} > /dev/null 2>&1; then
2929
exit 1
3030
fi
3131

32-
kubectl apply -f "${url}/crds.yaml"
32+
kubectl apply --server-side=true -f "${url}/crds.yaml"
3333
kubectl wait --for=condition=Established -f "${url}/crds.yaml"
34-
kubectl apply -f "${url}/olm.yaml"
34+
kubectl apply --server-side=true -f "${url}/olm.yaml"
3535

3636
# wait for deployments to be ready
3737
kubectl rollout status -w deployment/olm-operator --namespace="${namespace}"

0 commit comments

Comments
 (0)