You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened (please include outputs or screenshots):
I want to remove a key from a secret. So I'm creating the patch data with a None value for this key. This key is not deleted (secret is unchanged).
What you expected to happen:
The key is deleted.
How to reproduce it (as minimally and precisely as possible):
Create a secret my-secret in some namespace mpw. It should contain a key test with some value.
Then run this program:
Anything else we need to know?:
Note that I'm passing the secret_data to the parameter string_data. When I passing it to data, the key is deleted as expected.
Environment:
Kubernetes version (kubectl version): Server Version: v1.29.3
OS (e.g., MacOS 10.13.6): MacOS 14.6.1
Python version (python --version): Python 3.11.9
Python client version (pip list | grep kubernetes): kubernetes 30.1.0
The text was updated successfully, but these errors were encountered:
What happened (please include outputs or screenshots):
I want to remove a key from a secret. So I'm creating the patch data with a
None
value for this key. This key is not deleted (secret is unchanged).What you expected to happen:
The key is deleted.
How to reproduce it (as minimally and precisely as possible):
Create a secret
my-secret
in some namespacempw
. It should contain a keytest
with some value.Then run this program:
Anything else we need to know?:
Note that I'm passing the
secret_data
to the parameter string_data. When I passing it to data, the key is deleted as expected.Environment:
kubectl version
): Server Version: v1.29.3python --version
): Python 3.11.9pip list | grep kubernetes
): kubernetes 30.1.0The text was updated successfully, but these errors were encountered: