Skip to content

Commit

Permalink
Update install.sh to use create (#2771)
Browse files Browse the repository at this point in the history
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 <dsover@redhat.com>
  • Loading branch information
exdx authored May 11, 2022
1 parent 3002cf7 commit 1672739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ if kubectl get deployment olm-operator -n ${namespace} > /dev/null 2>&1; then
exit 1
fi

kubectl apply -f "${url}/crds.yaml"
kubectl create -f "${url}/crds.yaml"
kubectl wait --for=condition=Established -f "${url}/crds.yaml"
kubectl apply -f "${url}/olm.yaml"
kubectl create -f "${url}/olm.yaml"

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

0 comments on commit 1672739

Please sign in to comment.