From 36992966af2543b2df6dacf37ac9d0e8fd44ea9d Mon Sep 17 00:00:00 2001 From: Nathan Jenan Date: Fri, 5 Oct 2018 13:13:21 -0700 Subject: [PATCH] Adding session token to eks config This change adds a session token field to the eks config to support provisioning clusters with credentials generated via GetSessionToken or AssumeRole calls. Issue: https://github.com/rancher/rancher/issues/16005 --- apis/management.cattle.io/v3/cluster_types.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/cluster_types.go b/apis/management.cattle.io/v3/cluster_types.go index ebfbbabf..339d84e1 100644 --- a/apis/management.cattle.io/v3/cluster_types.go +++ b/apis/management.cattle.io/v3/cluster_types.go @@ -217,8 +217,9 @@ type AzureKubernetesServiceConfig struct { } type AmazonElasticContainerServiceConfig struct { - AccessKey string `json:"accessKey" norman:"required"` - SecretKey string `json:"secretKey" norman:"required,type=password"` + AccessKey string `json:"accessKey" norman:"required"` + SecretKey string `json:"secretKey" norman:"required,type=password"` + SessionToken string `json:"sessionToken,omitempty" norman:"type=password"` Region string `json:"region"` InstanceType string `json:"instanceType"`