Sahadat Hossain
10/17/2024, 6:50 PMTerraform 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:
// `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?Sahadat Hossain
10/17/2024, 6:51 PMErik Osterman (Cloud Posse)
10/17/2024, 9:49 PMErik Osterman (Cloud Posse)
10/17/2024, 9:49 PMErik Osterman (Cloud Posse)
10/17/2024, 9:49 PMErik Osterman (Cloud Posse)
10/17/2024, 9:50 PMErik Osterman (Cloud Posse)
10/17/2024, 9:50 PMErik Osterman (Cloud Posse)
10/17/2024, 9:50 PMatmos helmfile apply demo -s devErik Osterman (Cloud Posse)
10/17/2024, 9:50 PMErik Osterman (Cloud Posse)
10/17/2024, 9:51 PMatmos helmfile generate varfile demo -s dev
helmfile -f components/helmfile/nginx/helmfile.yaml apply --values dev-demo.helmfile.vars.yamlErik Osterman (Cloud Posse)
10/17/2024, 9:51 PMSahadat Hossain
10/20/2024, 6:17 AMregion 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
Run cd examples/demo-helmfile
Invalid endpoint: https://eks..amazonaws.com
exit status 255Sahadat Hossain
10/20/2024, 6:17 AMSahadat Hossain
10/20/2024, 6:31 AM