Skip to content

Add tag on cluster #228

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

Merged
1 commit merged into from Mar 15, 2023
Merged

Add tag on cluster #228

1 commit merged into from Mar 15, 2023

Conversation

ghost
Copy link

@ghost ghost commented Feb 15, 2023

What type of PR is this?
/kind feature

What this PR does / why we need it:
Use tag name not to have duplicate cluster if the api is down during the first initialization.
Closes #183

Which issue(s) this PR fixes:
Fixes #183

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

@ghost ghost marked this pull request as draft February 15, 2023 08:51
@ghost ghost assigned outscale-mdr Feb 22, 2023
@ghost ghost marked this pull request as ready for review February 22, 2023 12:44
@ghost ghost assigned ghost and unassigned outscale-mdr Feb 22, 2023
@ghost ghost requested review from outscale-mdr and outscale-hmi February 22, 2023 12:45
@ghost
Copy link
Author

ghost commented Mar 7, 2023

@outscale-mdr @outscale-hmi Are you ok with this PR ?

Copy link
Contributor

@outscale-hmi outscale-hmi left a comment

Choose a reason for hiding this comment

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

Good for me

cloud/tag/tag.go Outdated
// AddTag add a tag to a resource
//func AddTag(tagKey string, tagValue string, resourceIds []string, api *osc.APIClient, auth context.Context) (error, *http.Response) {
// func AddTag(tagKey string, tagValue string, resourceIds []string, api *osc.APIClient, auth context.Context) (error, *http.Response) {
Copy link
Contributor

@outscale-hmi outscale-hmi Mar 9, 2023

Choose a reason for hiding this comment

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

you can remove comment because parameters are not the same as the function

Copy link
Author

Choose a reason for hiding this comment

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

Ok remove

@@ -149,7 +148,7 @@ def file_extension(filename):

skipped_dirs = ['Godeps', 'third_party', '_gopath', '_output', '.git', 'cluster/env.sh',
"vendor", "test/e2e/generated/bindata.go", "hack/boilerplate/test",
"pkg/kubectl/generated/bindata.go", "tilt_modules", "cloud/services/net/mock_net", "cloud/services/security/mock_security", "cloud/services/service/mock_service", "cloud/services/storage/mock_storage", "cloud/services/compute/mock_compute", "api/v1beta1/zz_generated.deepcopy.go"]
"pkg/kubectl/generated/bindata.go", "tilt_modules", "cloud/services/net/mock_net", "cloud/services/security/mock_security", "cloud/services/service/mock_service", "cloud/services/storage/mock_storage", "cloud/services/compute/mock_compute", "cloud/tag/mock_tag", "api/v1beta1/zz_generated.deepcopy.go"]
Copy link
Contributor

Choose a reason for hiding this comment

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

format

Copy link
Author

Choose a reason for hiding this comment

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

@outscale-hmi What do you mean ?

Copy link
Author

Choose a reason for hiding this comment

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

All in one line ?

Copy link
Author

Choose a reason for hiding this comment

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

Ok done

Copy link
Contributor

@outscale-hmi outscale-hmi left a comment

Choose a reason for hiding this comment

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

OK

@ghost ghost merged commit a7114d6 into outscale:main Mar 15, 2023
@ghost ghost added the kind/feature Feature resolution label Jul 20, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Feature resolution
Development

Successfully merging this pull request may close these issues.

Handle error like (500 internal server error) from some api call (not all) during creation and deletion of cluster
3 participants