Skip to content

Commit

Permalink
Merge pull request #410 from jstourac/fix28KubectlDownstream
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 Oct 14, 2024
2 parents 2c2e35a + 75ad655 commit 0958a0f
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 @@ -55,16 +55,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 0958a0f

Please sign in to comment.