Secret now properly deployable
This commit is contained in:
8
k8s-templates/secret.yaml
Normal file
8
k8s-templates/secret.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: django-secret
|
||||||
|
namespace: labhelper
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
secret-key: "CHANGE_ME_TO_RANDOM_STRING"
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
NAMESPACE="labhelper"
|
NAMESPACE="labhelper"
|
||||||
SECRET_NAME="django-secret"
|
SECRET_NAME="django-secret"
|
||||||
SECRET_FILE="argocd/secret.yaml"
|
SECRET_FILE="k8s-templates/secret.yaml"
|
||||||
|
|
||||||
# Check if secret file exists
|
# Check if secret file exists
|
||||||
if [ ! -f "$SECRET_FILE" ]; then
|
if [ ! -f "$SECRET_FILE" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user