Skip to content

Commit

Permalink
Feat/add notification bearer secret (#317)
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <gfarache@redhat.com>
  • Loading branch information
gabriel-farache authored Jul 16, 2024
1 parent 5285f36 commit bbd986b
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions create-ocp-project/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions escalation/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions modify-vm-resources/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions move2kube/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions mta-v6.x/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions mta-v7.x/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions mta/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions mtv-migration/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions mtv-plan/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
1 change: 1 addition & 0 deletions request-vm-cnv/secret.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_BEARER_TOKEN=
13 changes: 13 additions & 0 deletions scripts/gen_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ yq --inplace eval '.metadata.annotations["sonataflow.org/profile"] = "prod"' "${

yq --inplace ".spec.podTemplate.container.image=\"quay.io/orchestrator/serverless-workflow-${workflow_id}:latest\"" "${SONATAFLOW_CR}"

if test -f "secret.properties"; then
if [ ! -f kubectl ]; then
echo "Installing kubectl CLI"
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
else
echo "kubectl cli already available"
fi

yq --inplace ".spec.podTemplate.container.envFrom=[{\"secretRef\": { \"name\": \"${workflow_id}-creds\"}}]" "${SONATAFLOW_CR}"
../kubectl create -n sonataflow-infra secret generic "${workflow_id}-creds" --from-env-file=secret.properties --dry-run=client -oyaml > "manifests/01-secret_${workflow_id}.yaml"
fi

yq --inplace ".spec |= (
. + {
\"persistence\": {
Expand Down

0 comments on commit bbd986b

Please sign in to comment.