mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
set image name for k8
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,2 +1,8 @@
|
||||
resources:
|
||||
- manager.yaml
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
images:
|
||||
- name: controller
|
||||
newName: infisical/kubernetes-operator
|
||||
newTag: latest
|
||||
|
||||
Reference in New Issue
Block a user