-
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.
Merge pull request #4 from defenseunicorns/fix-pvc-config
- Loading branch information
Showing
20 changed files
with
92 additions
and
154 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
variables: | ||
dev-postgres: | ||
db_username: "confluence" | ||
db_name: "confluencedb" | ||
confluence: | ||
confluence_db_endpoint: "postgresql.confluence-db.svc.cluster.local" | ||
confluence_db_endpoint: "postgresql.dev-postgres.svc.cluster.local" |
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 @@ | ||
module.exports = { extends: ["@commitlint/config-conventional"] }; |
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
File renamed without changes.
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,25 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/zarf/main/zarf.schema.json | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: dev-secrets | ||
version: "0.1.0" | ||
architecture: amd64 | ||
|
||
components: | ||
- name: postgres-password | ||
required: true | ||
actions: | ||
onDeploy: | ||
before: | ||
- cmd: kubectl get secret -n dev-postgres postgresql --template={{.data.password}} | base64 -d | ||
mute: true | ||
setVariables: | ||
- name: POSTGRES_DB_PASSWORD | ||
sensitive: true | ||
- name: confluence-postgres-password | ||
required: true | ||
manifests: | ||
- name: confluence-postgres | ||
namespace: confluence | ||
files: | ||
- postgres-secret.yaml |
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 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,3 +1,37 @@ | ||
# image: | ||
# repository: confluence | ||
# tag: 9.9.3-{{ .Values.edition }} | ||
|
||
confluence: | ||
# -- Whether to apply security context to pod. | ||
# | ||
securityContextEnabled: true | ||
|
||
securityContext: | ||
|
||
# -- The GID used by the Confluence docker image | ||
# GID will default to 2002 if not supplied and securityContextEnabled is set to true. | ||
# This is intended to ensure that the shared-home volume is group-writeable by the GID used by the Confluence container. | ||
# However, this doesn't appear to work for NFS volumes due to a K8s bug: https://github.com/kubernetes/examples/issues/260 | ||
fsGroup: 2002 | ||
runAsUser: 2002 | ||
runAsGroup: 2002 | ||
runAsNonRoot: true | ||
|
||
# -- Standard K8s field that holds security configurations that will be applied to a container. | ||
# https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | ||
# | ||
containerSecurityContext: | ||
runAsUser: 2002 | ||
runAsGroup: 2002 | ||
runAsNonRoot: true | ||
|
||
# -- Boolean to define whether to set local home directory permissions on startup | ||
# of Confluence container. Set to 'false' to disable this behaviour. | ||
# | ||
setPermissions: true | ||
|
||
volumes: | ||
sharedHome: | ||
nfsPermissionFixer: | ||
enabled: false |