-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow for native package secret copying (#16)
## Description This allows for secret copying to another namespace to align the deployment pattern with PGO ## Related Issue Relates to defenseunicorns/uds-package-gitlab#150 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [X] Test, docs, adr added or updated as needed - [X] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-package-valkey/blob/main/CONTRIBUTING.md#developer-workflow) followed
- Loading branch information
Showing
9 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- $password := randAlphaNum 16 }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: valkey-password | ||
namespace: {{ .Release.Namespace }} | ||
stringData: | ||
valkey-password: {{ printf "%s" $password | quote }} | ||
{{- if .Values.copyPassword.enabled }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Values.copyPassword.secretName }} | ||
namespace: {{ .Values.copyPassword.namespace }} | ||
stringData: | ||
{{ dict .Values.copyPassword.secretKey $password | toYaml }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
copyPassword: | ||
enabled: false | ||
namespace: "" | ||
secretName: "" | ||
secretKey: "" | ||
|
||
custom: [] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: uds.dev/v1alpha1 | ||
kind: Package | ||
metadata: | ||
name: valkey-cli | ||
namespace: valkey-cli | ||
spec: | ||
network: | ||
allow: | ||
- direction: Egress | ||
selector: | ||
app: valkey-cli | ||
remoteNamespace: valkey | ||
remoteSelector: | ||
app.kubernetes.io/name: valkey | ||
port: 6379 | ||
description: "Egress from Valkey CLI (for tests)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
architecture: standalone | ||
|
||
auth: | ||
existingSecret: valkey-password | ||
existingSecretPasswordKey: valkey-password |