Skip to content

Commit

Permalink
OPSEXP-3005 Update setup-kind (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius authored Jan 23, 2025
1 parent 105d8f6 commit 0c67899
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 27 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/helm-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
timeout-minutes: 10
needs:
- build_vars
env:
REGISTRY_SECRET_NAME: ${{ ! github.event.repository.fork && 'regcred' || '' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -68,21 +70,10 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Setup cluster
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@v8.9.0
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@v8.11.0
with:
ingress-nginx-ref: controller-v1.8.2

- name: Set nginx ingress config
run: |
kubectl -n ingress-nginx patch cm ingress-nginx-controller \
-p '{"data": {"allow-snippet-annotations":"true"}}'
- name: Create registries auth secret
if: ${{ ! github.event.repository.fork }}
run: |
kubectl create secret generic regcred \
--from-file=.dockerconfigjson=$HOME/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
import-docker-credentials-secret-name: ${{ env.REGISTRY_SECRET_NAME }}

- name: Add dependency chart repos
run: |
Expand All @@ -96,7 +87,7 @@ jobs:
helm install ${{ matrix.name }} . \
--set global.search.sharedSecret="$(openssl rand -hex 24)" \
--set global.known_urls=http://localhost \
--set global.alfrescoRegistryPullSecrets=regcred \
--set global.alfrescoRegistryPullSecrets=${{ env.REGISTRY_SECRET_NAME }} \
--wait --timeout 6m0s \
--values ${{ matrix.values }} \
--values ../../test/community-integration-test-values.yaml
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/helm-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
needs:
- build_vars
name: ${{ matrix.values }} on ${{ matrix.name }}
env:
REGISTRY_SECRET_NAME: regcred
strategy:
fail-fast: false
matrix:
Expand All @@ -84,21 +86,11 @@ jobs:
password: ${{ secrets.QUAY_PASSWORD }}

- name: Setup cluster
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@v8.9.0
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@v8.11.0
with:
ingress-nginx-ref: controller-v1.8.2
metrics: "true"

- name: Set nginx ingress config
run: >-
kubectl -n ingress-nginx patch cm ingress-nginx-controller
-p '{"data": {"allow-snippet-annotations":"true"}}'
- name: Create registries auth secret
run: >-
kubectl create secret generic regcred
--from-file=.dockerconfigjson=$HOME/.docker/config.json
--type=kubernetes.io/dockerconfigjson
import-docker-credentials-secret-name: ${{ env.REGISTRY_SECRET_NAME }}

- name: Check if cgroup v2 workaround is needed
if: startsWith(matrix.values, '7.')
Expand Down Expand Up @@ -130,7 +122,7 @@ jobs:
helm install acs ./helm/alfresco-content-services
--set global.search.sharedSecret="$(openssl rand -hex 24)"
--set global.known_urls=http://localhost
--set global.alfrescoRegistryPullSecrets=regcred
--set global.alfrescoRegistryPullSecrets=${{ env.REGISTRY_SECRET_NAME }}
--values helm/${{ matrix.name }}/${{ matrix.values }}
--values test/enterprise-integration-test-values.yaml
${{ steps.cgroupv2-workaround-extra-values.outputs.helm_install_params }}
Expand Down

0 comments on commit 0c67899

Please sign in to comment.