Skip to content

Commit

Permalink
A0-2967: Update kustomize to 4.4.1 (#1331)
Browse files Browse the repository at this point in the history
# Description

Bumps kustomize version from `3.8.6` to `4.4.1` to match the version
used in ArgoCD.
Bumps `setup-kustomize` action version from `v1` to `v2` (that one comes
from Dependabot PR). According to the v2 release notes, there are no
breaking changes.

## Type of change

Action `setup-kustomize` is used in deployment workflows for devnet,
testnet and mainnet.

## Tested

A temporary workflow has been created where apps repository was checked
out and `kustomize build .` was executed in one of the app's overlay to
check if YAML, with kubernetes resources, gets properly generated.

````

jobs:
  main:
    name: Test kustomize
    runs-on: ubuntu-20.04
    steps:
      - name: GIT | Checkout argocd apps repo
        uses: actions/checkout@v3
        with:
          ref: main
          ...

      - name: Init kustomize
        uses: imranismail/setup-kustomize@v2
        with:
          kustomize-version: "4.4.1"

      - name: Test kustomize
        run: |
          cd some-path-here/overlays/devnet/eu-central-1/
          kustomize build .

````
  • Loading branch information
mikolajgs authored Aug 7, 2023
1 parent e96005e commit 9308d95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_update-node-image-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ jobs:
path: "${{ secrets.REPO_ARGOCD_APPS_NAME }}"

- name: Init kustomize
uses: imranismail/setup-kustomize@v1
uses: imranismail/setup-kustomize@v2
with:
kustomize-version: "3.8.6"
kustomize-version: "4.4.1"

- name: Update aleph-node docker image and trigger ArgoCD deploy for ${{ inputs.env }}
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-send-postsync-hook-runtime-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
path: "${{ secrets.REPO_ARGOCD_APPS_NAME }}"

- name: Init kustomize
uses: imranismail/setup-kustomize@v1
uses: imranismail/setup-kustomize@v2
with:
kustomize-version: "3.8.6"
kustomize-version: "4.4.1"

- name: Update postsync hook docker image
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/contracts-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ jobs:
ref: main

- name: KUSTOMIZE | Init kustomize
uses: imranismail/setup-kustomize@v1
uses: imranismail/setup-kustomize@v2
with:
kustomize-version: '3.8.6'
kustomize-version: '4.4.1'

- name: KUBECTL | Setup kubectl
uses: azure/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
path: "${{ secrets.REPO_ARGOCD_APPS_NAME }}"

- name: Init kustomize
uses: imranismail/setup-kustomize@v1
uses: imranismail/setup-kustomize@v2
with:
kustomize-version: "3.8.6"
kustomize-version: "4.4.1"

- name: Setup kubectl
uses: azure/[email protected]
Expand Down

0 comments on commit 9308d95

Please sign in to comment.