Last active
July 5, 2019 06:39
-
-
Save damienomurchu/71a973d94e4656f910bbcf9cefee0ecd to your computer and use it in GitHub Desktop.
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
# patch integreatly cluster for latest version of walkthroughs | |
function patch-cluster() { | |
# patch web-app | |
oc patch webapp tutorial-web-app-operator -n webapp --type=merge -p '{ "spec": { "template": { "parameters": { "WALKTHROUGH_LOCATIONS": "https://github.com/integr8ly/tutorial-web-app-walkthroughs.git#master" }}}}' | |
oc patch deployment tutorial-web-app-operator -n webapp -p '{ "spec": { "template": { "spec": { "containers": [{ "name": "tutorial-web-app-operator", "image": "quay.io/integreatly/tutorial-web-app-operator:master" }]}}}}' | |
oc patch deploymentconfig/tutorial-web-app -n webapp -p '{ "spec": { "template": { "spec": { "containers": [{ "name": "tutorial-web-app", "image": "quay.io/integreatly/tutorial-web-app:master" }]}}}}' | |
# patch grafana-operator | |
oc scale --replicas=0 deployment grafana-operator -n middleware-monitoring | |
oc patch deployment grafana-operator -n middleware-monitoring -p '{ "spec": { "template": { "spec": { "containers": [{ "name": "grafana-operator", "image": "quay.io/integreatly/grafana-operator:master" }]}}}}' | |
oc scale --replicas=1 deployment grafana-operator -n middleware-monitoring | |
# patch application-monitoring-operator | |
oc scale --replicas=0 deployment application-monitoring-operator -n middleware-monitoring | |
oc patch deployment application-monitoring-operator -n middleware-monitoring -p '{ "spec": { "template": { "spec": { "containers": [{ "name": "application-monitoring-operator", "image": "quay.io/integreatly/application-monitoring-operator:master" }]}}}}' | |
oc scale --replicas=1 deployment application-monitoring-operator -n middleware-monitoring | |
# patch keycloak-operator | |
oc patch deployment keycloak-operator -n sso -p '{ "spec": { "template": { "spec": { "containers": [{ "name": "keycloak-operator", "image": "quay.io/integreatly/keycloak-operator:master" }]}}}}' | |
oc patch deployment keycloak-operator -n user-sso -p '{ "spec": { "template": { "spec": { "containers": [{ "name": "keycloak-operator", "image": "quay.io/integreatly/keycloak-operator:master" }]}}}}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment