Support Several JGroups Discovery Modes #111
Workflow file for this run
This file contains 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: "Integration test icm-as chart" | |
on: | |
pull_request: | |
paths: | |
- 'charts/icm-as/**' | |
branches: | |
- main | |
jobs: | |
lint-test-icm-as-integrationtest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Base | |
uses: ./.github/template/base | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --config ct_icm-as.yaml) | |
if [[ -n "$changed" ]]; then | |
echo "::set-output name=changed::true" | |
fi | |
- name: Create kind cluster | |
if: steps.list-changed.outputs.changed == 'true' | |
uses: helm/[email protected] | |
with: | |
config: kind.yaml | |
- name: Log into registry docker.io | |
if: steps.list-changed.outputs.changed == 'true' | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Run chart-testing (install) | |
if: steps.list-changed.outputs.changed == 'true' | |
run: | | |
set -x | |
random_value=`tr -dc 'a-z0-9' < /dev/urandom | head -c10` | |
export NAMESPACE=ct-icm-as-$random_value | |
echo "NAMESPACE=$NAMESPACE" >> $GITHUB_ENV | |
kubectl create namespace icm-system | |
kubectl create namespace $NAMESPACE | |
kubectl create secret docker-registry dockerhub --namespace=icm-system --docker-username=${{ secrets.DOCKER_USERNAME }} --docker-password=${{ secrets.DOCKER_PASSWORD }} [email protected] | |
kubectl create secret docker-registry dockerhub --namespace=$NAMESPACE --docker-username=${{ secrets.DOCKER_USERNAME }} --docker-password=${{ secrets.DOCKER_PASSWORD }} [email protected] | |
sed -i 's/runAsNonRoot: true/runAsNonRoot: false/' charts/icm-as/values.yaml | |
sudo mkdir -p /data/icm/sites | |
sed -i 's/<local folder>/\/data\/icm\/sites/' charts/icm-as/values.yaml | |
sudo mkdir -p /data/icm/mssql/data | |
sudo mkdir -p /data/icm/mssql/backup | |
sed -i 's/<local mssql data folder>/\/data\/icm\/mssql\/data/' charts/icm-as/values.yaml | |
sed -i 's/<local mssql backup folder>/\/data\/icm\/mssql\/backup/' charts/icm-as/values.yaml | |
sed -i '/^mssql:/{n;s/.*/ enabled: true/}' charts/icm-as/values.yaml | |
ct install --namespace=$NAMESPACE --config ct_icm-as.yaml | |
- name: Debug failure | |
if: failure() && steps.list-changed.outputs.changed == 'true' | |
run: | | |
echo "=Describe nodes===============================\n" | |
kubectl describe node -A | |
echo "=Describe deployments=========================\n" | |
kubectl describe deployment -n $NAMESPACE | |
echo "=Describe pods================================\n" | |
kubectl describe pod -n $NAMESPACE | |
echo "=Describe services============================\n" | |
kubectl describe service -n $NAMESPACE | |
echo "=Logs icm-as-mssql============================\n" | |
kubectl logs -n $NAMESPACE $(kubectl get pods -l app=icm-as-mssql -n $NAMESPACE -o jsonpath="{.items[0].metadata.name}") | |
echo "=Logs icm-as================================\n" | |
kubectl logs -n $NAMESPACE $(kubectl get pods -l app=icm-as -n $NAMESPACE -o jsonpath="{.items[0].metadata.name}") |