Skip to content

Instantly share code, notes, and snippets.

View nikhil-thomas's full-sized avatar
🧑‍💻

Nikhil Thomas nikhil-thomas

🧑‍💻
View GitHub Profile
#!/usr/bin/env bash
DEFAULT_TARGET_NAMESPACE='deployment-validation-operator'
LOG_FILE_NAME="dvo_memory_usage_$(date '+%Y.%m.%d-%H.%M.%S')"
START_EVENTS_FLAG="start-events"
# install dvo
function ensure_namespace() {
local operator_namespace=${1}
oc get ns ${operator_namespace} > /dev/null 2>&1 || oc create ns ${operator_namespace}
../../../.deps/bin/kustomize build ../manifests | ../../../.deps/bin/operator-sdk generate bundle --channels stable --default-channel stable --kustomize-dir manifests --overwrite --package addon-operator --version 1.4.1
curl \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/coderman-engineering/hello-world/commits/e37dc766f8e70c88e0fec339416f5670dd759e22/status
curl -v \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: TOKEN <github token>" \
https://api.github.com/repos/coderman-engineering/hello-world/statuses/e37dc766f8e70c88e0fec339416f5670dd759e22 \
apiVersion: v1
items:
- apiVersion: batch/v1
kind: CronJob
metadata:
labels:
tektonconfig.operator.tekton.dev/pruner: "true"
name: tekton-resource-pruner-bjc47
namespace: openshift-pipelines
spec:
@nikhil-thomas
nikhil-thomas / detach_tektonhub_from_operator.sh
Created May 6, 2022 14:57
detach_tektonhub_from_operator
#!/usr/bin/env bash
# usage
# ./detach_tektonhub_from_operator.sh
function scale_operator() {
local replicas=${1:-0}
oc scale deployment -n openshift-operators openshift-pipelines-operator --replicas=${replicas}
}
@nikhil-thomas
nikhil-thomas / gist:321f800700a504fb7d2c810ed25ab674
Last active April 29, 2022 12:20
release-setup-branch-0.57.0.log
--------------------------------------------------
Tektocd Operator Release: v0.57.0
Run the following commands to make a tektoncd/operator release
--------------------------------------------------
1. Create a workspace template file (if it does not exist)
cat <<EOF > workspace-template.yaml
@nikhil-thomas
nikhil-thomas / release-commands.log
Last active April 26, 2022 09:41
output of set up release branch script
--------------------------------------------------
Tektocd Operator Release: v0.57.0
Run the following commands to make a tektoncd/operator release
--------------------------------------------------
1. Create a workspace template file (if it does not exist)
cat <<EOF > workspace-template.yaml
iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAADiJJREFUaEPtmAdUU8n6wOemkQQSegepUgRBmgpSBAQVVGwoWxDXujYUBFmwILuWFRvlD64rq1ieBXdBRECFpYQmgQUfImWRaghSJSSQS9p950biqquI+/Cc/3mHOeeem5P7zTfzm6/MNwOB/5EG/Y9wgCmQ/2+WnLLIlEU+0wpMudZnWth/rHbKIhNdugU65t7n3APShDwul97VRDtKzw5pZPc1vqc/Tp8or0El4hSGYd5QE8xiAAB478opkckaOw3cT1grGXpDWCmZyy1Fkb+2lBz/7BZp/OYEN7ul6qavjvk67ugwSx6DlRcIRnmrC6+7FfUwS6NM7aNCjSzD8YgIByEiACEIAIgIEQEMNIxgRZcZTZd21+Rv1aJS9W7YBVRicUTZXh6vH4+TVrzRWn7cS9cx/IvcKOizgzz/5gQyL/WMQQeru4259ruRGbd+UjtkbfvDVj2znRiREIwKeCObq/ICbnc+SwMAQDXOy6ssaHdsAAACB2Vtp3gLj9tkPFUFRrDg997WuyFVqWsyPcKHvXOOywIAhMnuUdz1v0di/1sQ3MdcjBlwhG+cekKZzWb3AQCk+lYFsdzykm3L53/1ZHt13oZLbXWXJDrmKqrOSTRzvBBU92h3YV9nvuR/a3ltp4TZfrSw6oxVW0w84wIrrs0d4A6groc57/aDcGveQcI/Blk3zy9ii8OaIxg+LMALeQAn5AMc+hahb/QRAKyIB6QQEd7z3gXrfw8yq9GJrdeduf6clcsli+yrBk0wq+XNhUi2dLlkQlWxeT4Kd/rSMxa/s0gyWR4RQw+6niTH1mZsGPtGjXM9wgrMP4D5RyD7l+5Ndta39lkY+5UCAAAZzyrPVu3tK+hsyt706K4/KsdZvkOwtDjdPb+PUSjppwQAxUfb2NdVedoiR2U974d9jIfFvV15aR3PrrMBu/+1HJmsHu8QyvwiNwoLABA5
if(hour(now()) * 100 + minute(now()) >= prop("start") and hour(now()) * 100 + minute(now()) < prop("end"), "💲👨‍💻🎯➡️", " ")
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
labels:
app.kubernetes.io/component: webhook
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-pipelines
pipeline.tekton.dev/release: v0.32.0
name: config.webhook.pipeline.tekton.dev
webhooks: