Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit c9d4c49

Browse files
jgwhitegregone
andcommitted
fix(builtin): de-dupe various hcl annotation keys
Co-authored-by: Greg Hoin <[email protected]>
1 parent 79528a1 commit c9d4c49

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

internal/installutil/k8s/k8s.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ import (
99
"time"
1010

1111
"github.com/hashicorp/go-hclog"
12-
"github.com/hashicorp/waypoint-plugin-sdk/terminal"
13-
"github.com/hashicorp/waypoint/internal/clierrors"
1412
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1513
"k8s.io/apimachinery/pkg/util/wait"
1614
"k8s.io/apimachinery/pkg/watch"
1715
"k8s.io/client-go/kubernetes"
1816
"k8s.io/client-go/tools/clientcmd"
17+
18+
"github.com/hashicorp/waypoint-plugin-sdk/terminal"
19+
"github.com/hashicorp/waypoint/internal/clierrors"
1920
)
2021

2122
type K8sConfig struct {
@@ -26,7 +27,7 @@ type K8sConfig struct {
2627
RunnerImage string `hcl:"runner_image,optional"`
2728
CpuRequest string `hcl:"runner_cpu_request,optional"`
2829
MemRequest string `hcl:"runner_mem_request,optional"`
29-
CreateServiceAccount bool `hcl:"odr_service_account_init,optional"`
30+
CreateServiceAccount bool `hcl:"create_service_account,optional"`
3031
OdrImage string `hcl:"odr_image"`
3132

3233
// Required for backwards compatibility

internal/runnerinstall/nomad.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type NomadConfig struct {
3434

3535
RunnerImage string `hcl:"runner_image,optional"`
3636

37-
Region string `hcl:"namespace,optional"`
37+
Region string `hcl:"region,optional"`
3838
Datacenters []string `hcl:"datacenters,optional"`
3939
PolicyOverride bool `hcl:"policy_override,optional"`
4040

internal/serverinstall/nomad.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type nomadConfig struct {
5454
consulServiceUITags []string `hcl:"consul_service_ui_tags:optional"`
5555
consulServiceBackendTags []string `hcl:"consul_service_backend_tags:optional"`
5656
consulDatacenter string `hcl:"consul_datacenter,optional"`
57-
consulDomain string `hcl:"consul_datacenter,optional"`
57+
consulDomain string `hcl:"consul_domain,optional"`
5858
consulToken string `hcl:"consul_token,optional"`
5959

6060
// If set along with consul, will use this hostname instead of
@@ -63,7 +63,7 @@ type nomadConfig struct {
6363

6464
odrImage string `hcl:"odr_image,optional"`
6565

66-
region string `hcl:"namespace,optional"`
66+
region string `hcl:"region,optional"`
6767
datacenters []string `hcl:"datacenters,optional"`
6868
policyOverride bool `hcl:"policy_override,optional"`
6969

0 commit comments

Comments
 (0)