You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Note changes to the vault version should also match image tags within the integration/vault-values.yaml and config/local-development/vault-values.yaml files
11
+
VAULT_VERSION ?= 1.14.0
12
+
# The vault version should also match the appVersion in the vault helm chart
13
+
VAULT_CHART_VERSION ?= 0.25.0
14
+
# Set the Operator SDK version to use. By default, what is installed on the system is used.
15
+
# This is useful for CI or a project to utilize a specific version of the operator-sdk toolkit.
16
+
OPERATOR_SDK_VERSION ?= v1.31.0
17
+
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
18
+
ENVTEST_K8S_VERSION ?= 1.26.0
10
19
11
20
# VERSION defines the project version for the bundle.
12
21
# Update this value when you upgrade the version of your project.
@@ -195,7 +202,7 @@ install: manifests kustomize kubectl ## Install CRDs into the K8s cluster specif
195
202
196
203
.PHONY: uninstall
197
204
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
deploy: manifests kustomize kubectl ## Deploy controller to the K8s cluster specified in ~/.kube/config.
@@ -204,43 +211,37 @@ deploy: manifests kustomize kubectl ## Deploy controller to the K8s cluster spec
204
211
205
212
.PHONY: undeploy
206
213
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
controller-gen: $(CONTROLLER_GEN)## Download controller-gen locally if necessary.
230
230
$(CONTROLLER_GEN): $(LOCALBIN)
231
-
test -s $(LOCALBIN)/controller-gen || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)
231
+
test -s $(LOCALBIN)/controller-gen ||echo"Downloading controller-gen to ${CONTROLLER_GEN}..."&&GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)
232
232
233
233
.PHONY: envtest
234
+
ENVTEST ?= $(LOCALBIN)/setup-envtest
234
235
envtest: $(ENVTEST)## Download envtest-setup locally if necessary.
235
236
$(ENVTEST): $(LOCALBIN)
236
-
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
237
+
test -s $(LOCALBIN)/setup-envtest ||echo"Downloading setup-envtest to ${ENVTEST}..."&&GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
237
238
238
239
.PHONY: bundle
239
-
bundle: manifests kustomize ## Generate bundle manifests and metadata, then validate generated files.
sed -i '1s/^/{{ if .Values.enableMonitoring }}/' ./charts/${OPERATOR_NAME}/templates/monitoring.coreos.com_v1_servicemonitor_${OPERATOR_NAME}-controller-manager-metrics-monitor.yaml
308
-
echo {{ end }} >> ./charts/${OPERATOR_NAME}/templates/monitoring.coreos.com_v1_servicemonitor_${OPERATOR_NAME}-controller-manager-metrics-monitor.yaml
308
+
sed -i '1s/^/{{- if .Values.enableMonitoring }}\n/' ./charts/${OPERATOR_NAME}/templates/monitoring.coreos.com_v1_servicemonitor_${OPERATOR_NAME}-controller-manager-metrics-monitor.yaml
309
+
echo {{- end }} >> ./charts/${OPERATOR_NAME}/templates/monitoring.coreos.com_v1_servicemonitor_${OPERATOR_NAME}-controller-manager-metrics-monitor.yaml
310
+
sed -i 's/name: vault-config-operator-certs/{{- if .Values.enableCertManager }}\n name: vault-config-operator-metrics-service-cert\n {{- else }}\n name: vault-config-operator-certs\n {{- end }}/' ./charts/${OPERATOR_NAME}/templates/monitoring.coreos.com_v1_servicemonitor_${OPERATOR_NAME}-controller-manager-metrics-monitor.yaml
Copy file name to clipboardExpand all lines: api/v1alpha1/authenginemount_types.go
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,18 @@ type AuthEngineMountSpec struct {
46
46
// The authentication role must have the following capabilities = [ "create", "read", "update", "delete"] on that path /sys/auth/{[spec.authentication.namespace]}/{spec.path}/{metadata.name}.
47
47
// +kubebuilder:validation:Required
48
48
Path vaultutils.Path`json:"path,omitempty"`
49
+
50
+
// The name of the obejct created in Vault. If this is specified it takes precedence over {metatada.name}
0 commit comments