mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Add datapolicy tags to staging/src/k8s.io/kubectl
This commit is contained in:
parent
17312ea4a9
commit
4b29b03573
@ -40,9 +40,9 @@ type createAuthInfoOptions struct {
|
||||
name string
|
||||
clientCertificate cliflag.StringFlag
|
||||
clientKey cliflag.StringFlag
|
||||
token cliflag.StringFlag
|
||||
token cliflag.StringFlag `datapolicy:"token"`
|
||||
username cliflag.StringFlag
|
||||
password cliflag.StringFlag
|
||||
password cliflag.StringFlag `datapolicy:"password"`
|
||||
embedCertData cliflag.Tristate
|
||||
authProvider cliflag.StringFlag
|
||||
|
||||
|
@ -38,7 +38,7 @@ type SecretForDockerRegistryGeneratorV1 struct {
|
||||
// Email for registry (optional)
|
||||
Email string
|
||||
// Password for registry (required)
|
||||
Password string
|
||||
Password string `datapolicy:"password"`
|
||||
// Server for registry (required)
|
||||
Server string
|
||||
// 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
|
||||
// for pulling images.
|
||||
type DockerConfigJSON struct {
|
||||
Auths DockerConfig `json:"auths"`
|
||||
Auths DockerConfig `json:"auths" datapolicy:"token"`
|
||||
// +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.
|
||||
@ -183,7 +183,7 @@ type DockerConfig map[string]DockerConfigEntry
|
||||
|
||||
type DockerConfigEntry struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Password string `json:"password,omitempty" datapolicy:"password"`
|
||||
Email string `json:"email,omitempty"`
|
||||
Auth string `json:"auth,omitempty"`
|
||||
Auth string `json:"auth,omitempty" datapolicy:"token"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user