From 196881f5da0cc16ecc2b2726346b345a76c101cd Mon Sep 17 00:00:00 2001 From: Adrian Rangel Date: Mon, 28 Aug 2023 22:18:40 -0600 Subject: [PATCH 1/3] fix makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3078ddc..8a402cf 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ ifeq (, $(shell which controller-gen)) CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\ cd $$CONTROLLER_GEN_TMP_DIR ;\ go mod init tmp ;\ - go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1 ;\ + go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1 ;\ rm -rf $$CONTROLLER_GEN_TMP_DIR ;\ } CONTROLLER_GEN=$(GOBIN)/controller-gen From 2faa295351feb2521340e50f3a33b3ac704b9278 Mon Sep 17 00:00:00 2001 From: Adrian Rangel Date: Mon, 28 Aug 2023 22:40:14 -0600 Subject: [PATCH 2/3] use main image, latest is old --- config/manager/manager.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 11d866a..e5362ed 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -27,7 +27,7 @@ spec: - /manager args: - --enable-leader-election - image: ghcr.io/coderanger/migrations-operator:latest + image: ghcr.io/coderanger/migrations-operator:main name: manager env: - name: API_HOSTNAME From 209a8647292ac5c76e2b74d4601753720a0bcb51 Mon Sep 17 00:00:00 2001 From: Adrian Rangel Date: Mon, 28 Aug 2023 22:43:34 -0600 Subject: [PATCH 3/3] intall instructions --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3ea425d..36f5960 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ A Kubernetes operator to manage database migrations or similar application setup ## Quick Start ### Install - -TODO +1. Go must be installed before installing. +2. Install [cert-manager](https://cert-manager.io/docs/installation/) +3. make deploy ### Usage @@ -43,7 +44,7 @@ with these fields: - args: optional string array to be used as the upgrade Job's `args`. - image: optional image to use for the upgrade Job. - container: optional name of a container from the selected template Pod. The selected container will be used to run the upgrader. -- labels: optional map of labels to set on the Job's pod template, +- labels: optional map of labels to set on the Job's pod template, - annotations: optional map of annotations to set on the Job's pod template, The migrator Job will contain only the single template container, initContainers will be included but sidecars will not. Any livenessProbes and readinessProbes in the template will be ignored.