Skip to content

Instantly share code, notes, and snippets.

Avatar

Cosnita Radu Viorel rcosnita

View GitHub Profile
@rcosnita
rcosnita / gist:92728f72e8d27d7c3451748a66ff4453
Last active Nov 19, 2020
Delete all resources from k8s
View gist:92728f72e8d27d7c3451748a66ff4453
#!/usr/bin/env bash
# # this gist is extracted from another gist on internet which I don't remember right now.
# kubectl-delete_all is a utility to delete all objects in the namespace.
[[ -n "$DEBUG" ]] && set -x
set -eou pipefail
exec kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all "$@"
@rcosnita
rcosnita / jenkins.yaml
Created Nov 28, 2019
Jenkins operator k8s definition
View jenkins.yaml
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: jenkins.jenkins.io
spec:
group: jenkins.io
names:
kind: Jenkins
listKind: JenkinsList
You can’t perform that action at this time.