how to hide some spec values from kubernetes custom resource?

4/10/2020

I am writing k8s operator with operator-sdk i took password (string) as input. I creating a secret out of it. everything works fine. But when the user describes my object kubectl describe <myKind> <objectname> password string gets print on console. I want to hide the string just like k8s secret does. Is there any way to achieve this?

-- Guru
kubernetes-operator

0 Answers