Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoSecret with empty value field
Hi there,
I want to create secret for gitlab registration token, It should has 2 filed mandatory: 1 field with token, another one is empty:
apiVersion: v1
data:
runner-registration-tok...
Former Member
3 years agoHey @ohrab,
Currently the 1Password Kubernetes operator ignores all fields that are empty when creating a Kubernetes Secret.
When you update a 1Password item and empty one of the fields (i.e. the value of the field is an empty string), the operator will update the secret by removing that data from the secret. Therefore, you will not see the runner-token
data since it doesn't exist.
Would you think it would be a good idea to make the operator add all the data from the 1Password Item to the Kubernetes Secret even though it's empty?
This means that if the item has multiple fields that are empty, the keys will be present when getting the secret and their values will be empty (i.e. the empty string).