Add datapolicy tags to staging/src/k8s.io/kubectl

This commit is contained in:
Marek Siarkowicz 2020-10-29 18:11:22 +01:00
parent 17312ea4a9
commit 4b29b03573
2 changed files with 7 additions and 7 deletions

View File

@ -40,9 +40,9 @@ type createAuthInfoOptions struct {
name string name string
clientCertificate cliflag.StringFlag clientCertificate cliflag.StringFlag
clientKey cliflag.StringFlag clientKey cliflag.StringFlag
token cliflag.StringFlag token cliflag.StringFlag `datapolicy:"token"`
username cliflag.StringFlag username cliflag.StringFlag
password cliflag.StringFlag password cliflag.StringFlag `datapolicy:"password"`
embedCertData cliflag.Tristate embedCertData cliflag.Tristate
authProvider cliflag.StringFlag authProvider cliflag.StringFlag

View File

@ -38,7 +38,7 @@ type SecretForDockerRegistryGeneratorV1 struct {
// Email for registry (optional) // Email for registry (optional)
Email string Email string
// Password for registry (required) // Password for registry (required)
Password string Password string `datapolicy:"password"`
// Server for registry (required) // Server for registry (required)
Server string Server string
// AppendHash; if true, derive a hash from the Secret and append it to the name // AppendHash; if true, derive a hash from the Secret and append it to the name
@ -171,9 +171,9 @@ func encodeDockerConfigFieldAuth(username, password string) string {
// DockerConfigJSON represents a local docker auth config file // DockerConfigJSON represents a local docker auth config file
// for pulling images. // for pulling images.
type DockerConfigJSON struct { type DockerConfigJSON struct {
Auths DockerConfig `json:"auths"` Auths DockerConfig `json:"auths" datapolicy:"token"`
// +optional // +optional
HttpHeaders map[string]string `json:"HttpHeaders,omitempty"` HttpHeaders map[string]string `json:"HttpHeaders,omitempty" datapolicy:"token"`
} }
// DockerConfig represents the config file used by the docker CLI. // DockerConfig represents the config file used by the docker CLI.
@ -183,7 +183,7 @@ type DockerConfig map[string]DockerConfigEntry
type DockerConfigEntry struct { type DockerConfigEntry struct {
Username string `json:"username,omitempty"` Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"` Password string `json:"password,omitempty" datapolicy:"password"`
Email string `json:"email,omitempty"` Email string `json:"email,omitempty"`
Auth string `json:"auth,omitempty"` Auth string `json:"auth,omitempty" datapolicy:"token"`
} }