File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -85,3 +85,5 @@ venctl components kubernetes apply \
8585 --venafi-kubernetes-agent-values-files " ${script_dir} /values.venafi-kubernetes-agent.yaml" \
8686 --venafi-kubernetes-agent-custom-image-registry " ${OCI_BASE} /images" \
8787 --venafi-kubernetes-agent-custom-chart-repository " oci://${OCI_BASE} /charts"
88+
89+ envsubst < venafi-components.yaml | kubectl apply -n venafi -f -
Original file line number Diff line number Diff line change 1+ apiVersion : jetstack.io/v1alpha1
2+ kind : VenafiConnection
3+ metadata :
4+ name : venafi-components
5+ spec :
6+ vcp :
7+ apiKey :
8+ - secret :
9+ name : venafi-credentials
10+ fields : ["api-key"]
11+ ---
12+ apiVersion : rbac.authorization.k8s.io/v1
13+ kind : Role
14+ metadata :
15+ name : get-venafi-credentials
16+ rules :
17+ - apiGroups : [ "" ]
18+ resources : [ "secrets" ]
19+ verbs : [ "get" ]
20+ resourceNames : [ "venafi-credentials" ]
21+ ---
22+ apiVersion : rbac.authorization.k8s.io/v1
23+ kind : RoleBinding
24+ metadata :
25+ name : application-team-1-secret-rolebinding
26+ roleRef :
27+ apiGroup : rbac.authorization.k8s.io
28+ kind : Role
29+ name : get-venafi-credentials
30+ subjects :
31+ - kind : ServiceAccount
32+ name : venafi-connection
33+ namespace : venafi
34+ ---
35+ apiVersion : v1
36+ kind : Secret
37+ metadata :
38+ name : venafi-credentials
39+ stringData :
40+ api-key : ${VEN_API_KEY}
You can’t perform that action at this time.
0 commit comments