eks.go 379 B

123456789101112131415161718
  1. package eks
  2. import v1 "k8s.io/api/core/v1"
  3. // Conf is the EKS cluster config required for the provisioner
  4. type Conf struct {
  5. ClusterName string
  6. }
  7. // AttachEKSEnv adds the relevant EKS env for the provisioner
  8. func (conf *Conf) AttachEKSEnv(env []v1.EnvVar) []v1.EnvVar {
  9. env = append(env, v1.EnvVar{
  10. Name: "EKS_CLUSTER_NAME",
  11. Value: conf.ClusterName,
  12. })
  13. return env
  14. }