mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +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
|
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
|
||||||
|
|
||||||
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user