Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Token password causing terraform change when no change #1492

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions examples/karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ provider "kubernetes" {
}

provider "helm" {
registry {
url = "oci://public.ecr.aws"
username = data.aws_ecrpublic_authorization_token.token.user_name
password = data.aws_ecrpublic_authorization_token.token.password
}

kubernetes {
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
Expand Down Expand Up @@ -166,8 +172,8 @@ module "eks_blueprints_kubernetes_addons" {

enable_karpenter = true
karpenter_helm_config = {
repository_username = data.aws_ecrpublic_authorization_token.token.user_name
repository_password = data.aws_ecrpublic_authorization_token.token.password
repository_username = "placeholder-user"
repository_password = "placeholder-pass"
}
karpenter_node_iam_instance_profile = module.karpenter.instance_profile_name
karpenter_enable_spot_termination_handling = true
Expand Down