Last active
December 31, 2021 03:19
-
-
Save jsoref/d5b1989ffe23de5bab9adc9232fb02ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
api_sources=$(mktemp) | |
echo localhost:8001/api/v1 >> $api_sources | |
extra_apis=$(mktemp) | |
export api_prefix=localhost:8001/apis/ | |
curl -sq $api_prefix > $extra_apis | |
jq -r '.groups[].preferredVersion.groupVersion' $extra_apis | perl -pne 's{^}{$ENV{api_prefix}}' >> $api_sources | |
apis=$(mktemp) | |
( | |
for api in $(cat $api_sources); do | |
curl -sq $api | |
echo | |
done | |
) > $apis | |
jq 'del(.resources[].storageVersionHash)' $apis | perl -pne 's{v\d+|\W+}{\n}g'| w | perl -pne 's{\W+}{\n}g'| sort -u | sort -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admissionregistration | |
Alertmanager | |
alertmanager | |
alertmanagers | |
api | |
apiextensions | |
apiregistration | |
apiserver | |
apiservices | |
appproj | |
appproject | |
appprojects | |
appprojs | |
apps | |
argoproj | |
Autoscaler | |
autoscaling | |
Backend | |
backendconfig | |
backendconfigs | |
bitnami | |
capacityrequest | |
capacityrequests | |
capreq | |
certificaterequest | |
certificaterequests | |
certificatesigningrequests | |
certs | |
clusterissuer | |
clusterissuers | |
clusterrolebindings | |
clusterroles | |
componentstatuses | |
Config | |
configmaps | |
controllerrevisions | |
coreos | |
crd | |
crds | |
Cron | |
cronjobs | |
csidrivers | |
csinodes | |
csr | |
customresourcedefinitions | |
daemonsets | |
deletecollection | |
endpointslices | |
flowschemas | |
gke | |
horizontalpodautoscalers | |
hpa | |
ingressclasses | |
kope | |
limitranges | |
localsubjectaccessreviews | |
managedcertificate | |
managedcertificates | |
mcrt | |
mutatingwebhookconfigurations | |
Namespace | |
namespace | |
namespaced | |
namespaces | |
netpol | |
networkpolicies | |
nodemanagement | |
pdb | |
persistentvolumeclaims | |
persistentvolumes | |
poddisruptionbudgets | |
podmonitor | |
podmonitors | |
podtemplates | |
portforward | |
priorityclasses | |
prioritylevelconfigurations | |
prometheuses | |
prometheusrule | |
prometheusrules | |
pvc | |
rbac | |
replicasets | |
replicationcontrollers | |
resourcequotas | |
rolebindings | |
runtimeclasses | |
scalingpolicies | |
scalingpolicy | |
sealedsecret | |
sealedsecrets | |
selfsubjectaccessreviews | |
selfsubjectrulesreviews | |
serviceaccounts | |
servicemonitor | |
servicemonitors | |
statefulsets | |
storageclasses | |
sts | |
subjectaccessreviews | |
thanosruler | |
thanosrulers | |
tokenreviews | |
updateinfo | |
updateinfos | |
updinf | |
validatingwebhookconfigurations | |
volumeattachments | |
volumesnapshot | |
volumesnapshotclass | |
volumesnapshotclasses | |
volumesnapshotcontent | |
volumesnapshotcontents | |
volumesnapshots | |
Webhook |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment