Skip to content

Instantly share code, notes, and snippets.

View nikhita's full-sized avatar
E_TOO_MANY_THINGS

Nikhita Raghunath nikhita

E_TOO_MANY_THINGS
View GitHub Profile
@nikhita
nikhita / -
Created July 28, 2017 23:18 — forked from anonymous/-
diff --git a/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go b/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go
index b865f3f746..8d961ce477 100644
--- a/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go
+++ b/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go
@@ -23,17 +23,19 @@ func (in *JSONSchemaProps) DeepCopy() *JSONSchemaProps {
}
out := new(JSONSchemaProps)
- if out.Default != nil {
+ *out = *in
@nikhita
nikhita / k8s-namespace-watcher.js
Created September 5, 2017 19:40 — forked from whitlockjc/k8s-namespace-watcher.js
Simple Node.js example of how to use a Kubernetes watcher
'use strict';
const fs = require('fs')
const http = require('http')
const K8S_HOST = process.env['K8S_HOST'] || '10.100.0.1'
const K8S_SECRET = process.env['K8S_SECRET'] ||
fs.readFileSync('/var/run/secrets/kubernetes.io/serviceaccount/token', 'utf-8')
var req = http.request({
@nikhita
nikhita / all-not-sorted.txt
Last active June 7, 2018 21:43
Generating list of PRs for client-go release-7 notes.
https://github.com/kubernetes/kubernetes/pull/59159
https://github.com/kubernetes/kubernetes/pull/59966
https://github.com/kubernetes/kubernetes/pull/55168
https://github.com/kubernetes/kubernetes/pull/60055
https://github.com/kubernetes/kubernetes/pull/58111
https://github.com/kubernetes/kubernetes/pull/59316
https://github.com/kubernetes/kubernetes/pull/58544
https://github.com/kubernetes/kubernetes/pull/54933
https://github.com/kubernetes/kubernetes/pull/59821
https://github.com/kubernetes/kubernetes/pull/59587
#!/bin/bash -ex
rm -rf cache.new
if [ ! -d cache ]; then
mkdir cache.new
pushd cache.new
for repo in $(ls -1 ../kubernetes/staging/src/k8s.io); do
git clone [email protected]:kubernetes/${repo}.git
done
popd
[merge]
tool = mymeld
conflictstyle = diff3
[mergetool "mymeld"]
# Shows three-pane merge view with central output directly being the merged file to save
cmd = $MANISHMELD $LOCAL $BASE $REMOTE --output=$MERGED
#cmd = meld "$LOCAL" "$BASE" "$REMOTE"
@nikhita
nikhita / fedora-firefox-gif-video.md
Created August 6, 2018 05:17
How to get Twitter gifs and short videos working on Firefox on Fedora

How to get Twitter gifs and short videos working on Firefox on Fedora

Note: This is for Fedora 28, however the process should be similar for other recent Fedora versions as well.

  1. Go to https://www.youtube.com/html5 and check if all boxes are checked. If gifs or short videos don't work for you, you mostly do not have H.264 and MSE & H.264.

  2. There are a bunch of repositories you need to setup.

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
@nikhita
nikhita / check-broken-k8s-links.md
Created September 21, 2018 14:01 — forked from jonasrosland/check-broken-k8s-links.md
Check broken links in Kubernetes Community repo
@nikhita
nikhita / client-go-smoke-test-release-9.txt
Last active October 5, 2018 10:00
Glide test for client-go release v9.0.0
#!/bin/bash -ex
rm -rf cache.new
if [ ! -d cache ]; then
mkdir cache.new
pushd cache.new
for repo in $(ls -1 ../kubernetes/staging/src/k8s.io); do
git clone https://github.com/kubernetes/${repo}.git
done
popd
@nikhita
nikhita / list-of-kubernetes-repos-over-time.py
Created December 4, 2018 05:11
List of Kubernetes GitHub repos over time in a Graph
import requests
repos = [
'kubernetes',
'kubernetes-client',
'kubernetes-csi',
'kubernetes-incubator',
'kubernetes-sigs',
]
@nikhita
nikhita / client-go-release-10-smoke-test.sh
Last active December 4, 2018 05:34
Script used to smoke test client-go v10.0.0 before releasing
#!/bin/bash -ex
cd $GOPATH/src/k8s.io
rm -rf cache.new
if [ ! -d cache ]; then
mkdir cache.new
pushd cache.new
for repo in $(ls -1 ../kubernetes/staging/src/k8s.io); do
git clone https://github.com/kubernetes/${repo}.git