We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What happened (please include outputs or screenshots):
When running the following test code;
body=k8s.client.V1PersistentVolumeClaim(metadata=k8s.client.V1ObjectMeta( name="%s-%s" % ("username","test_name") ), spec=k8s.client.V1PersistentVolumeClaimSpec( volume_mode="Filesystem", access_modes=["ReadWriteOnce"], storage_class_name="build-pvc", resources=k8s.client.V1ResourceRequirements( requests={"storage","1Gi"} ) ) ) try: api_response=k8s_client.create_namespaced_persistent_volume_claim("testnamespace",body,pretty=True) except Exception as e: return HttpResponse("ERROR Calling Kubernetes API: %s" % e)
I get the response 'set' object has no attribute 'openapi_types'
What you expected to happen:
PVC is created as named in the givennamespace
How to reproduce it (as minimally and precisely as possible):
Code provided above.
Anything else we need to know?:
Environment:
kubectl version
python --version
pip list | grep kubernetes
problem also occurs with 29. version.
The text was updated successfully, but these errors were encountered:
@mattjwarren Could you follow one of the examples to perform a creation? https://github.com/kubernetes-client/python/tree/master/examples I wonder if the issue is happening to other types as well, or just PVC?
Sorry, something went wrong.
Hi, just noted your response; I will follow up and post results here
No branches or pull requests
What happened (please include outputs or screenshots):
When running the following test code;
What you expected to happen:
PVC is created as named in the givennamespace
How to reproduce it (as minimally and precisely as possible):
Code provided above.
Anything else we need to know?:
Environment:
kubectl version
):1.25.16
linux / ubuntu 20.02
python --version
)3.1.0.12
pip list | grep kubernetes
)25.3.0
problem also occurs with 29. version.
The text was updated successfully, but these errors were encountered: