Bump alpine from 3.22.1 to 3.23.2 #162
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Chart | |
| on: | |
| push: | |
| paths-ignore: | |
| - '.gitignore' | |
| - 'CODEOWNERS' | |
| - 'LICENSE' | |
| - '*.md' | |
| - '*.adoc' | |
| - '*.txt' | |
| pull_request: | |
| paths-ignore: | |
| - '.gitignore' | |
| - 'CODEOWNERS' | |
| - 'LICENSE' | |
| - '*.md' | |
| - '*.adoc' | |
| - '*.txt' | |
| env: | |
| IMG_TAG: test-chart | |
| KIND_CLUSTER_NAME: nodedrain-test-chart | |
| jobs: | |
| test-chart: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone the code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # V5.0.0 | |
| - uses: ./.github/workflows/env_setup | |
| with: | |
| docker_cache_enabled: true | |
| - name: Install the latest version of kind | |
| run: | | |
| curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64 | |
| chmod +x ./kind | |
| sudo mv ./kind /usr/local/bin/kind | |
| - name: Verify kind installation | |
| run: kind version | |
| - name: Create kind cluster | |
| run: | | |
| kind delete cluster | |
| kind create cluster | |
| - name: Prepare nodedrain | |
| run: | | |
| make docker-build DOCKER_BUILD_OPTIONS=--load | |
| kind load docker-image ${IMG_REGISTRY}${IMG_NAME_CONTROLLER}:${IMG_TAG} | |
| - name: Install Helm | |
| run: | | |
| curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | |
| - name: Verify Helm installation | |
| run: helm version | |
| - name: Lint Helm Chart | |
| run: | | |
| helm lint ./dist/chart | |
| - name: Install cert-manager via Helm | |
| run: | | |
| helm repo add jetstack https://charts.jetstack.io | |
| helm repo update | |
| helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --set installCRDs=true | |
| - name: Wait for cert-manager to be ready | |
| run: | | |
| kubectl wait --namespace cert-manager --for=condition=available --timeout=300s deployment/cert-manager | |
| kubectl wait --namespace cert-manager --for=condition=available --timeout=300s deployment/cert-manager-cainjector | |
| kubectl wait --namespace cert-manager --for=condition=available --timeout=300s deployment/cert-manager-webhook | |
| # TODO: Uncomment if Prometheus is enabled | |
| # - name: Install Prometheus Operator CRDs | |
| # run: | | |
| # helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
| # helm repo update | |
| # helm install prometheus-crds prometheus-community/prometheus-operator-crds | |
| # | |
| # - name: Install Prometheus via Helm | |
| # run: | | |
| # helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
| # helm repo update | |
| # helm install prometheus prometheus-community/prometheus --namespace monitoring --create-namespace | |
| # | |
| # - name: Wait for Prometheus to be ready | |
| # run: | | |
| # kubectl wait --namespace monitoring --for=condition=available --timeout=300s deployment/prometheus-server | |
| - name: Install Helm chart for project | |
| run: | | |
| helm install my-release ./dist/chart --create-namespace --namespace nodedrain-system | |
| - name: Check Helm release status | |
| run: | | |
| helm status my-release --namespace nodedrain-system | |
| # TODO: Uncomment if prometheus.enabled is set to true to confirm that the ServiceMonitor gets created | |
| # - name: Check Presence of ServiceMonitor | |
| # run: | | |
| # kubectl wait --namespace nodedrain-system --for=jsonpath='{.kind}'=ServiceMonitor servicemonitor/nodedrain-controller-manager-metrics-monitor | |
| - name: Delete kind cluster | |
| run: | | |
| kind delete cluster |