Execute this line in the browser console to click all of the unchecked "viewed" checkboxes in the "Files changed" tab of a github PR. Usefull when there are many changes in dependencies or generated files that do not need to be reviewed.
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
apiVersion: v1 | |
data: | |
ca.crt: | | |
-----BEGIN CERTIFICATE----- | |
MIIFazCCA1OgAwIBAgIUWtA3m5iBt3JlR3JIL4C854aiomkwDQYJKoZIhvcNAQEL | |
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM | |
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMzA5MjUxMzQ4MjRaFw0yNDA5 | |
MjQxMzQ4MjRaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw | |
HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggIiMA0GCSqGSIb3DQEB | |
AQUAA4ICDwAwggIKAoICAQDZbvJvUaiU9EHgr3z8ED4nnphj0BNGaNus5qarsYmv |
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
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: mock-resources.test.tectonic.com | |
spec: | |
group: test.tectonic.com | |
scope: Namespaced | |
names: | |
plural: mock-resources | |
singular: mock-resource |
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
#!/bin/bash | |
instanceType=$1 | |
function upgrade-machineset { | |
echo "Patching $1 with instanceType $instanceType" | |
oc patch $1 --type='merge' --patch="{\"spec\": { \"template\": { \"spec\": { \"providerSpec\": { \"value\": { \"instanceType\": \"$instanceType\"}}}}}}" -n openshift-machine-api | |
echo "Scaling $1 to 0" | |
oc scale $1 --replicas=0 -n openshift-machine-api | |
echo "Scaling $1 back to 1" | |
oc scale $1 --replicas=1 -n openshift-machine-api |
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
#!/bin/bash | |
function upgrade-machineset { | |
echo "Patching $1 with instanceType m5.2xlarge" | |
oc patch machineset $1 --type='merge' --patch='{"spec": { "template": { "spec": { "providerSpec": { "value": { "instanceType": "m5.2xlarge"}}}}}}' -n openshift-machine-api | |
echo "Scaling $1 to 0" | |
oc scale machineset $1 --replicas=0 -n openshift-machine-api | |
echo "Scaling $1 back to 1" |
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
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: mock-resources.test.tectonic.com | |
spec: | |
group: test.tectonic.com | |
scope: Namespaced | |
names: | |
plural: mock-resources | |
singular: mock-resource |