mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 15:06:23 +00:00
Changed Credential Helper to a predefined type ECRCredentialHelper and associated changes for the same
This commit is contained in:
committed by
Kinara Shah
parent
84189fbecc
commit
a618da802b
@@ -110,8 +110,8 @@ type PrivateRegistry struct {
|
||||
Password string `yaml:"password" json:"password,omitempty" norman:"type=password"`
|
||||
// Default registry
|
||||
IsDefault bool `yaml:"is_default" json:"isDefault,omitempty"`
|
||||
// CredentialPlugin
|
||||
CredentialPlugin map[string]string `yaml:"credentialPlugin" json:"credentialPlugin,omitempty"`
|
||||
// ECRCredentialPlugin
|
||||
ECRCredentialPlugin *ECRCredentialPlugin `yaml:"ecr_credential_plugin" json:"ecrCredentialPlugin,omitempty"`
|
||||
}
|
||||
|
||||
type RKESystemImages struct {
|
||||
@@ -1011,3 +1011,9 @@ type NodeDrainInput struct {
|
||||
// Time to wait (in seconds) before giving up for one try
|
||||
Timeout int `yaml:"timeout" json:"timeout" norman:"min=1,max=10800,default=120"`
|
||||
}
|
||||
|
||||
type ECRCredentialPlugin struct {
|
||||
AwsAccessKeyID string `yaml:"aws_access_key_id" json:"awsAccessKeyId,omitempty"`
|
||||
AwsSecretAccessKey string `yaml:"aws_secret_access_key" json:"awsSecretAccessKey,omitempty"`
|
||||
AwsSessionToken string `yaml:"aws_session_token" json:"awsAccessToken,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user