This file contains hidden or 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
| python -c 'import yaml, sys; yaml.safe_load(sys.stdin)' < dc.yaml |
This file contains hidden or 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
| ISTIO_VERSION=1.1.8 | |
| KIALI_USERNAME="admin" | |
| KIALI_PASSPHRASE="admin" | |
| #Patch Openshift master to support webhook" | |
| cat << EOF > /etc/origin/master/master-config.patch | |
| admissionConfig: | |
| pluginConfig: | |
| MutatingAdmissionWebhook: |
This file contains hidden or 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 YAML file contains nginx & csi cinder driver objects, | |
| # which are necessary to run nginx with csi cinder driver. | |
| apiVersion: storage.k8s.io/v1 | |
| kind: StorageClass | |
| metadata: | |
| name: csi-sc-cinderplugin | |
| provisioner: csi-cinderplugin | |
| parameters: | |
| type: Corporate |
This file contains hidden or 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
| # Get latest Git tag | |
| git describe --tags $(git rev-list --tags --max-count=1) | |
| # Get Previous Git Tag (from latest tag) | |
| git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1) |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <template encoding-version="1.2"> | |
| <description></description> | |
| <groupId>8ce97bbb-0162-1000-233e-5c8cc4c3a93f</groupId> | |
| <name>DevOps KPI - Change Volume and Lead Time</name> | |
| <snippet> | |
| <connections> | |
| <id>8a0d9e3d-1744-3d97-0000-000000000000</id> | |
| <parentGroupId>33980602-0d29-3ae1-0000-000000000000</parentGroupId> | |
| <backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> |
This file contains hidden or 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
| .BAT or .CMD | |
| @echo off | |
| FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i | |
| FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i | |
| Command line | |
| FOR /f "tokens=*" %i IN ('docker ps -aq') DO docker rm %i | |
| FOR /f "tokens=*" %i IN ('docker images --format "{{.ID}}"') DO docker rmi %i |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: app-user1-service-blue | |
| namespace: user1 | |
| spec: | |
| selector: | |
| app: app-user-blue | |
| ports: | |
| - protocol: TCP |
This file contains hidden or 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
| awk -v q="'" '{print "value is" q $1 q}' inputfile | |
| or | |
| awk '{print "value is \x27" $1 "\x27"}' inputfile |
This file contains hidden or 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
| oc get hpa -l 'app=activemq-health' --no-headers=true 2>&1 | awk -v q="'" '{ if($0 != "No resources found.") { print "oc patch hpa "$1 " --patch " q"{\"spec\":{\"minReplicas\":1}}"q } }' |xargs -0 bash -c - |
This file contains hidden or 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
| def gitURL="git@github.com/Account.git" | |
| def appName="acc-prod-bluegreen" | |
| def svcName="acc-prod" | |
| def project="cloud-prod" | |
| def tag="blue" | |
| def altTag="green" | |
| def verbose="false" | |
| try { | |
| timeout(time: 500, unit: 'MINUTES') { |