Skip to content

Instantly share code, notes, and snippets.

View dims's full-sized avatar

Davanum Srinivas dims

View GitHub Profile
# install filter-repo (https://github.com/newren/git-filter-repo/blob/main/INSTALL.md)
brew install git-filter-repo
# create a temporary clone of docker
cd ~/Projects
git clone https://github.com/distribution/distribution.git reference
cd reference
# commit taken from
git rev-parse --verify HEAD
===========================================================================================================
kubetest2 ec2 \
--build \
--region us-east-1 \
--target-build-arch linux/amd64 \
--stage dims-aws-test-infra
===========================================================================================================
// ==UserScript==
// @name Testgrid default width
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://testgrid.k8s.io/*
// @run-at document-idle
// @icon https://www.google.com/s2/favicons?sz=64&domain=k8s.io
// @grant GM_log

Install goreleaser from https://goreleaser.com/install/

export GORELEASER_PREVIOUS_TAG=v0.4.1
export GORELEASER_CURRENT_TAG=v0.5.0

git fetch --all --tags
git checkout tags/$GORELEASER_CURRENT_TAG -b branch-for-tag-$GORELEASER_CURRENT_TAG
goreleaser release --clean
eksctl create cluster -f config.yaml
eksctl delete cluster -f config.yaml
eksctl create nodegroup -f config.yaml
eksctl delete nodegroup -f config.yaml
@dims
dims / R_kgDOHDwlIw.json
Last active May 24, 2023 14:47
main.json
{"schemaVersion":1,"label":"coverage","message":"30.2","color":"yellow","namedLogo":"go"}
@dims
dims / peel-the-onion.sh
Last active May 12, 2023 19:32
run exactly what runs in local-up / presubmit job
##########################################################################
# Run the same kubekins container used in the CI job
IMAGE=gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230406-23cb1879e3-master
(sudo mkdir -p /tmp/docker-graph && sudo chmod -R 777 /tmp/docker-graph && cd /tmp/docker-graph && rm -rf *)
docker run -e DOCKER_IN_DOCKER_ENABLED=true --privileged --rm \
--entrypoint=/bin/bash \
-it \
@dims
dims / run-local-up-cluster-on-fresh-ubuntu-install.sh
Last active February 5, 2024 22:28
Run local-up-cluster.sh on a fresh ubuntu environment
# ====== Fetch Kubernetes Sources =======
mkdir -p $HOME/go/src/k8s.io/
cd $HOME/go/src/k8s.io/
git clone https://github.com/kubernetes/kubernetes
alias k="cd $HOME/go/src/k8s.io/kubernetes"
# ====== Install and configure Docker/Containerd =======
sudo apt-get update
sudo du -cah / | grep -E "^[0-9]*\.?[0-9]*G"
@dims
dims / bigquery.sql
Created February 28, 2023 19:50
big query sql
SELECT timestamp_seconds(started) started, build, name,length(failure_text) FROM `kubernetes-public.k8s_triage.temp`
WHERE started > 1672549200
ORDER BY length(failure_text) DESC
LIMIT 500
SELECT timestamp_seconds(started) started, build, name,length(failure_text)
FROM kubernetes-public.k8s_triage.temp
WHERE CONTAINS_SUBSTR(build, 'generate-make-test-count10')
ORDER BY length(failure_text) DESC