Skip to content

Commit 1672739

Browse files
authored
Update install.sh to use create (#2771)
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. Creating the CRDs via kubectl create does not cause the annotation to be automatically appended to the object, so the application goes through successfully. Installing via create means that the install.sh script does not support updating an existing OLM installation, but there are already checks in place to abort the install if an existing OLM installation is detected. Signed-off-by: Daniel Sover <[email protected]>
1 parent 3002cf7 commit 1672739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/install.sh

+2-2
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 create -f "${url}/crds.yaml"
3333
kubectl wait --for=condition=Established -f "${url}/crds.yaml"
34-
kubectl apply -f "${url}/olm.yaml"
34+
kubectl create -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)