|
|
@@ -5,6 +5,7 @@ import v1 "k8s.io/api/core/v1"
|
|
|
// Conf is the EKS cluster config required for the provisioner
|
|
|
type Conf struct {
|
|
|
ClusterName string
|
|
|
+ MachineType string
|
|
|
}
|
|
|
|
|
|
// AttachEKSEnv adds the relevant EKS env for the provisioner
|
|
|
@@ -14,5 +15,10 @@ func (conf *Conf) AttachEKSEnv(env []v1.EnvVar) []v1.EnvVar {
|
|
|
Value: conf.ClusterName,
|
|
|
})
|
|
|
|
|
|
+ env = append(env, v1.EnvVar{
|
|
|
+ Name: "EKS_MACHINE_TYPE",
|
|
|
+ Value: conf.MachineType,
|
|
|
+ })
|
|
|
+
|
|
|
return env
|
|
|
}
|