Commit a19fb92b authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Added configurable environment to local deployments

parent 6ee05d80
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@ spec:
              value: {{ quote .Values.env.timeout }}
            - name: REGISTER_HOSTNAME
              value: {{ quote .Values.env.registerHostname }}
            - name: CAPIF_HOSTNAME
              value: {{ quote .Values.env.capifHostname }}
          livenessProbe:
            {{- toYaml .Values.livenessProbe | nindent 12 }}
          readinessProbe:
+2 −2
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@ mongo: {

ca_factory:
  url: !ENV ${VAULT_HOSTNAME}
  port: "8200"
  token: "dev-only-token"
  port: !ENV ${VAULT_PORT}
  token: !ENV ${VAULT_ACCESS_TOKEN}
  verify: False


+2 −2
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@ mongo: {

ca_factory:
  url: !ENV ${VAULT_HOSTNAME}
  port: "8200"
  token: "dev-only-token"
  port: !ENV ${VAULT_PORT}
  token: !ENV ${VAULT_ACCESS_TOKEN}
  verify: False


+2 −2
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@ monitoring:

ca_factory:
  url: !ENV ${VAULT_HOSTNAME}
  port: 8200
  token: dev-only-token
  port: !ENV ${VAULT_PORT}
  token: !ENV ${VAULT_ACCESS_TOKEN}
  verify: False

capif_configuration:
+10 −1
Original line number Diff line number Diff line
#!/bin/bash
source $(dirname "$(readlink -f "$0")")/variables.sh
# Capture the first parameter as a possible environment
ENVIRONMENT="dev"
if [[ "$1" != -* && -n "$1" ]]; then
  ENVIRONMENT="$1"
  shift
fi

# Load variables for the selected environment
source "$(dirname "$0")/variables.sh" "$ENVIRONMENT"
# source $(dirname "$(readlink -f "$0")")/variables.sh

export CAPIF_PRIV_KEY=
export CAPIF_PRIV_KEY_BASE_64=
Loading