Skip to content

Commit cc7a56e

Browse files
committed
feat: Venafi Enhanced Issuer config + chart docs update
Signed-off-by: Peter Fiddes <[email protected]>
1 parent 1926f2d commit cc7a56e

File tree

6 files changed

+53
-5
lines changed

6 files changed

+53
-5
lines changed

deploy/charts/jetstack-agent/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: jetstack-agent
33
description: Jetstack Secure Agent
44
type: application
5-
version: 0.1.0
6-
appVersion: "v1.38.0"
5+
version: 0.2.0
6+
appVersion: "v1.39.0"
77
home: https://github.com/jetstack/jetstack-secure
88
maintainers:
99
- name: JSCP and CRE Team
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
1. Please make sure you have the secret "{{ .Values.authentication.secretName }}" available
1+
1. Please make sure you have the credentials secret: "{{ .Values.authentication.secretName }}" available
22

3-
2. Check the application if running with the following:
3+
2. Check the application is running with the following:
44
> kubectl get pods -n {{ .Release.Namespace }} -l app.kubernetes.io/instance={{ .Release.Name }}
5+
6+
3. Check the application logs for successful connection to the platform:
7+
> kubectl logs -n {{ .Release.Namespace }} $(kubectl get pod -n {{ .Release.Namespace }} -l app.kubernetes.io/instance={{ .Release.Name }}-o jsonpath='{.items[0].metadata.name}')

deploy/charts/jetstack-agent/templates/configmap.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,19 @@ data:
189189
group: route.openshift.io
190190
resource: routes
191191
{{- end }}
192+
{{- if or .Values.config.dataGatherers.default (has "venafienhancedissuer" .Values.config.dataGatherers.custom) }}
193+
- kind: "k8s-dynamic"
194+
name: "k8s/venaficlusterissuers"
195+
config:
196+
resource-type:
197+
group: jetstack.io
198+
version: v1alpha1
199+
resource: venaficlusterissuers
200+
- kind: "k8s-dynamic"
201+
name: "k8s/venafiissuers"
202+
config:
203+
resource-type:
204+
group: jetstack.io
205+
version: v1alpha1
206+
resource: venafiissuers
207+
{{- end }}

deploy/charts/jetstack-agent/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ spec:
7777
- name: config
7878
configMap:
7979
name: agent-config
80+
options: false
8081
- name: credentials
8182
secret:
8283
secretName: {{ default "agent-credentials" .Values.authentication.secretName }}
84+
optional: false

deploy/charts/jetstack-agent/templates/rbac.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,29 @@ subjects:
250250
name: {{ include "jetstack-agent.serviceAccountName" . }}
251251
namespace: {{ .Release.Namespace }}
252252
{{- end }}
253+
{{- if or .Values.config.dataGatherers.default (has "venafienhancedissuer" .Values.config.dataGatherers.custom) }}
254+
---
255+
apiVersion: rbac.authorization.k8s.io/v1
256+
kind: ClusterRole
257+
metadata:
258+
name: {{ include "jetstack-agent.fullname" . }}-venafi-enhanced-reader
259+
rules:
260+
- apiGroups: ["jetstack.io"]
261+
resources:
262+
- venafiissuers
263+
- venaficlusterissuers
264+
verbs: ["get", "list", "watch"]
265+
---
266+
apiVersion: rbac.authorization.k8s.io/v1
267+
kind: ClusterRoleBinding
268+
metadata:
269+
name: {{ include "jetstack-agent.fullname" . }}-venafi-enhanced-reader
270+
roleRef:
271+
kind: ClusterRole
272+
name: {{ include "jetstack-agent.fullname" . }}-venafi-enhanced-reader
273+
apiGroup: rbac.authorization.k8s.io
274+
subjects:
275+
- kind: ServiceAccount
276+
name: {{ include "jetstack-agent.serviceAccountName" . }}
277+
namespace: {{ .Release.Namespace }}
278+
{{- end }}

deploy/charts/jetstack-agent/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ image:
1010
repository: quay.io/jetstack/preflight
1111
pullPolicy: IfNotPresent
1212
# Overrides the image tag whose default is the chart appVersion.
13-
tag: "v0.1.38"
13+
tag: "v0.1.39"
1414

1515
# -- specify credentials if pulling from a customer registry
1616
imagePullSecrets: []
@@ -92,3 +92,4 @@ config:
9292
# - webhook
9393
# - openshift
9494
# - istio
95+
# - venafienhancedissuer

0 commit comments

Comments
 (0)