Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

uses helm with raw yaml to deploy #5

Closed
wants to merge 9 commits into from

Conversation

allamand
Copy link

Fix #4

With this Terraform will only create a helm release, and helm will install manifests inside Kubernetes.

On next terraform apply, as the helm release already exists, there will be no updates.

To force Terraform recreate the helm release, it will need to be manually deleted in Kubernetes and reapply from terraform.

This is tested and seems very more reliable than the previous solution

main.tf Outdated
yaml_body = each.value
name = each.key
namespace = "argocd"
repository = "https://bedag.github.io/helm-charts/"
Copy link
Member

@csantanapr csantanapr Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know who owns this chart.
Can we copy the helm chart to a local directory and use the helm chart from directory instead of relying on this 3rd chart and also network access to the domain bedag.github.io

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point the chart is pretty basic I’ll add a local copy

@allamand
Copy link
Author

I've added the charts locally, works fine


*/}}
{{- if or $.Values.resources $.Values.templates -}}
{{- $base := fromYaml (include "raw.labels" .) -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets try to eliminate the need to include the library chart, is just for common labels.
Lets implement the commonLabels in this chart and remove the library, or delete this line and remove support for "commonLabels" for now

@csantanapr
Copy link
Member

@allamand checkout this smaller version of this PR #6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error applying several bootstraps with terraform
2 participants