Skip to content

Instantly share code, notes, and snippets.

View markjacksonfishing's full-sized avatar
🎣
Fishing

Mark Jackson markjacksonfishing

🎣
Fishing
View GitHub Profile
@markjacksonfishing
markjacksonfishing / readme.md
Created January 13, 2020 02:51 — forked from jimangel/readme.md
Examples of how to test the impact of the v1.16 API deprecations

Kubernetes v1.16 API deprecation testing

Examples of how to test the impact of the v1.16 API deprecations and ways to debug early!

If this is the first time you're hearing of these deprecations STOP and read this blog post (thanks @vllry!).

Common misunderstandings

  1. The exact apiVersion: value that I use in my manifest is stored in on disk (etcd).
apiVersion: v1
kind: Service
metadata:
name: kube-struts-svc
spec:
type: LoadBalancer
ports:
- port: 8080
selector:
app: kube-struts-pod
# Git
## Global Settings
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
## Reminder
Press `minus + shift + s` and `return` to chop/fold long lines!
// Import the JsonSlurper class to parse Dockerhub API response
import groovy.json.JsonSlurper
// Set the URL we want to read from, it is <repo>/<reponame> and is limited to 20 results only.
docker_image_tags_url = "https://hub.docker.com/v2/repositories/<repo>/<reponame>/tags/?page_size=20"
try {
// Set requirements for the HTTP GET request, you can add Content-Type headers and so on...
def http_client = new URL(docker_image_tags_url).openConnection() as HttpURLConnection
http_client.setRequestMethod('GET')
// Run the HTTP request
http_client.connect()
https://user-images.githubusercontent.com/2285385/33986408-c3a8af98-e0bd-11e7-9a59-608c30b8a5ea.png
Story Point Time Bucket
1 0-6 hours
2 6-13 hours
3 13-20 hours
5 20-35 hours
8 35-55 hours
13 55-80 hours
20 85-140 hours
50 140-200 hours
100 >200 hours