Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kube/OIDC #273

Merged
merged 19 commits into from
Jul 26, 2022
Prev Previous commit
Next Next commit
gofumpt
  • Loading branch information
mathieu prigent committed Jul 13, 2022
commit c3ec4dfb1eace5d3ccebe1ccfea236ad067b7dbf
2 changes: 0 additions & 2 deletions ovh/resource_cloud_project_kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ func resourceCloudProjectKubeRead(d *schema.ResourceData, meta interface{}) erro
kubeconfigRaw := CloudProjectKubeKubeConfigResponse{}
endpoint := fmt.Sprintf("/cloud/project/%s/kube/%s/kubeconfig", serviceName, res.Id)
err := config.OVHClient.Post(endpoint, nil, &kubeconfigRaw)

if err != nil {
return err
}
Expand Down Expand Up @@ -216,7 +215,6 @@ func resourceCloudProjectKubeUpdate(d *schema.ResourceData, meta interface{}) er
err := config.OVHClient.Put(endpoint, CloudProjectKubePutOpts{
Name: &value,
}, nil)

if err != nil {
return err
}
Expand Down
1 change: 1 addition & 0 deletions ovh/resource_cloud_project_kube_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ resource "ovh_cloud_project_kube" "cluster" {
version = "%s"
}
`

var testAccCloudProjectKubeEmptyVersionConfig = `
resource "ovh_cloud_project_kube" "cluster" {
service_name = "%s"
Expand Down
2 changes: 1 addition & 1 deletion ovh/types_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (u CloudProjectUser) ToMap() map[string]interface{} {
obj := make(map[string]interface{})
obj["creation_date"] = u.CreationDate
obj["description"] = u.Description
//Dont set password as it must be set only at creation time
// Dont set password as it must be set only at creation time
matprig marked this conversation as resolved.
Show resolved Hide resolved
obj["status"] = u.Status
obj["username"] = u.Username

Expand Down