set image name for k8

This commit is contained in:
Maidul Islam
2022-12-16 16:34:59 -05:00
parent c12eeac9b3
commit b4c616edd6
3 changed files with 16 additions and 1 deletions

View File

@@ -30,6 +30,9 @@ jobs:
- uses: actions/setup-go@v2
- name: Generate YAML for Kubectl
run: make dist charts
- name: Upload CRD manifest
uses: svenstaro/upload-release-action@v2
with:

View File

@@ -1,6 +1,6 @@
# Image URL to use all building/pushing image targets
IMG ?= controller:latest
IMG ?= infisical/kubernetes-operator:latest
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.25.0
@@ -41,6 +41,12 @@ help: ## Display this help.
helm-chart:
$(KUSTOMIZE) build config/default | helmify ../helm-charts/secrets-operator
## Yaml for Kubectl
dist: manifests kustomize
mkdir -p dist
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default > dist/install-secrets-operator.yaml
##@ Development
.PHONY: manifests

View File

@@ -1,2 +1,8 @@
resources:
- manager.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: infisical/kubernetes-operator
newTag: latest