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

Add k8s cluster resource #140

Merged
merged 19 commits into from
Apr 7, 2021
Merged

Add k8s cluster resource #140

merged 19 commits into from
Apr 7, 2021

Conversation

nvthongswansea
Copy link
Contributor

@nvthongswansea nvthongswansea commented Mar 17, 2021

Add a new k8s resource to gridscale terraform provider #120.
What changes:

  • Add new tf resource "gridscale_k8s".
  • Add "gridscale_k8s" resource's docs.

What it does:

  • Manage k8s cluster resources in gridscale.
  • Validate gsk (gridscale k8s cluster) parameters.
  • Allow user to input k8s_release (e.g. 1.19), instead of inputting service_template_uuid. Optionally, the values of k8s_release can be retrieved via gscloud.

@nvthongswansea
Copy link
Contributor Author

Here are validation error samples:
image
image

Fix error message when invalid k8s release is selected.
Always check if keys of ParametersSchema exists.
@bkircher bkircher added this to the v1.9.0 milestone Mar 17, 2021
Copy link
Contributor

@bkircher bkircher left a comment

Choose a reason for hiding this comment

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

Gets a "looks good to me so far" 😄 Just a couple of things that shouldn't be in the interface, I think.

@nvthongswansea @itakouna What release do we target with this 1.9.0? And how soon should we release this?

gridscale/resource_gridscale_k8s.go Outdated Show resolved Hide resolved
gridscale/resource_gridscale_k8s.go Outdated Show resolved Hide resolved
gridscale/resource_gridscale_k8s.go Outdated Show resolved Hide resolved
gridscale/resource_gridscale_k8s.go Outdated Show resolved Hide resolved
@@ -77,6 +77,7 @@ func Provider() terraform.ResourceProvider {
"gridscale_snapshotschedule": resourceGridscaleStorageSnapshotSchedule(),
"gridscale_backupschedule": resourceGridscaleStorageBackupSchedule(),
"gridscale_paas": resourceGridscalePaaS(),
"gridscale_k8s": resourceGridscaleK8s(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want this to be short and sweet "gridscale_k8s" or "gridscale_kubernetes_cluster" as in #120?

@itakouna

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@itakouna please take a look. Thanks!

@bkircher
Copy link
Contributor

BTW, I really like the validation errors above. More of that please, Sir 💪

@bkircher
Copy link
Contributor

Ping @twiebe with a request for comment

Copy link
Contributor

@bkircher bkircher left a comment

Choose a reason for hiding this comment

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

Changes LGTM

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

Successfully merging this pull request may close these issues.

None yet

2 participants