Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Kubetools v13.9.0 doesn't support Kubernetes versions prior to v1.21 #130

Open
DilaraOflaz opened this issue Jun 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@DilaraOflaz
Copy link
Contributor

DilaraOflaz commented Jun 23, 2022

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

@DilaraOflaz DilaraOflaz added the bug Something isn't working label Jun 23, 2022
@DilaraOflaz DilaraOflaz changed the title [BUG] - Kubetools v13.9.0 doesn't support Kubernetes versions <v1.21 [BUG] - Kubetools v13.9.0 doesn't support Kubernetes versions prior to v1.21 Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant