File tree 2 files changed +13
-16
lines changed
dev/preview/infrastructure/harvester
2 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ terraform {
9
9
required_providers {
10
10
harvester = {
11
11
source = " harvester/harvester"
12
- version = " >=0.5.1 "
12
+ version = " >=0.5.3 "
13
13
}
14
14
k8s = {
15
15
source = " hashicorp/kubernetes"
@@ -23,20 +23,21 @@ terraform {
23
23
}
24
24
25
25
provider "harvester" {
26
- alias = " harvester"
27
- kubeconfig = var. harvester_kube_path
26
+ alias = " harvester"
27
+ kubeconfig = var. kubeconfig_path
28
+ kubecontext = " harvester"
28
29
}
29
30
30
31
provider "k8s" {
31
32
alias = " dev"
33
+ config_path = var. kubeconfig_path
32
34
config_context = var. dev_kube_context
33
- config_path = var. dev_kube_path
34
35
}
35
36
36
37
provider "k8s" {
37
38
alias = " harvester"
39
+ config_path = var. kubeconfig_path
38
40
config_context = var. harvester_kube_context
39
- config_path = var. harvester_kube_path
40
41
}
41
42
42
43
provider "google" {
Original file line number Diff line number Diff line change @@ -3,26 +3,22 @@ variable "preview_name" {
3
3
description = " The preview environment's name"
4
4
}
5
5
6
- variable "harvester_kube_path " {
6
+ variable "kubeconfig_path " {
7
7
type = string
8
- description = " The path to the Harvester Cluster kubeconfig"
8
+ default = " /home/gitpod/.kube/config"
9
+ description = " The path to the kubernetes config"
9
10
}
10
11
11
12
variable "harvester_kube_context" {
12
13
type = string
13
- default = " default"
14
- description = " The name of the context to use within the config"
15
- }
16
-
17
- variable "dev_kube_path" {
18
- type = string
19
- description = " The path to the Dev Cluster kubeconfig"
14
+ default = " harvester"
15
+ description = " The name of the harvester kube context"
20
16
}
21
17
22
18
variable "dev_kube_context" {
23
19
type = string
24
- default = " gke_gitpod-core-dev_europe-west1-b_core- dev"
25
- description = " The name of the context to use within the config "
20
+ default = " dev"
21
+ description = " The name of the dev kube context "
26
22
}
27
23
28
24
variable "vm_memory" {
You can’t perform that action at this time.
0 commit comments