Skip to content

Commit

Permalink
Merge pull request #30 from projectsyn/feat/external-vault
Browse files Browse the repository at this point in the history
Add option to configure auth path when connecting to external an vault
  • Loading branch information
glrf authored Mar 16, 2022
2 parents 1c3e5f6 + d9bcd5f commit 694be36
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
3 changes: 2 additions & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:
operator:
registry: quay.io
repository: projectsyn/lieutenant-operator
version: '1.1.2'
version: '1.3.0'
api:
registry: docker.io
repository: projectsyn/lieutenant-api
Expand All @@ -26,6 +26,7 @@ parameters:
vault:
enabled: true
addr: vault.todo
auth_path: 'kubernetes'
path: kv
api:
lieutenant_instance: ${lieutenant:namespace}
Expand Down
4 changes: 4 additions & 0 deletions component/operator.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ local objects = [
name: 'VAULT_ADDR',
value: params.operator.vault.addr,
},
{
name: 'VAULT_AUTH_PATH',
value: params.operator.vault.auth_path,
}
{
name: 'VAULT_SECRET_ENGINE_PATH',
value: params.operator.vault.path,
Expand Down
7 changes: 7 additions & 0 deletions docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ default:: `vault.todo`

Address to the Vault instance.

== `operator.vault.auth_path`

[horizontal]
type:: string
default:: `kubernetes`

The mount path of the Vault authentication method to use.

== `operator.vault.path`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
properties:
clusterTemplate:
description: ClusterTemplate defines a template which will be used
to set defaults for the clusters of this tenant. The fields whitin
this can use Go templating. See [the docs](https://syn.tools/lieutenant-operator/explanation/templating.html)
to set defaults for the clusters of this tenant. The fields within
this can use Go templating. See https://syn.tools/lieutenant-operator/explanations/templating.html
for details.
properties:
deletionPolicy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
properties:
clusterTemplate:
description: ClusterTemplate defines a template which will be used
to set defaults for the clusters of this tenant. The fields whitin
this can use Go templating. See [the docs](https://syn.tools/lieutenant-operator/explanation/templating.html)
to set defaults for the clusters of this tenant. The fields within
this can use Go templating. See https://syn.tools/lieutenant-operator/explanations/templating.html
for details.
properties:
deletionPolicy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
value: 'false'
- name: SKIP_VAULT_SETUP
value: 'true'
image: quay.io/projectsyn/lieutenant-operator:1.1.2
image: quay.io/projectsyn/lieutenant-operator:1.3.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
namespace = "lieutenant"

operator = "lieutenant-operator-controller-manager"
operatorImage = "quay.io/projectsyn/lieutenant-operator:1.1.2"
operatorImage = "quay.io/projectsyn/lieutenant-operator:1.3.0"

api = "lieutenant-api"
apiImage = "docker.io/projectsyn/lieutenant-api:v0.8.0"
Expand Down

0 comments on commit 694be36

Please sign in to comment.