Skip to content

Commit 4367b44

Browse files
committed
chore: changes to jetstack-agent chart to use new Agent image
Signed-off-by: Ashley Davis <[email protected]>
1 parent bd8ce9e commit 4367b44

File tree

3 files changed

+53
-8
lines changed

3 files changed

+53
-8
lines changed

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

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,30 @@ spec:
3333
{{- toYaml .Values.securityContext | nindent 12 }}
3434
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3535
imagePullPolicy: {{ .Values.image.pullPolicy }}
36-
{{- if eq .Values.authentication.type "token" }}
3736
env:
38-
- name: API_TOKEN
39-
valueFrom:
40-
secretKeyRef:
41-
name: {{ default "agent-credentials" .Values.authentication.secretName }}
42-
key: {{ default "apitoken" .Values.authentication.secretKey }}
37+
{{- if eq .Values.authentication.type "token" }}
38+
- name: API_TOKEN
39+
valueFrom:
40+
secretKeyRef:
41+
name: {{ default "agent-credentials" .Values.authentication.secretName }}
42+
key: {{ default "apitoken" .Values.authentication.secretKey }}
4343
{{- end }}
44+
- name: POD_NAMESPACE
45+
valueFrom:
46+
fieldRef:
47+
fieldPath: metadata.namespace
48+
- name: POD_NAME
49+
valueFrom:
50+
fieldRef:
51+
fieldPath: metadata.name
52+
- name: POD_UID
53+
valueFrom:
54+
fieldRef:
55+
fieldPath: metadata.uid
56+
- name: POD_NODE
57+
valueFrom:
58+
fieldRef:
59+
fieldPath: spec.nodeName
4460
{{- if not (empty .Values.command) }}
4561
command:
4662
{{- range .Values.command }}

deploy/charts/jetstack-agent/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ replicaCount: 1
77

88
image:
99
# -- Default to Open Source image repository
10-
repository: quay.io/jetstack/preflight
10+
repository: "registry.venafi.cloud/venafi-agent/venafi-agent"
1111
# -- Defaults to only pull if not already present
1212
pullPolicy: IfNotPresent
1313
# -- Overrides the image tag whose default is the chart appVersion
14-
tag: "v0.1.43"
14+
tag: "v1.6.0"
1515

1616
# -- Specify image pull credentials if using a prviate registry
1717
imagePullSecrets: []
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu -o pipefail
4+
5+
# This script is provided to quickly install the Jetstack Secure Helm chart from the local checkout
6+
# into a Kind cluster, for testing changes to the legacy chart with Jetstack Secure.
7+
#
8+
# This script should be invoked from the root of the repository, e.g.:
9+
# ./hack/install_local_jetstack_secure_chart.sh
10+
11+
TLSPK_ORG="${TLSPK_ORG:-jetstack}"
12+
TLSPK_CLUSTER_NAME="jss_test_$(date +"%Y%m%d_%H%M")"
13+
14+
helm install cert-manager oci://quay.io/jetstack/charts/cert-manager:v1.18.2 \
15+
--set crds.enabled=true \
16+
--namespace cert-manager \
17+
--create-namespace \
18+
--set 'extraArgs={--dns01-recursive-nameservers-only,--dns01-recursive-nameservers=https://1.1.1.1/dns-query}'
19+
20+
kubectl create namespace jetstack-secure || :
21+
22+
# Get credentials from: https://platform.jetstack.io/org/jetstack/manage/service_accounts
23+
# Save them as JSON a file named credentials.json
24+
kubectl create secret generic agent-credentials --namespace jetstack-secure --from-file=credentials.json || :
25+
26+
helm upgrade --install --create-namespace -n jetstack-secure jetstack-agent \
27+
./deploy/charts/jetstack-agent \
28+
--set config.organisation="${TLSPK_ORG}" \
29+
--set config.cluster="${TLSPK_CLUSTER_NAME}"

0 commit comments

Comments
 (0)