Describe the bug
Kubetools v13.9.0 doesn't support Kubernetes versions prior to v1.21+
To Reproduce
If you have a Kubernetes version prior to v1.21 installed, here is how to reproduce the behavior:
- Run
kubetools deploy ${NAMESPACE}
Expected behavior
kubernetes.client.exceptions.ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Server': 'openresty/1.15.8.1', 'Date': 'Wed, 22 Jun 2022 11:13:02 GMT', 'Content-Type': 'application/json', 'Content-Length': '174', 'Connection': 'keep-alive', 'Audit-Id': '', 'X-Content-Type-Options': 'nosniff', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource","reason":"NotFound","details":{},"code":404}
Additional context
CronJob apiVersion: batch/v1 is supported by Kubernetes version v1.21+, here is the doc
For lower versions we have to use apiVersion: batch/v1beta1
The latest version that supports apiVersion: batch/v1beta1 is v1.24+, here is the doc
Describe the bug
Kubetools
v13.9.0doesn't support Kubernetes versions prior tov1.21+To Reproduce
If you have a Kubernetes version prior to
v1.21installed, here is how to reproduce the behavior:kubetools deploy ${NAMESPACE}Expected behavior
Additional context
CronJob
apiVersion: batch/v1is supported by Kubernetes versionv1.21+, here is the docFor lower versions we have to use
apiVersion: batch/v1beta1The latest version that supports
apiVersion: batch/v1beta1isv1.24+, here is the doc