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
The method createOrReplace(Secret) from the type ItemWritableOperation is deprecated
but this is in the doku Create or Replace an existing Secret: Secret createdSecret = client.secrets().inNamespace("default").createOrReplace(secret1); at https://github.com/fabric8io/kubernetes-client/blob/master/doc/CHEATSHEET.md#secret
Can you remove it and write something how to do it.
So i can i replace a secret ?
delete and create ?
6.2.0
Look at the doku
Create or Replace an existing Secret: Secret createdSecret = client.secrets().inNamespace("default").createOrReplace(secret1);
Doku is right
Kubernetes (vanilla)
1.23
Linux
No response
The text was updated successfully, but these errors were encountered:
Secret createdSecret = client.secrets().inNamespace("default").createOrReplace(secret1);
Should be changed to
Secret createdSecret = client.secrets().inNamespace("default").resource(secret1).createOrReplace();
Sorry, something went wrong.
Yes thanks now it works.
Hi @manusa Can I take this ?
SaumyaBhushan
Successfully merging a pull request may close this issue.
Describe the bug
The method createOrReplace(Secret) from the type ItemWritableOperation is deprecated
but this is in the doku
Create or Replace an existing Secret:
Secret createdSecret = client.secrets().inNamespace("default").createOrReplace(secret1);
at https://github.com/fabric8io/kubernetes-client/blob/master/doc/CHEATSHEET.md#secret
Can you remove it and write something how to do it.
So i can i replace a secret ?
delete and create ?
Fabric8 Kubernetes Client version
6.2.0
Steps to reproduce
Look at the doku
Create or Replace an existing Secret:
Secret createdSecret = client.secrets().inNamespace("default").createOrReplace(secret1);
Expected behavior
Doku is right
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.23
Environment
Linux
Fabric8 Kubernetes Client Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: