Skip to content

Commit

Permalink
Merge pull request #682 from jstourac/pinKustomize
Browse files Browse the repository at this point in the history
[GHA] Pin kustomize version we use in our test to the particular version
  • Loading branch information
openshift-merge-bot[bot] authored Aug 21, 2024
2 parents 5573f26 + bd8c310 commit 3b67f97
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,23 @@ jobs:
echo "Hadolint done"
# This simply checks that the manifests and respective kustomization.yaml finishes without an error.
# Version of the kustomize that operator use in runtime to apply these changes is determined by:
# https://github.com/red-hat-data-services/rhods-operator/blob/7ccc405135f99c014982d7e297b8949e970dd750/go.mod#L28-L29
# and then to match appropriate kustomize release https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.0.2
- name: Check kustomize manifest
id: kustomize-manifests
run: |
kubectl version --client=true
KUSTOMIZE_VERSION=5.0.2
wget "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz"
tar -xvf kustomize*
./kustomize version
echo "----------------------------------------------------------"
echo "Starting 'kubectl kustomize manifests/base'"
echo "Starting './kustomize build manifests/base'"
echo "----------------------------------------------------------"
kubectl kustomize manifests/base
./kustomize build manifests/base
echo "----------------------------------------------------------"
echo "Starting 'kubectl kustomize manifests/overlays/additional'"
echo "Starting './kustomize build manifests/overlays/additional'"
echo "----------------------------------------------------------"
kubectl kustomize manifests/overlays/additional
./kustomize build manifests/overlays/additional

0 comments on commit 3b67f97

Please sign in to comment.