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

New resource: DevSpace Controller for AKS cluster #2086

Merged
merged 21 commits into from Oct 29, 2018
Merged

New resource: DevSpace Controller for AKS cluster #2086

merged 21 commits into from Oct 29, 2018

Conversation

metacpp
Copy link
Contributor

@metacpp metacpp commented Oct 16, 2018

This PR is a follow up on #1488 to add DevSpace controller resource for AKS cluster.

Introduce pacakge for devspace controller.
…or DevSpaces controll…

Add code to support creation of DevSpaces controller.
Implemented RUD operations for devspaces controller.
…ontroller.

Add doc and test for DevSpace controller, and refine the schema.
@ghost ghost added the size/XXL label Oct 16, 2018
@metacpp metacpp changed the title Add new resource for DevSpace controller to integrate with AKS cluster New resource: DevSpace controller for AKS cluster Oct 16, 2018
@metacpp metacpp changed the title New resource: DevSpace controller for AKS cluster New resource: DevSpace Controller for AKS cluster Oct 16, 2018
@metacpp metacpp added this to the Soon milestone Oct 16, 2018
@metacpp
Copy link
Contributor Author

metacpp commented Oct 17, 2018

Test passed
screen shot 2018-10-17 at 2 32 53 pm

@tombuildsstuff tombuildsstuff modified the milestones: Soon, Being Sorted, 1.19.0 Oct 25, 2018
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Hi @metacpp,

Thanks for the PR. I've left some mostly minor comments inline but it mostly LGTM,

azurerm/resource_arm_devspace_controller.go Outdated Show resolved Hide resolved
azurerm/resource_arm_devspace_controller.go Show resolved Hide resolved
azurerm/resource_arm_devspace_controller.go Show resolved Hide resolved
azurerm/resource_arm_devspace_controller.go Outdated Show resolved Hide resolved
azurerm/resource_arm_devspace_controller.go Outdated Show resolved Hide resolved
}

var result devspaces.Controller
if result, err = future.Result(client); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we use client.Get() here instead like the majority of other resources?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this the new pattern for async API ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wouldn't call it new, most resources are coded that way. There are only 3 places in the entire provider where future.result() is called

azurerm/resource_arm_devspace_controller.go Show resolved Hide resolved
azurerm/resource_arm_devspace_controller.go Outdated Show resolved Hide resolved
azurerm/resource_arm_devspace_controller.go Outdated Show resolved Hide resolved
azurerm/resource_arm_devspace_controller.go Outdated Show resolved Hide resolved
@katbyte
Copy link
Collaborator

katbyte commented Oct 27, 2018

also, the provider is now on v21.3 and this PR should be updated accordingly

@metacpp
Copy link
Contributor Author

metacpp commented Oct 29, 2018

also, the provider is now on v21.3 and this PR should be updated accordingly

@katbyte The PR is updated by resolving all issues.

@katbyte katbyte self-assigned this Oct 29, 2018
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

@metacpp, Thank you for the updates. LGTM 👍

@katbyte
Copy link
Collaborator

katbyte commented Oct 29, 2018

tests pass:
screen shot 2018-10-29 at 07 14 17

@katbyte katbyte modified the milestones: 1.19.0, 1.18.0 Oct 29, 2018
katbyte added a commit that referenced this pull request Oct 29, 2018
@katbyte katbyte merged commit ab8acd7 into master Oct 29, 2018
@katbyte katbyte deleted the devspace branch October 29, 2018 17:38
Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

left a few comments inline but this otherwise LGTM 👍

@metacpp
Copy link
Contributor Author

metacpp commented Oct 29, 2018

@tombuildsstuff I followed up your suggestions in #2182

@ghost
Copy link

ghost commented Mar 6, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants