Skip to content

Commit 7e10205

Browse files
committed
Try creating kubeconfig
1 parent b3e7f52 commit 7e10205

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/crossplane.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-${{ inputs.service_name }}-role
4949
role-session-name: ga-${{ inputs.service_name }}
5050
aws-region: eu-central-1
51+
-
52+
name: Create Kubeconfig file for staging
53+
run: 'echo "$STAGING_KUBECONFIG" > /home/runner/config'
54+
shell: bash
55+
env:
56+
STAGING_KUBECONFIG: ${{secrets.STAGING_KUBECONFIG}}
5157
-
5258
name: Install Terraform
5359
uses: hashicorp/setup-terraform@v1

crossplane/versions.tf

+3-12
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,8 @@ terraform {
2222
}
2323
}
2424

25-
data "aws_eks_cluster" "cluster" {
26-
name = var.cluster_name
27-
}
28-
29-
data "aws_eks_cluster_auth" "cluster" {
30-
name = var.cluster_name
31-
}
32-
3325
provider "kubectl" {
34-
host = data.aws_eks_cluster.cluster.endpoint
35-
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority[0].data)
36-
token = data.aws_eks_cluster_auth.cluster.token
37-
load_config_file = false
26+
config_path = "/home/runner/config"
27+
load_config_file = true
28+
apply_retry_count = 15
3829
}

0 commit comments

Comments
 (0)