<@UB89GSWCF> hello, would you pls provide give mor...
# atmos-dev
s
@Andriy Knysh (Cloud Posse) hello, would you pls provide give more context for this issue: https://linear.app/cloudposse/issue/DEV-2347/atmos-helmfile-commands-should-not-require-eks? I didn't fully got the points there! because I'm seeing the pkg/schema/schema.go file and we've only
Terraform
and
Helmfile
support in the Component struct, do can't link with aws thing as this issue is describing! I assumed few things (clarify if I'm wrong or add further if needed pls): • in the internal/exec/helmfile.go: ◦ we check this
if len(cliConfig.Components.Helmfile.ClusterNamePattern) < 1 {
condition and if yes then return an error as we're making this clusterNamePattern required => so according to the issue I assumed this we need to remove to make this field optional, right? • in the internal/exec/aws_eks_update_kubeconfig.go: ◦ in line 182 we're checking this:
Copy code
// `clusterName` can be overridden on the command line
		if clusterName == "" {
			clusterName = cfg.ReplaceContextTokens(context, cliConfig.Components.Helmfile.ClusterNamePattern)
		}
▪︎ means now as we want to make this ClusterNamePattern optional so we also need to make sure this is provided before checking this condition, right? • also as the issue saying the helmfile doesn't require eks, what does that mean? don't we gonna keep the
UseEKS
bool field of helmfile? or clusterNamePatten these things won't we keep?
previously posted in a wrong thread, so posting here again!
e
To reproduce the problem, use this demo
(which brings up k3s)
Then run:
Copy code
atmos helmfile apply demo -s dev
It will give an error, because it expects EKS, despite EKS not being a requirement.
The current workaround is to do this manually:
Copy code
atmos helmfile generate varfile demo -s dev
helmfile -f components/helmfile/nginx/helmfile.yaml apply --values dev-demo.helmfile.vars.yaml
The commands I'm referencing are in the workflow file: https://github.com/cloudposse/atmos/blob/main/examples/demo-helmfile/atmos.yaml
s
I found that getting this issue is because of the
region
field was not provided and then after researching find out that in the config we're by default initializing (in the code) with
true
value for
use_eks
flag
Copy code
Run cd examples/demo-helmfile
  
Invalid endpoint: https://eks..amazonaws.com
exit status 255
so, I've update that part
@Erik Osterman (Cloud Posse) cc: @Andriy Knysh (Cloud Posse) made the PR, would you pls check? thanks! https://github.com/cloudposse/atmos/pull/734
👀 1