Skip to content

Install operator and check install #67

Install operator and check install

Install operator and check install #67

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "**.yaml"
- "**.tpl"
pull_request:
branches: [main]
paths:
- "**.yaml"
- "**.tpl"
jobs:
sanity:
runs-on: ubuntu-latest
name: helm-sanity debug
steps:
- uses: actions/checkout@v4
- uses: azure/[email protected]
- run: helm template mirrord-operator --set license.key=secret --debug
operator-install:
runs-on: ubuntu-latest
name: helm install & check install
steps:
- uses: actions/checkout@v4
- name: start minikube
uses: medyagh/setup-minikube@master
with:
container-runtime: ${{ inputs.container-runtime }}
cpus: 'max'
memory: '4gb'
- uses: azure/[email protected]
- run: |
openssl genrsa -out ca.key 4096
openssl genrsa -out tls.key 4096
openssl req -x509 -new -sha512 -nodes -key ./ca.key -days 7307 -out ./ca.crt -config ./.github/workflows/ca.conf
openssl req -new -key ./tls.key -out ./tls.csr -config ./.github/workflows/tls.conf
openssl x509 -req -in ./tls.csr -CA ./ca.crt -CAkey ./ca.key \
-CAcreateserial -out ./tls.crt -days 10000 \
-extensions v3_req -extfile ./.github/workflows/tls.conf
- run: helm install mirrord-operator --set license.file.data."license\\.pem"=$MIRRORD_OPERATOR_LICENSE --set operator.disableTelemetries=true --set tls.data."tls\\.key"="$(cat tls.key)" --set tls.data."tls\\.crt"="$(cat tls.crt)" ./mirrord-operator --wait