Skip to content

Feature namespaces #19

Merged
merged 4 commits into from
Feb 27, 2025
Merged

Feature namespaces #19

merged 4 commits into from
Feb 27, 2025

Conversation

mcgin314
Copy link
Contributor

No description provided.

Comment on lines +32 to +54
generate "kubectl-provider" {
path = "kubectl-provider.tf"
if_exists = "overwrite"
contents = <<-EOF
%{if dependency.eks.outputs.cluster_name != "a-cluster-name"~}
data "aws_eks_cluster" "kubectl" {
name = "${dependency.eks.outputs.cluster_name}"
}
provider "kubectl" {
apply_retry_count = 5
host = data.aws_eks_cluster.kubectl.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.kubectl.certificate_authority[0].data)
load_config_file = false

exec {
api_version = "client.authentication.k8s.io/v1beta1"
command = "aws"
args = ["eks", "get-token", "--cluster-name", "${dependency.eks.outputs.cluster_name}", "--region", "${include.root.inputs.aws_region}"]
}
}
%{endif~}
EOF
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I ripped all this out Maybe needs a rebase?

@@ -0,0 +1,198 @@
## eks-prometheus
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be in the tfmod-prometheus repo instead of here.

@morga471 morga471 merged commit 1c0d48b into master Feb 27, 2025
3 of 4 checks passed
@morga471 morga471 deleted the feature-namespaces branch February 27, 2025 18:52
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants