update credential provider godoc with unique provider name req
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com> Kubernetes-commit: 92e35e7618ff30e1c8e79f5efb3788dfedf24bb3
This commit is contained in:
parent
87f23a11a4
commit
e29f7ad7db
|
@ -32,7 +32,7 @@ type CredentialProviderConfig struct {
|
||||||
// Multiple providers may match against a single image, in which case credentials
|
// Multiple providers may match against a single image, in which case credentials
|
||||||
// from all providers will be returned to the kubelet. If multiple providers are called
|
// from all providers will be returned to the kubelet. If multiple providers are called
|
||||||
// for a single image, the results are combined. If providers return overlapping
|
// for a single image, the results are combined. If providers return overlapping
|
||||||
// auth keys, the value from the provider earlier in this list is used.
|
// auth keys, the value from the provider earlier in this list is attempted first.
|
||||||
Providers []CredentialProvider `json:"providers"`
|
Providers []CredentialProvider `json:"providers"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ type CredentialProvider struct {
|
||||||
// name is the required name of the credential provider. It must match the name of the
|
// name is the required name of the credential provider. It must match the name of the
|
||||||
// provider executable as seen by the kubelet. The executable must be in the kubelet's
|
// provider executable as seen by the kubelet. The executable must be in the kubelet's
|
||||||
// bin directory (set by the --image-credential-provider-bin-dir flag).
|
// bin directory (set by the --image-credential-provider-bin-dir flag).
|
||||||
|
// Required to be unique across all providers.
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
||||||
// matchImages is a required list of strings used to match against images in order to
|
// matchImages is a required list of strings used to match against images in order to
|
||||||
|
|
|
@ -32,7 +32,7 @@ type CredentialProviderConfig struct {
|
||||||
// Multiple providers may match against a single image, in which case credentials
|
// Multiple providers may match against a single image, in which case credentials
|
||||||
// from all providers will be returned to the kubelet. If multiple providers are called
|
// from all providers will be returned to the kubelet. If multiple providers are called
|
||||||
// for a single image, the results are combined. If providers return overlapping
|
// for a single image, the results are combined. If providers return overlapping
|
||||||
// auth keys, the value from the provider earlier in this list is used.
|
// auth keys, the value from the provider earlier in this list is attempted first.
|
||||||
Providers []CredentialProvider `json:"providers"`
|
Providers []CredentialProvider `json:"providers"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ type CredentialProvider struct {
|
||||||
// name is the required name of the credential provider. It must match the name of the
|
// name is the required name of the credential provider. It must match the name of the
|
||||||
// provider executable as seen by the kubelet. The executable must be in the kubelet's
|
// provider executable as seen by the kubelet. The executable must be in the kubelet's
|
||||||
// bin directory (set by the --image-credential-provider-bin-dir flag).
|
// bin directory (set by the --image-credential-provider-bin-dir flag).
|
||||||
|
// Required to be unique across all providers.
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
||||||
// matchImages is a required list of strings used to match against images in order to
|
// matchImages is a required list of strings used to match against images in order to
|
||||||
|
|
|
@ -1004,7 +1004,7 @@ type CredentialProviderConfig struct {
|
||||||
// Multiple providers may match against a single image, in which case credentials
|
// Multiple providers may match against a single image, in which case credentials
|
||||||
// from all providers will be returned to the kubelet. If multiple providers are called
|
// from all providers will be returned to the kubelet. If multiple providers are called
|
||||||
// for a single image, the results are combined. If providers return overlapping
|
// for a single image, the results are combined. If providers return overlapping
|
||||||
// auth keys, the value from the provider earlier in this list is used.
|
// auth keys, the value from the provider earlier in this list is attempted first.
|
||||||
Providers []CredentialProvider `json:"providers"`
|
Providers []CredentialProvider `json:"providers"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1014,6 +1014,7 @@ type CredentialProvider struct {
|
||||||
// name is the required name of the credential provider. It must match the name of the
|
// name is the required name of the credential provider. It must match the name of the
|
||||||
// provider executable as seen by the kubelet. The executable must be in the kubelet's
|
// provider executable as seen by the kubelet. The executable must be in the kubelet's
|
||||||
// bin directory (set by the --image-credential-provider-bin-dir flag).
|
// bin directory (set by the --image-credential-provider-bin-dir flag).
|
||||||
|
// Required to be unique across all providers.
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
||||||
// matchImages is a required list of strings used to match against images in order to
|
// matchImages is a required list of strings used to match against images in order to
|
||||||
|
|
Loading…
Reference in New Issue