Skip to content

fields are currently hardcoded #12

fields are currently hardcoded

fields are currently hardcoded #12

Workflow file for this run

name: Validate SecureSign
on:
push:
branches: ["main", "release*"]
tags: ["*"]
pull_request:
branches: ["main", "release*"]
env:
GO_VERSION: 1.19
CONTROLLER_IMAGE: quay.io/rcook/securesign-controller:latest
KIND_VERSION: 0.20.0
jobs:
build-operator:
name: Build-operator
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
- name: Test
run: make test
- name: Build operator container
run: make docker-build CONTROLLER_IMAGE=${CONTROLLER_IMAGE}
- name: Install kind
run: |
curl -fsSL -o kind https://github.com/kubernetes-sigs/kind/releases/download/v${KIND_VERSION}/kind-linux-amd64
sudo install ./kind /usr/local/bin && rm kind
kind version
kind version | grep -q ${KIND_VERSION}
- name: install kubectl
run: |
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.21.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version --client
- name: Create kind cluster
run: sh hack/kind.sh
- name: load operator image into kind cluster
run: kind load docker-image ${CONTROLLER_IMAGE}
- name: Deploy operator
run: make deploy CONTROLLER_IMAGE=${CONTROLLER_IMAGE}
- name: Wait for operator to be ready
run: kubectl wait --for=condition=available deployment/operator-controller-manager --timeout=60s -n operator-system
- name: Apply sample config
run: kubectl apply -f config/samples/rhtas_v1alpha1_securesign.yaml