Skip to content

Commit ff23675

Browse files
author
sfang97
committed
Remove managed and enabled for now
1 parent 9a6cae9 commit ff23675

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

gitlab/resource_gitlab_instance_cluster.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ func resourceGitlabInstanceCluster() *schema.Resource {
3333
Type: schema.TypeBool,
3434
Optional: true,
3535
Default: true,
36+
ForceNew: true,
3637
},
3738
"managed": {
3839
Type: schema.TypeBool,
3940
Optional: true,
4041
Default: true,
42+
ForceNew: true,
4143
},
4244
"created_at": {
4345
Type: schema.TypeString,
@@ -214,6 +216,10 @@ func resourceGitlabInstanceClusterUpdate(d *schema.ResourceData, meta interface{
214216
pk.CaCert = gitlab.String(d.Get("kubernetes_ca_cert").(string))
215217
}
216218

219+
if d.HasChange("namespace") {
220+
pk.Namespace = gitlab.String(d.Get("namespace").(string))
221+
}
222+
217223
if *pk != (gitlab.EditPlatformKubernetesOptions{}) {
218224
options.PlatformKubernetes = pk
219225
}

website/docs/r/instance_cluster.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following arguments are supported:
4343

4444
- `kubernetes_api_url` - (Required, string) The URL to access the Kubernetes API.
4545

46-
- `kubernetes_token` - (Required, string) The token to authenticate against Kubernetes.
46+
- `kubernetes_token` - (Required, string) The token to authenticate against Kubernetes. This attribute cannot be read.
4747

4848
- `kubernetes_ca_cert` - (Optional, string) TLS certificate (needed if API is using a self-signed TLS certificate).
4949

@@ -53,7 +53,7 @@ The following arguments are supported:
5353

5454
- `environment_scope` - (Optional, string) The associated environment to the cluster. Defaults to `*`.
5555

56-
- `management_project_id` - (Optional, string) The ID of the management instance for the cluster.
56+
- `management_project_id` - (Optional, string) The ID of the management project for the cluster.
5757

5858
## Import
5959

0 commit comments

Comments
 (0)