Skip to content

Commit

Permalink
Support: cluster_config for satellite clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
kavya498 authored and hkantare committed May 13, 2021
1 parent 0ac3f81 commit 3beae32
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions ibm/data_source_ibm_container_cluster_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,30 @@ func dataSourceIBMContainerClusterConfig() *schema.Resource {
Sensitive: true,
},
"admin_certificate": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
Sensitive: true,
},
"ca_certificate": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
Sensitive: true,
},
"host": {
Type: schema.TypeString,
Computed: true,
},
"token": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
Sensitive: true,
},
},
}
}

func dataSourceIBMContainerClusterConfigRead(d *schema.ResourceData, meta interface{}) error {
csClient, err := meta.(ClientSession).ContainerAPI()
csClient, err := meta.(ClientSession).VpcContainerAPI()
if err != nil {
return err
}
Expand Down Expand Up @@ -145,7 +148,7 @@ func dataSourceIBMContainerClusterConfigRead(d *schema.ResourceData, meta interf
d.Set("config_file_path", configPath)

} else {
targetEnv, err := getClusterTargetHeader(d, meta)
targetEnv, err := getVpcClusterTargetHeader(d, meta)
if err != nil {
return err
}
Expand Down

0 comments on commit 3beae32

Please sign in to comment.