This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
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 #249 from SUSE/fix_eirini_extensions
Bump Eirini to v1 and fix eirini extensions
- Loading branch information
Showing
10 changed files
with
323 additions
and
13 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
34 changes: 34 additions & 0 deletions
34
bosh/releases/pre_render_scripts/eirini/eirini-persi-broker/bpm/patch_bpm.sh
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit -o nounset | ||
|
||
target="/var/vcap/all-releases/jobs-src/eirini/eirini-persi-broker/templates/bpm.yml.erb" | ||
sentinel="${target}.patch_sentinel" | ||
if [[ -f "${sentinel}" ]]; then | ||
echo "Patch already applied. Skipping" | ||
exit 0 | ||
fi | ||
|
||
# Patch BPM, since we're actually running in-cluster without BPM | ||
patch --verbose "${target}" <<'EOT' | ||
@@ -3,17 +3,4 @@ processes: | ||
executable: /var/vcap/packages/eirini-persi-broker/bin/eirini-persi-broker | ||
args: [] | ||
env: | ||
- KUBERNETES_SERVICE_HOST: "<%= p("eirini-persi-broker.kube_service_host") %>" | ||
- KUBERNETES_SERVICE_PORT: "<%= p("eirini-persi-broker.kube_service_port") %>" | ||
BROKER_CONFIG_PATH: /var/vcap/jobs/eirini-persi-broker/config/eirini-persi-broker.yml | ||
- <% if properties.opi&.k8s&.host_url.nil? %> | ||
- # The ServiceAccount admission controller has to be enabled. | ||
- # https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod | ||
- additional_volumes: | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
- mount_only: true | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | ||
- mount_only: true | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/namespace | ||
- mount_only: true | ||
- <% end %> | ||
EOT | ||
|
||
touch "${sentinel}" |
38 changes: 38 additions & 0 deletions
38
bosh/releases/pre_render_scripts/eirini/eirini-persi/bpm/patch_bpm.sh
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,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit -o nounset | ||
|
||
target="/var/vcap/all-releases/jobs-src/eirini/eirini-persi/templates/bpm.yml.erb" | ||
sentinel="${target}.patch_sentinel" | ||
if [[ -f "${sentinel}" ]]; then | ||
echo "Patch already applied. Skipping" | ||
exit 0 | ||
fi | ||
|
||
# Patch BPM, since we're actually running in-cluster without BPM | ||
patch --verbose "${target}" <<'EOT' | ||
@@ -3,21 +3,8 @@ processes: | ||
executable: /var/vcap/packages/eirini-persi/bin/eirini-persi | ||
args: [] | ||
env: | ||
- KUBERNETES_SERVICE_HOST: "<%= p("eirini-persi.kube_service_host") %>" | ||
- KUBERNETES_SERVICE_PORT: "<%= p("eirini-persi.kube_service_port") %>" | ||
OPERATOR_WEBHOOK_HOST: "<%= p("eirini-persi.operator_webhook_host") %>" | ||
OPERATOR_WEBHOOK_PORT: "<%= p("eirini-persi.operator_webhook_port") %>" | ||
NAMESPACE: "<%= p("eirini-persi.namespace") %>" | ||
OPERATOR_SERVICE_NAME: "<%= p("eirini-persi.operator_webhook_servicename") %>" | ||
OPERATOR_WEBHOOK_NAMESPACE: "<%= p("eirini-persi.operator_webhook_namespace") %>" | ||
- <% if properties.opi&.k8s&.host_url.nil? %> | ||
- # The ServiceAccount admission controller has to be enabled. | ||
- # https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod | ||
- additional_volumes: | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
- mount_only: true | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | ||
- mount_only: true | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/namespace | ||
- mount_only: true | ||
- <% end %> | ||
EOT | ||
|
||
touch "${sentinel}" |
38 changes: 38 additions & 0 deletions
38
bosh/releases/pre_render_scripts/eirini/eirini-ssh-extension/bpm/patch_bpm.sh
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,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit -o nounset | ||
|
||
target="/var/vcap/all-releases/jobs-src/eirini/eirini-ssh-extension/templates/bpm.yml.erb" | ||
sentinel="${target}.patch_sentinel" | ||
if [[ -f "${sentinel}" ]]; then | ||
echo "Patch already applied. Skipping" | ||
exit 0 | ||
fi | ||
|
||
# Patch BPM, since we're actually running in-cluster without BPM | ||
patch --verbose "${target}" <<'EOT' | ||
@@ -3,21 +3,8 @@ processes: | ||
executable: /var/vcap/packages/eirini-ssh-extension/bin/eirini-ssh-extension | ||
args: [] | ||
env: | ||
- KUBERNETES_SERVICE_HOST: "<%= p("eirini-ssh-extension.kube_service_host") %>" | ||
- KUBERNETES_SERVICE_PORT: "<%= p("eirini-ssh-extension.kube_service_port") %>" | ||
EIRINI_EXTENSION_HOST: "<%= p("eirini-ssh-extension.operator_webhook_host") %>" | ||
EIRINI_EXTENSION_PORT: "<%= p("eirini-ssh-extension.operator_webhook_port") %>" | ||
EIRINI_EXTENSION_NAMESPACE: "<%= p("eirini-ssh-extension.namespace") %>" | ||
OPERATOR_SERVICE_NAME: "<%= p("eirini-ssh-extension.operator_webhook_servicename") %>" | ||
OPERATOR_WEBHOOK_NAMESPACE: "<%= p("eirini-ssh-extension.operator_webhook_namespace") %>" | ||
- <% if properties.opi&.k8s&.host_url.nil? %> | ||
- # The ServiceAccount admission controller has to be enabled. | ||
- # https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod | ||
- additional_volumes: | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
- mount_only: true | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | ||
- mount_only: true | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/namespace | ||
- mount_only: true | ||
- <% end %> | ||
EOT | ||
|
||
touch "${sentinel}" |
35 changes: 35 additions & 0 deletions
35
bosh/releases/pre_render_scripts/eirini/eirini-ssh-proxy/bpm/patch_bpm.sh
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,35 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit -o nounset | ||
|
||
target="/var/vcap/all-releases/jobs-src/eirini/eirini-ssh-proxy/templates/bpm.yml.erb" | ||
sentinel="${target}.patch_sentinel" | ||
if [[ -f "${sentinel}" ]]; then | ||
echo "Patch already applied. Skipping" | ||
exit 0 | ||
fi | ||
|
||
# Patch BPM, since we're actually running in-cluster without BPM | ||
patch --verbose "${target}" <<'EOT' | ||
@@ -5,18 +5,5 @@ processes: | ||
- "--config" | ||
- "/var/vcap/jobs/eirini-ssh-proxy/config/eirini-ssh-proxy.json" | ||
env: | ||
- KUBERNETES_SERVICE_HOST: "<%= p("eirini-ssh-proxy.kube_service_host") %>" | ||
- KUBERNETES_SERVICE_PORT: "<%= p("eirini-ssh-proxy.kube_service_port") %>" | ||
SSH_PROXY_KUBERNETES_NAMESPACE: "<%= p("eirini-ssh-proxy.kube_namespace") %>" | ||
SSH_PROXY_DAEMON_PORT: "<%= p("eirini-ssh-proxy.sshd_port") %>" | ||
- <% if properties.opi&.k8s&.host_url.nil? %> | ||
- # The ServiceAccount admission controller has to be enabled. | ||
- # https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod | ||
- additional_volumes: | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
- mount_only: true | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | ||
- mount_only: true | ||
- - path: /var/run/secrets/kubernetes.io/serviceaccount/namespace | ||
- mount_only: true | ||
- <% end %> | ||
EOT | ||
|
||
touch "${sentinel}" |
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
Oops, something went wrong.