Skip to content

Add Group CRD

Add Group CRD #149

Workflow file for this run

name: helm-e2e-tests
on:
schedule:
- cron: 0 0 * * *
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
env:
IMG_REPO: coralogix-operator-image
IMG_TAG: 0.0.1
CORALOGIX_REGION: ${{ secrets.CORALOGIX_REGION }}
CORALOGIX_API_KEY: ${{ secrets.CORALOGIX_API_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build the controller-manager Docker image
run: |
make docker-build IMG=${{ env.IMG_REPO }}:v${{ env.IMG_TAG }}
- name: Create k8s Kind Cluster
uses: helm/[email protected]
- name: Load the controller-manager image into Kind
run: |
kind load docker-image ${{ env.IMG_REPO }}:v${{ env.IMG_TAG }} --name chart-testing
- name: Install Prometheus Operator CRDs
run: |
make install-prometheus-crds
- name: Install Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Install Cert-Manager
run: |
make install-cert-manager
- name: Install Coralogix Operator using Helm
run: |
helm install coralogix-operator ./charts/coralogix-operator \
--namespace coralogix-operator-system \
--create-namespace \
--set secret.data.apiKey="${{ secrets.CORALOGIX_API_KEY }}" \
--set coralogixOperator.image.repository="${{ env.IMG_REPO }}" \
--set coralogixOperator.image.tag="${{ env.IMG_TAG }}" \
--set coralogixOperator.region="${{ secrets.CORALOGIX_REGION }}" \
--set coralogixOperator.webhooks.enabled=true
- name: Run e2e Tests
run: |
make e2e-tests