Skip to content

Commit

Permalink
Remove managed and enabled for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sfang97 committed Sep 11, 2020
1 parent 9a6cae9 commit ff23675
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions gitlab/resource_gitlab_instance_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ func resourceGitlabInstanceCluster() *schema.Resource {
Type: schema.TypeBool,
Optional: true,
Default: true,
ForceNew: true,
},
"managed": {
Type: schema.TypeBool,
Optional: true,
Default: true,
ForceNew: true,
},
"created_at": {
Type: schema.TypeString,
Expand Down Expand Up @@ -214,6 +216,10 @@ func resourceGitlabInstanceClusterUpdate(d *schema.ResourceData, meta interface{
pk.CaCert = gitlab.String(d.Get("kubernetes_ca_cert").(string))
}

if d.HasChange("namespace") {
pk.Namespace = gitlab.String(d.Get("namespace").(string))
}

if *pk != (gitlab.EditPlatformKubernetesOptions{}) {
options.PlatformKubernetes = pk
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/instance_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following arguments are supported:

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

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

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

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

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

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

## Import

Expand Down

0 comments on commit ff23675

Please sign in to comment.