Skip to content

Commit 1f067c8

Browse files
committed
WIP
Signed-off-by: Richard Wall <[email protected]>
1 parent 184de24 commit 1f067c8

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ predicate.json
1515

1616
_bin
1717
.envrc
18+
.env

deploy/charts/venafi-kubernetes-agent/templates/deployment.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,22 @@ spec:
5353
valueFrom:
5454
secretKeyRef:
5555
name: {{ .Values.authentication.secretName }}
56-
key: username
56+
key: ARK_USERNAME
5757
- name: ARK_SECRET
5858
valueFrom:
5959
secretKeyRef:
6060
name: {{ .Values.authentication.secretName }}
61-
key: password
61+
key: ARK_SECRET
62+
- name: ARK_PLATFORM_DOMAIN
63+
valueFrom:
64+
secretKeyRef:
65+
name: {{ .Values.authentication.secretName }}
66+
key: ARK_PLATFORM_DOMAIN
67+
- name: ARK_SUBDOMAIN
68+
valueFrom:
69+
secretKeyRef:
70+
name: {{ .Values.authentication.secretName }}
71+
key: ARK_SUBDOMAIN
6272
{{- with .Values.http_proxy }}
6373
- name: HTTP_PROXY
6474
value: {{ . }}

hack/e2e/ca/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
machineHub:
2+
subdomain: tlskp-test
3+
credentialsSecretName: todo-unused

hack/e2e/ca/test.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ set -o pipefail
77
# CyberArk API configuration
88
: ${ARK_USERNAME?}
99
: ${ARK_SECRET?}
10-
: ${ARK_API_URL?}
10+
: ${ARK_PLATFORM_DOMAIN?}
11+
: ${ARK_SUBDOMAIN?}
1112

1213
# The base URL of the OCI registry used for Docker images and Helm charts
1314
# E.g. ttl.sh/6ee49a01-c8ba-493e-bae9-4d8567574b56
@@ -36,8 +37,10 @@ kubectl create ns "$k8s_namespace" || true
3637

3738
kubectl create secret generic agent-credentials \
3839
--namespace "$k8s_namespace" \
39-
--from-literal=username=$ARK_USERNAME \
40-
--from-literal=password=$ARK_SECRET
40+
--from-literal=ARK_USERNAME=$ARK_USERNAME \
41+
--from-literal=ARK_SECRET=$ARK_SECRET \
42+
--from-literal=ARK_PLATFORM_DOMAIN=$ARK_PLATFORM_DOMAIN \
43+
--from-literal=ARK_SUBDOMAIN=$ARK_SUBDOMAIN
4144

4245
helm upgrade agent "oci://${OCI_BASE}/charts/venafi-kubernetes-agent" \
4346
--install \
@@ -54,7 +57,3 @@ yq eval-all '. as $item ireduce ({}; . * $item)' config.original.yaml "${script_
5457
kubectl delete cm -n "$k8s_namespace" agent-config
5558
kubectl create cm -n "$k8s_namespace" agent-config --from-file=config.yaml
5659
kubectl scale -n "$k8s_namespace" deployment agent --replicas=1
57-
58-
59-
60-

0 commit comments

Comments
 (0)