Skip to content

update redpanda appVersion from v23.2.2 to v23.2.3 #392

update redpanda appVersion from v23.2.2 to v23.2.3

update redpanda appVersion from v23.2.2 to v23.2.3 #392

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Test using secrets
on:
pull_request:
branches:
- "**"
paths:
- .github/*.sh
- .github/ct.yaml
- .github/kind.yaml
- .github/workflows/pull_requests_from_origin.yaml
- charts/**
- '!charts/operator/**'
- '!**/*.md'
jobs:
test:
if: ${{ github.event.pull_request.head.repo.full_name == 'redpanda-data/helm-charts' }}
name: "${{ matrix.version }}/${{ matrix.testvaluespattern }}: Run ct tests"
strategy:
matrix:
version:
- ""
- v22.3.17
# - v22.2.x takes too long. Only run nightly.
testvaluespattern:
- '99*'
fail-fast: true
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
git checkout main
git checkout -
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.11.1
- name: Set up chart-testing
uses: joejulian/[email protected]
with:
version: v3.8.0-1
# we're excluding console from testing until we have a way to test it with Redpanda
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .github/ct-redpanda.yaml)
echo $changed
if [[ -n "$changed" ]]; then
echo changed="true" >> "$GITHUB_OUTPUT"
fi
- name: Set up for matrix
if: steps.list-changed.outputs.changed == 'true'
run: |
echo bash -O extglob -c "rm -v charts/redpanda/ci/!(${{ matrix.testvaluespattern }})"
bash -O extglob -c "rm -v charts/redpanda/ci/!(${{ matrix.testvaluespattern }})"
- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
with:
config: .github/kind.yaml
- name: Check kind config worked
if: steps.list-changed.outputs.changed == 'true'
run: kubectl get nodes
- name: Annotate nodes for rack awareness
if: steps.list-changed.outputs.changed == 'true'
run: .github/annotate_kind_nodes.sh chart-testing
- name: Create redpanda license secret
if: steps.list-changed.outputs.changed == 'true'
env:
REDPANDA_LICENSE: ${{ secrets.REDPANDA_LICENSE }}
run: |
kubectl create secret generic redpanda-license \
--from-literal=license-key="$REDPANDA_LICENSE" \
--dry-run=client -o yaml > redpanda-license.yaml.tmp
kubectl annotate -f redpanda-license.yaml.tmp \
helm.sh/hook-delete-policy="before-hook-creation" \
helm.sh/hook="pre-install" \
helm.sh/hook-weight="-100" \
--local --dry-run=none -o yaml > redpanda-license.yaml
rm redpanda-license.yaml.tmp
mv redpanda-license.yaml ./charts/redpanda/templates/
- name: install cert-manager
if: steps.list-changed.outputs.changed == 'true'
run: |
helm repo add jetstack https://charts.jetstack.io &&
helm install cert-manager --namespace cert-manager \
--create-namespace --version v1.11.0 jetstack/cert-manager \
--set installCRDs=true --wait --wait-for-jobs
- name: install metallb
if: steps.list-changed.outputs.changed == 'true'
run: |
helm repo add metallb https://metallb.github.io/metallb &&
helm install metallb metallb/metallb -n metallb-system \
--create-namespace --version 0.13.10 --wait --wait-for-jobs
- name: apply metallb resources
if: steps.list-changed.outputs.changed == 'true'
run: |
kubectl -n metallb-system apply -f .github/metallb-config.yaml
- name: Run chart-testing (install and upgrade)
if: steps.list-changed.outputs.changed == 'true'
run: |
ct install \
--github-groups \
--upgrade \
--config .github/ct-redpanda.yaml \
--helm-extra-set-args="--set=image.tag=${{ matrix.version }}" \
--skip-missing-values \
--target-branch ${{ github.event.repository.default_branch }}