Skip to content

Commit 577e5fb

Browse files
stgraceGBrawl
andauthored
Changes for conjur secretHandler
Co-authored-by: Frederic <frederic.vanreet@icloud.com> Co-authored-by: stef.graces <stef.graces@nubera.eu>
1 parent a4b12f2 commit 577e5fb

6 files changed

Lines changed: 59 additions & 22 deletions

File tree

stackl-agent/templates/stackl-agent/deployment.yaml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
imagePullSecrets:
2222
{{- toYaml . | nindent 8 }}
2323
{{- end }}
24-
serviceAccountName: {{ template "stackl.agent" . }}-stackl-agent
24+
serviceAccountName: {{ template "stackl.agent" . }}
2525
containers:
2626
- name: stackl-agent
2727
image: "{{ .Values.stacklAgent.image }}"
@@ -64,3 +64,39 @@ spec:
6464
- name: "VAULT_MOUNT_POINT"
6565
value: "{{ . }}"
6666
{{- end }}
67+
{{- with .Values.stacklAgent.conjurVerify }}
68+
- name: CONJUR_VERIFY
69+
value: "{{ . }}"
70+
{{- end }}
71+
{{- with .Values.stacklAgent.authenticatorClientContainerName }}
72+
- name: AUTHENTICATOR_CLIENT_CONTAINER_NAME
73+
value: "{{ . }}"
74+
{{- end }}
75+
{{- with .Values.stacklAgent.conjurApplianceUrl }}
76+
- name: CONJUR_APPLIANCE_URL
77+
value: "{{ . }}"
78+
{{- end }}
79+
{{- with .Values.stacklAgent.conjurAccount }}
80+
- name: CONJUR_ACCOUNT
81+
value: "{{ . }}"
82+
{{- end }}
83+
{{- with .Values.stacklAgent.conjurAuthnTokenFile }}
84+
- name: CONJUR_AUTHN_TOKEN_FILE
85+
value: "{{ . }}"
86+
{{- end }}
87+
{{- with .Values.stacklAgent.conjurAuthnUrl }}
88+
- name: CONJUR_AUTHN_URL
89+
value: "{{ . }}"
90+
{{- end }}
91+
{{- with .Values.stacklAgent.conjurAuthnLogin }}
92+
- name: CONJUR_AUTHN_LOGIN
93+
value: "{{ . }}"
94+
{{- end }}
95+
{{- with .Values.stacklAgent.conjurSslConfigMap }}
96+
- name: CONJUR_SSL_CONFIG_MAP
97+
value: "{{ . }}"
98+
{{- end }}
99+
{{- with .Values.stacklAgent.conjurSslConfigMapKey }}
100+
- name: CONJUR_SSL_CONFIG_MAP_KEY
101+
value: "{{ . }}"
102+
{{- end }}

stackl-agent/templates/stackl-agent/service-account.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5-
name: {{ template "stackl.agent" . }}-stackl-agent
5+
name: {{ template "stackl.agent" . }}
66
labels:
77
{{ include "stackl.labels" . | nindent 4 }}
88
component: agent
99
---
1010
apiVersion: rbac.authorization.k8s.io/v1
1111
kind: Role
1212
metadata:
13-
name: {{ template "stackl.agent" . }}-stackl-jobs
13+
name: {{ template "stackl.agent" . }}-jobs
1414
labels:
1515
{{ include "stackl.labels" . | nindent 4 }}
1616
component: agent
@@ -39,12 +39,12 @@ metadata:
3939
labels:
4040
{{ include "stackl.labels" . | nindent 4 }}
4141
component: agent
42-
name: {{ template "stackl.agent" . }}-stackl-agent
42+
name: {{ template "stackl.agent" . }}
4343
roleRef:
44-
name: {{ template "stackl.agent" . }}-stackl-jobs
44+
name: {{ template "stackl.agent" . }}-jobs
4545
kind: Role
4646
apiGroup: rbac.authorization.k8s.io
4747
subjects:
4848
- kind: ServiceAccount
49-
name: {{ template "stackl.agent" . }}-stackl-agent
49+
name: {{ template "stackl.agent" . }}
5050
namespace: {{ .Release.Namespace }}

stackl-agent/values.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ image:
44
mode: prod
55

66
stacklAgent:
7-
image: stacklio/stackl-agent:0.2.0rc1
7+
image: stacklio/stackl-agent:v0.2.0
88
name: stackl-agent
99
replicaCount: 1
1010
stacklHost: stackl-core:8080
@@ -13,9 +13,20 @@ stacklAgent:
1313
agentType: kubernetes
1414
redisHost: stackl-redis
1515
redisPort: 6379
16+
# secretHandler: vault
1617
# vaultAddr: https://vault.example.com
1718
# vaultRole: stackl
1819
# vaultMountPoint: auth/kubernetes
20+
# conjurVerify: "False"
21+
# authenticatorClientContainerName: conjur-auth-client
22+
# secretHandler: conjur
23+
# conjurApplianceUrl: https://conjur-conjur-oss.conjur.svc.cluster.local
24+
# conjurAccount: default
25+
# conjurAuthnTokenFile: /run/conjur/access-token
26+
# conjurAuthnUrl: https://conjur-conjur-oss.conjur.svc.cluster.local/authn-k8s/stackl
27+
# conjurAuthnLogin: host/conjur/authn-k8s/stackl/apps/conjur-namespace
28+
# conjurSslConfigMap: conjur-cert
29+
# conjurSslConfigMapKey: ssl-certificate
1930

2031
# example imagePullSecrets: [name: pull-secret-name]
2132
imagePullSecrets: []

stackl/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ description: Stackl description
44

55
type: application
66

7-
version: v0.1.2
7+
version: v0.2.0
88

9-
appVersion: v0.1.2
9+
appVersion: v0.2.0

stackl/templates/stackl-core/deployment.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ spec:
4141
value: "{{ .Values.datastore.type }}"
4242
- name: "STACKL_DATASTORE_PATH"
4343
value: "{{ .Values.datastore.path }}"
44-
- name: "STACKL_TASK_BROKER"
45-
value: "{{ .Values.taskBroker.type }}"
46-
- name: "STACKL_MESSAGE_CHANNEL"
47-
value: "{{ .Values.messageChannel.type }}"
4844
- name: "LOGLEVEL"
4945
value: "DEBUG"
5046
- name: "REDIS_HOST"

stackl/values.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,8 @@ datastore:
1717
# type: LFS
1818
# path: /lfs_store
1919

20-
taskBroker:
21-
type: Custom
22-
23-
messageChannel:
24-
type: Redis
25-
2620
stacklCore:
27-
image: stacklio/stackl-core:0.2.0rc1
21+
image: stacklio/stackl-core:v0.2.0
2822
name: stackl-core
2923
serviceType: NodePort
3024
ingress:
@@ -46,12 +40,12 @@ stacklCore:
4640
replicaCount: 1
4741

4842
stacklRedis:
49-
image: redis:5.0.5
43+
image: stacklio/redis:v5.0.3
5044
name: stackl-redis
5145
replicaCount: 1
5246

5347
stacklOpa:
54-
image: openpolicyagent/opa:0.20.5
48+
image: stacklio/opa:v0.21.1
5549
name: stackl-opa
5650
ingress:
5751
enabled: true

0 commit comments

Comments
 (0)