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

K8s #180

Merged
merged 1 commit into from
Mar 3, 2021
Merged

K8s #180

merged 1 commit into from
Mar 3, 2021

Conversation

d33d33
Copy link
Contributor

@d33d33 d33d33 commented Dec 15, 2020

No description provided.

@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 15, 2020

CDS Report terraform-provider-ovh-check#81.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 15, 2020

CDS Report terraform-provider-ovh-testacc#81.0 ✔
*

  • checks ✔

Copy link
Collaborator

@yanndegat yanndegat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @d33d33, @PhilippeVienne

thanks for this PR, this is great work.

this is probably going to be merged in the next release. there are still some stuff to be done yet.
i'll make general comments here and more precise ones inline.

resource naming

resources/datasources should be named after their api path
so the nodepool is should be renamed:
ovh_cloud_project_kube_node_pool -> ovh_cloud_project_kube_nodepool

file naming

first global remark: some files should be renamed accordlingly to the resources/datasources they define.
eg: ovh/resource_ovh_cloud_kubernetes_cluster.go -> ovh/resource_ovh_cloud_project_kube.go

ovh/data_source_ovh_cloud_kubernetes_cluster.go
ovh/data_source_ovh_cloud_kubernetes_cluster_test.go
ovh/resource_ovh_cloud_kubernetes_cluster.go
ovh/resource_ovh_cloud_kubernetes_node_pool_test.go
ovh/resource_ovh_cloud_kubernetes_node_pool.go
ovh/resource_ovh_cloud_kubernetes_cluster_test.go

documentation

documentation files are missing. there should be a doc file for each datasource/resource file added
ovh/data_source_ovh_cloud_project_kube.go
ovh/resource_ovh_cloud_project_kube.go
ovh/resource_ovh_cloud_project_kube_node_pool.go

commits

could you squash your commits before we merge ?

ovh/provider.go Outdated Show resolved Hide resolved
ovh/provider_test.go Outdated Show resolved Hide resolved
ovh/helpers/helpers.go Outdated Show resolved Hide resolved
ovh/helpers/helpers.go Outdated Show resolved Hide resolved
ovh/data_source_ovh_cloud_kubernetes_cluster.go Outdated Show resolved Hide resolved
ovh/resource_ovh_cloud_kubernetes_node_pool.go Outdated Show resolved Hide resolved
ovh/resource_ovh_cloud_kubernetes_node_pool.go Outdated Show resolved Hide resolved
ovh/resource_ovh_cloud_kubernetes_node_pool.go Outdated Show resolved Hide resolved
ovh/resource_ovh_cloud_kubernetes_node_pool.go Outdated Show resolved Hide resolved
ovh/resource_ovh_cloud_kubernetes_node_pool.go Outdated Show resolved Hide resolved
@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 18, 2020

CDS Report terraform-provider-ovh-check#85.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 18, 2020

CDS Report terraform-provider-ovh-check#86.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 18, 2020

CDS Report terraform-provider-ovh-testacc#86.0 ✔
*

  • checks ✔

@d33d33 d33d33 requested a review from yanndegat December 22, 2020 09:16
@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 23, 2020

CDS Report terraform-provider-ovh-check#92.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 23, 2020

CDS Report terraform-provider-ovh-testacc#92.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 23, 2020

CDS Report terraform-provider-ovh-check#93.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Dec 23, 2020

CDS Report terraform-provider-ovh-testacc#93.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 21, 2021

CDS Report terraform-provider-ovh-check#123.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 21, 2021

CDS Report terraform-provider-ovh-testacc#123.0 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 21, 2021

CDS Report terraform-provider-ovh-check#124.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 21, 2021

CDS Report terraform-provider-ovh-testacc#124.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 22, 2021

CDS Report terraform-provider-ovh-check#126.0 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 22, 2021

CDS Report terraform-provider-ovh-testacc#126.0 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 26, 2021

CDS Report terraform-provider-ovh-check#126.1 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 26, 2021

CDS Report terraform-provider-ovh-testacc#126.1 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 26, 2021

CDS Report terraform-provider-ovh-check#131.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Jan 26, 2021

CDS Report terraform-provider-ovh-testacc#131.0 ✔
*

  • checks ✔


// WaitAvailable wait for a ressource to become available in the API (aka non 404)
func WaitAvailable(client *ovh.Client, endpoint string) error {
return resource.Retry(30*time.Minute, func() *resource.RetryError {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm ok with adding this func in general helpers. but i think that 30min is a much too high timeout
if ever a resource should be created by an api and that it doesn"t converge faster that 1 minute. it's an issue with the endpoint. so i'd probably delegate the set of timeout value to the caller, and add a timeout arg.

what do you think?

Type: schema.TypeString,
Computed: true,
},
"kubeconfig": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's an issue here.

i don't think, the way readCloudProjectKube is implemented, that this attribute is ever set.

so either we remove it from the datasource.
Or, readCloudProjectKube has to be changed no ?

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 2, 2021

CDS Report terraform-provider-ovh-check#167.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 2, 2021

CDS Report terraform-provider-ovh-testacc#167.0 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 2, 2021

CDS Report terraform-provider-ovh-testacc#167.1 ✔
*

  • checks ✔

- data/ovh_cloud_project_kube
- ovh_cloud_project_kube
- ovh_cloud_project_kube_nodepool
@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 3, 2021

CDS Report terraform-provider-ovh-check#169.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 3, 2021

CDS Report terraform-provider-ovh-testacc#169.0 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 3, 2021

CDS Report terraform-provider-ovh-testacc#169.1 ■

1 similar comment
@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 3, 2021

CDS Report terraform-provider-ovh-testacc#169.1 ■

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 3, 2021

CDS Report terraform-provider-ovh-check#169.0 ✔
*

  • checks ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 3, 2021

CDS Report terraform-provider-ovh-testacc#169.2 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 3, 2021

CDS Report terraform-provider-ovh-testacc#169.3 ✘
*

  • checks ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Mar 3, 2021

CDS Report terraform-provider-ovh-testacc#169.4 ✔
*

  • checks ✔

@yanndegat yanndegat merged commit 864d7fa into master Mar 3, 2021
@yanndegat
Copy link
Collaborator

finally

thanks to all of you @PhilippeVienne @d33d33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants