Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
k8s-helmfiles
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d2643671
authored
2022-09-07 13:22:01 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
WIP: Attempt to plumb variables for backup-secrets.
1 parent
fc643fa9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
30 deletions
backup-secrets/charts/backup/backup.yaml
backup-secrets/charts/base/backup.yaml
backup-secrets/charts/base/config.yaml
backup-secrets/charts/restore/restore.yaml
backup-secrets/environments/default-values.yaml
backup-secrets/helmfile.yaml
backup-secrets/charts/backup/backup.yaml
View file @
d264367
...
...
@@ -20,22 +20,19 @@ spec:
-
name
:
config
configMap
:
name
:
backup-secrets-config
-
name
:
auth
secret
:
secretName
:
backup-secrets-auth
-
name
:
scripts
configMap
:
name
:
backup-secrets-scripts
defaultMode
:
0755
-
name
:
aws-config
configMap
:
name
:
backup-secrets-config
name
:
backup-secrets-
aws-
config
items
:
-
key
:
config
path
:
config
-
name
:
aws-credentials
secret
:
secretName
:
backup-secrets-a
uth
secretName
:
backup-secrets-a
ws-credentials
items
:
-
key
:
credentials
path
:
credentials
...
...
backup-secrets/charts/base/backup.yaml
View file @
d264367
...
...
@@ -20,22 +20,19 @@ spec:
-
name
:
config
configMap
:
name
:
backup-secrets-config
-
name
:
auth
secret
:
secretName
:
backup-secrets-auth
-
name
:
scripts
configMap
:
name
:
backup-secrets-scripts
defaultMode
:
0755
-
name
:
aws-config
configMap
:
name
:
backup-secrets-config
name
:
backup-secrets-
aws-
config
items
:
-
key
:
config
path
:
config
-
name
:
aws-credentials
secret
:
secretName
:
backup-secrets-auth
secretName
:
backup-secrets-a
ws-a
uth
items
:
-
key
:
credentials
path
:
credentials
...
...
@@ -49,8 +46,6 @@ spec:
mountPath
:
/work-space
-
name
:
config
mountPath
:
/config
-
name
:
auth
mountPath
:
/auth
-
name
:
scripts
mountPath
:
/scripts
...
...
@@ -94,8 +89,6 @@ spec:
mountPath
:
/work-space
-
name
:
config
mountPath
:
/config
-
name
:
auth
mountPath
:
/auth
-
name
:
scripts
mountPath
:
/scripts
...
...
backup-secrets/charts/base/config.yaml
View file @
d264367
...
...
@@ -39,6 +39,12 @@ data:
S3_PREFIX
:
"
um-adam/secret-backup"
KEEP_COUNT
:
"
30"
SECRETS_TARBALL
:
"
"
---
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
backup-secrets-aws-config
data
:
config
:
"
"
---
apiVersion
:
v1
...
...
@@ -49,7 +55,7 @@ metadata:
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
backup-secrets-a
uth
name
:
backup-secrets-a
ws-credentials
stringData
:
credentials
:
"
"
...
...
backup-secrets/charts/restore/restore.yaml
View file @
d264367
...
...
@@ -36,8 +36,6 @@ spec:
name
:
work-space
-
mountPath
:
/config
name
:
config
-
mountPath
:
/auth
name
:
auth
-
mountPath
:
/scripts
name
:
scripts
...
...
@@ -57,8 +55,6 @@ spec:
name
:
work-space
-
mountPath
:
/config
name
:
config
-
mountPath
:
/auth
name
:
auth
-
mountPath
:
/scripts
name
:
scripts
-
name
:
copy-from-s3
...
...
@@ -70,8 +66,6 @@ spec:
name
:
work-space
-
mountPath
:
/config
name
:
config
-
mountPath
:
/auth
name
:
auth
-
mountPath
:
/scripts
name
:
scripts
...
...
@@ -95,22 +89,19 @@ spec:
emptyDir
:
{}
-
name
:
aws-config
configMap
:
name
:
backup-secrets-config
name
:
backup-secrets-
aws-
config
items
:
-
key
:
config
path
:
config
-
name
:
aws-credentials
secret
:
secretName
:
backup-secrets-a
uth
secretName
:
backup-secrets-a
ws-credentials
items
:
-
key
:
credentials
path
:
credentials
-
name
:
config
configMap
:
name
:
backup-secrets-config
-
name
:
auth
secret
:
secretName
:
backup-secrets-auth
-
name
:
scripts
configMap
:
defaultMode
:
0755
...
...
backup-secrets/environments/default-values.yaml
View file @
d264367
name
:
test
namespace
:
default
config
:
APP_NAME
:
test
AWS_PROFILE
:
"
default"
S3_ENABLED
:
"
true"
S3_BUCKET
:
"
xxx"
S3_PREFIX
:
"
xxx"
KEEP_COUNT
:
"
30"
SECRETS_TARBALL
:
"
"
aws
:
config
:
|-
[default]
...
...
backup-secrets/helmfile.yaml
View file @
d264367
...
...
@@ -15,14 +15,19 @@ releases:
metadata
:
namespace
:
{{
.Values.namespace
}}
name
:
{{
.Values.name
}}
-backup-secrets-config
data
:
{{
.Values.config | toYaml | nindent 10
}}
-
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
namespace
:
{{
.Values.namespace
}}
name
:
{{
.Values.name
}}
-backup-secrets-aws-config
data
:
APP_NAME
:
{{
.Values.name
}}
-gateway
config
:
{{
.Values.aws.config | quote
}}
-
apiVersion
:
v1
kind
:
Secret
metadata
:
namespace
:
{{
.Values.namespace
}}
name
:
{{
.Values.name
}}
-backup-secrets-a
uth
name
:
{{
.Values.name
}}
-backup-secrets-a
ws-credentials
stringData
:
credentials
:
{{
.Values.aws.credentials | quote
}}
...
...
@@ -48,10 +53,10 @@ releases:
volumes
:
-
name
:
aws-config
configMap
:
name
:
{{
.Values.name
}}
-backup-secrets-config
name
:
{{
.Values.name
}}
-backup-secrets-
aws-
config
-
name
:
aws-credentials
secret
:
secretName
:
{{
.Values.name
}}
-backup-secrets-a
uth
secretName
:
{{
.Values.name
}}
-backup-secrets-a
ws-credentials
-
name
:
config
configMap
:
name
:
{{
.Values.name
}}
-backup-secrets-config
...
...
Please
register
or
sign in
to post a comment