-
Notifications
You must be signed in to change notification settings - Fork 3
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
[DOP-2361] Fix for allowing disabling thanos #338
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4ccd670
[dop-2361] Remove Thanos resources and AWS datasource from AWS module.
NathanOkolita aa36fc7
[dop-2361] Restore thanos provider, but keep datasources disabled.
NathanOkolita 7a5937f
[dop-2361] Reverted turning off datasource. Soft disable thanos.
NathanOkolita f271b3b
[dop-2361] Reverted turning off datasource and VSO. Soft disable thanos.
NathanOkolita 3ae599b
[dop-2361] Try disabling the thanos datasource again.
NathanOkolita e984bd8
[dop-2361] Try disabling the thanos storage secret
NathanOkolita 254136a
[dop-2361] Update kubernetes provider.
NathanOkolita c074cd0
[dop-2361] Change kubectl provider to use token from cluster rather t…
NathanOkolita 3ab50d3
[dop-2361] Update kubernetes provider to get credentials from data so…
NathanOkolita 3e8b490
[dop-2361] Update kubernetes provider to get credentials from data so…
NathanOkolita b25a46d
[dop-2361] Due to issue with turning off thanos, leave enabled by def…
NathanOkolita 97af5bb
[dop-2361] Add dependency on cluster.
NathanOkolita File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ terraform { | |
} | ||
kubernetes = { | ||
source = "hashicorp/kubernetes" | ||
version = ">= 2.23.0" | ||
version = ">= 2.33.0" | ||
} | ||
kubectl = { | ||
source = "gavinbunney/kubectl" | ||
|
@@ -365,6 +365,16 @@ provider "argocd" { | |
password = var.argo_password | ||
} | ||
|
||
data "aws_eks_cluster" "local" { | ||
depends_on = [ module.cluster.kubernetes_host ] | ||
name = var.label | ||
} | ||
|
||
data "aws_eks_cluster_auth" "local" { | ||
depends_on = [ module.cluster.kubernetes_host ] | ||
name = var.label | ||
} | ||
|
||
provider "kubernetes" { | ||
host = module.cluster.kubernetes_host | ||
cluster_ca_certificate = module.cluster.kubernetes_cluster_ca_certificate | ||
|
@@ -379,13 +389,8 @@ provider "kubernetes" { | |
provider "kubectl" { | ||
host = module.cluster.kubernetes_host | ||
cluster_ca_certificate = module.cluster.kubernetes_cluster_ca_certificate | ||
#token = module.cluster.kubernetes_token | ||
load_config_file = false | ||
exec { | ||
api_version = "client.authentication.k8s.io/v1beta1" | ||
args = ["eks", "get-token", "--cluster-name", var.label] | ||
command = "aws" | ||
} | ||
token = data.aws_eks_cluster_auth.local.token | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hope this is the permanent fix! |
||
load_config_file = false | ||
} | ||
|
||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just remove this variable altogether?