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

Network support for Civo Crossplane Provider #29

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

haardikdharma10
Copy link

Description of your changes

Fixes #24

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

// CivoNetworkSpec holds the networkConfig
type CivoNetworkSpec struct {
xpv1.ResourceSpec `json:",inline"`
NetworkConfig CivoNetworkConfig `json:"networkConfig"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use the fields here directly i.e?

Suggested change
NetworkConfig CivoNetworkConfig `json:"networkConfig"`
Label string `json:"label"`
Region string `json:"region"`

// DeleteNetwork deletes a network on Civo.
func (c *CivoClient) DeleteNetwork(id string) error {
network, err := c.civoGoClient.GetNetwork(id)
if 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.

If it is not found, we should return nil

Signed-off-by: Haardik Dharma <[email protected]>
Signed-off-by: Haardik Dharma <[email protected]>
Signed-off-by: Haardik Dharma <[email protected]>
Signed-off-by: Haardik Dharma <[email protected]>
Signed-off-by: Haardik Dharma <[email protected]>
Signed-off-by: Haardik Dharma <[email protected]>
Signed-off-by: Haardik Dharma <[email protected]>
Signed-off-by: Haardik Dharma <[email protected]>
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.

Declare and create network in Civo
2 participants