Skip to content

Commit 5653c22

Browse files
committed
use ca
1 parent 487f8aa commit 5653c22

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.github/workflows/crossplane-release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,12 @@ jobs:
123123
-var-file=${{ inputs.environment }}.tfvars \
124124
-var="commit_hash=${{ github.sha }}" \
125125
-var="config_path=${{ github.workspace }}/kubeconfig.yaml" \
126-
-var="cluster_ca_certificate=${{ secrets.EKS_PRD_CA_DATA }}" \
127-
-var="cluster_endpoint=${{ secrets.EKS_PRD_HOST }}" \
126+
# -var="cluster_ca_certificate=${{ secrets.EKS_PRD_CA_DATA }}" \
127+
# -var="cluster_endpoint=${{ secrets.EKS_PRD_HOST }}" \
128128
-var="service_name=${{ inputs.service_name }}"
129129
env:
130130
TF_WORKSPACE: ${{ inputs.environment }}
131+
KUBECONFIG: ${{ secrets.PRD_KUBECONFIG }}
131132
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.PROD_ONEPASSWORD_SERVICEACCOUNT_TOKEN }}
132133

133134

crossplane/versions.tf

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ terraform {
2323
}
2424
}
2525

26-
provider "kubectl" {
27-
apply_retry_count = 5
28-
host = var.cluster_endpoint
29-
cluster_ca_certificate = base64decode(var.cluster_ca_certificate)
30-
load_config_file = false
31-
32-
exec {
33-
api_version = "client.authentication.k8s.io/v1beta1"
34-
command = "aws"
35-
# This requires the awscli to be installed locally where Terraform is executed
36-
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
37-
}
38-
}
26+
# provider "kubectl" {
27+
# apply_retry_count = 5
28+
# host = var.cluster_endpoint
29+
# cluster_ca_certificate = base64decode(var.cluster_ca_certificate)
30+
# load_config_file = false
31+
#
32+
# exec {
33+
# api_version = "client.authentication.k8s.io/v1beta1"
34+
# command = "aws"
35+
# # This requires the awscli to be installed locally where Terraform is executed
36+
# args = ["eks", "get-token", "--cluster-name", var.cluster_name]
37+
# }
38+
# }
3939

0 commit comments

Comments
 (0)