diff --git a/pkg/volume/cephfs/cephfs.go b/pkg/volume/cephfs/cephfs.go index 779b7122ab6..6966b8dd582 100644 --- a/pkg/volume/cephfs/cephfs.go +++ b/pkg/volume/cephfs/cephfs.go @@ -189,7 +189,7 @@ type cephfs struct { mon []string path string id string - secret string + secret string `datapolicy:"token"` secretFile string readonly bool mounter mount.Interface diff --git a/pkg/volume/glusterfs/glusterfs.go b/pkg/volume/glusterfs/glusterfs.go index 21fb6668938..ce1e76408ba 100644 --- a/pkg/volume/glusterfs/glusterfs.go +++ b/pkg/volume/glusterfs/glusterfs.go @@ -461,7 +461,7 @@ type provisionerConfig struct { userKey string secretNamespace string secretName string - secretValue string + secretValue string `datapolicy:"token"` clusterID string gidMin int gidMax int diff --git a/pkg/volume/iscsi/iscsi.go b/pkg/volume/iscsi/iscsi.go index 83913631834..150a4ef587f 100644 --- a/pkg/volume/iscsi/iscsi.go +++ b/pkg/volume/iscsi/iscsi.go @@ -283,7 +283,7 @@ type iscsiDisk struct { Iface string chapDiscovery bool chapSession bool - secret map[string]string + secret map[string]string `datapolicy:"token"` InitiatorName string plugin *iscsiPlugin // Utility interface that provides API calls to the provider to attach/detach disks. diff --git a/pkg/volume/quobyte/quobyte.go b/pkg/volume/quobyte/quobyte.go index 199b871b43e..927e62a5039 100644 --- a/pkg/volume/quobyte/quobyte.go +++ b/pkg/volume/quobyte/quobyte.go @@ -49,7 +49,7 @@ type quobytePlugin struct { // Quobyte API server and holds all information type quobyteAPIConfig struct { quobyteUser string - quobytePassword string + quobytePassword string `datapolicy:"password"` quobyteAPIServer string } diff --git a/pkg/volume/rbd/rbd.go b/pkg/volume/rbd/rbd.go index 55f5e6bf2ab..387b92e1691 100644 --- a/pkg/volume/rbd/rbd.go +++ b/pkg/volume/rbd/rbd.go @@ -803,9 +803,9 @@ type rbdMounter struct { Mon []string ID string Keyring string - Secret string + Secret string `datapolicy:"token"` fsType string - adminSecret string + adminSecret string `datapolicy:"token"` adminID string mountOptions []string imageFormat string diff --git a/pkg/volume/scaleio/sio_client.go b/pkg/volume/scaleio/sio_client.go index a9c83267194..25dfd3d876d 100644 --- a/pkg/volume/scaleio/sio_client.go +++ b/pkg/volume/scaleio/sio_client.go @@ -61,7 +61,7 @@ type sioClient struct { client *sio.Client gateway string username string - password string + password string `datapolicy:"password"` insecure bool certsEnabled bool system *siotypes.System