Skip to content

Commit 49d4ef4

Browse files
committed
fix(review): containing these fixes
fix unecessary new line rename var link to kubernetes documentation
1 parent f8c1462 commit 49d4ef4

3 files changed

+7
-9
lines changed

Diff for: ovh/resource_cloud_project_kube_nodepool_test.go

+6-7
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func testSweepCloudProjectKubeNodePool(region string) error {
8080
return nil
8181
}
8282

83-
var testAccCloudProjectKubeNodePoolConfigForEffectErrorTaints = `
83+
var testAccCloudProjectKubeNodePoolConfigEffectMissingInTaint = `
8484
resource "ovh_cloud_project_kube_nodepool" "pool" {
8585
service_name = "xxx"
8686
kube_id = "xxx"
@@ -113,7 +113,7 @@ resource "ovh_cloud_project_kube_nodepool" "pool" {
113113
}
114114
`
115115

116-
var testAccCloudProjectKubeNodePoolConfigForKeyErrorTaints = `
116+
var testAccCloudProjectKubeNodePoolConfigKeyMissingInTaint = `
117117
resource "ovh_cloud_project_kube_nodepool" "pool" {
118118
service_name = "xxx"
119119
kube_id = "xxx"
@@ -146,7 +146,7 @@ resource "ovh_cloud_project_kube_nodepool" "pool" {
146146
}
147147
`
148148

149-
var testAccCloudProjectKubeNodePoolConfigForValueNoCrashTaints = `
149+
var testAccCloudProjectKubeNodePoolConfigValueMissingInTaint = `
150150
resource "ovh_cloud_project_kube_nodepool" "pool" {
151151
service_name = "xxx"
152152
kube_id = "xxx"
@@ -187,7 +187,6 @@ resource "ovh_cloud_project_kube" "cluster" {
187187
version = "%s"
188188
}
189189
190-
191190
resource "ovh_cloud_project_kube_nodepool" "pool" {
192191
service_name = ovh_cloud_project_kube.cluster.service_name
193192
kube_id = ovh_cloud_project_kube.cluster.id
@@ -415,7 +414,7 @@ func TestAccCloudProjectKubeNodePoolTaints(t *testing.T) {
415414
Providers: testAccProviders,
416415
Steps: []resource.TestStep{
417416
{
418-
Config: testAccCloudProjectKubeNodePoolConfigForEffectErrorTaints,
417+
Config: testAccCloudProjectKubeNodePoolConfigEffectMissingInTaint,
419418
ExpectError: effectTaintsErrorRegex,
420419
},
421420
},
@@ -430,7 +429,7 @@ func TestAccCloudProjectKubeNodePoolTaints(t *testing.T) {
430429
Providers: testAccProviders,
431430
Steps: []resource.TestStep{
432431
{
433-
Config: testAccCloudProjectKubeNodePoolConfigForKeyErrorTaints,
432+
Config: testAccCloudProjectKubeNodePoolConfigKeyMissingInTaint,
434433
ExpectError: keyTaintsErrorRegex,
435434
},
436435
},
@@ -445,7 +444,7 @@ func TestAccCloudProjectKubeNodePoolTaints(t *testing.T) {
445444
Providers: testAccProviders,
446445
Steps: []resource.TestStep{
447446
{
448-
Config: testAccCloudProjectKubeNodePoolConfigForValueNoCrashTaints,
447+
Config: testAccCloudProjectKubeNodePoolConfigValueMissingInTaint,
449448
ExpectError: valueNoCrashTaintsErrorRegex,
450449
},
451450
},

Diff for: ovh/types_cloud_project_kube_nodepool.go

-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ func loadNodelPoolTemplateFromResource(i interface{}) (*CloudProjectKubeNodePool
205205
}
206206

207207
template.Spec.Taints = append(template.Spec.Taints, taintObject)
208-
209208
}
210209

211210
// spec.unschedulable

Diff for: website/docs/r/cloud_project_kube_nodepool.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The following arguments are supported:
8080
* `finalizers` - Finalizers to apply to each node. A finalizer name must be fully qualified, e.g. kubernetes.io/pv-protection , where you prefix it with hostname of your service which is related to the controller responsible for the finalizer.
8181
* `labels` - Labels to apply to each node
8282
* `spec` - Spec of each node in the pool
83-
* `taints` - Taints to apply to each node
83+
* `taints` - Taints to apply to each node (https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/node-v1/#NodeSpec)
8484
* `effect` - mandatory possible values: NoExecute, NoSchedule, PreferNoSchedule
8585
* `key` - mandatory
8686
* `value` - (Optional)

0 commit comments

Comments
 (0)