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

Expose Status machine adresss ip #223

Merged
2 commits merged into from Mar 13, 2023
Merged

Expose Status machine adresss ip #223

2 commits merged into from Mar 13, 2023

Conversation

ghost
Copy link

@ghost ghost commented Feb 9, 2023

What type of PR is this?
/kind feature

What this PR does / why we need it:
Expose node ip address for machine in status (which is used by microK8s bootstrapper)
Open missing flux
And add example for microk8s.
Closes #222
Which issue(s) this PR fixes :
Fixes #222

Special notes for your reviewer:
Optional addresses
https://cluster-api.sigs.k8s.io/developer/architecture/controllers/machine.html

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

@ghost ghost marked this pull request as draft February 9, 2023 08:38
@ghost ghost requested a review from outscale-mdr February 24, 2023 17:16
@ghost ghost assigned outscale-hmi and ghost and unassigned outscale-hmi Feb 24, 2023
@ghost ghost requested a review from outscale-hmi February 24, 2023 17:16
@ghost ghost marked this pull request as ready for review February 24, 2023 17:16
@ghost
Copy link
Author

ghost commented Mar 7, 2023

@outscale-hmi @outscale-mdr are you ok with this pr ?

cloud/tag/tag.go Outdated
@@ -28,7 +28,7 @@ import (
)

// 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

Choose a reason for hiding this comment

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

you should rebase,
this change is in several PR
also AddTag in the comment parameters don't have the same parameters
as AddTag(createTagRequest osc.CreateTagsRequest, resourceIds []string, api *osc.APIClient, auth context.Context) (error, *http.Response)

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

@@ -921,8 +925,10 @@ func (network *OscNetwork) SetSecurityGroupDefaultValue() {
if network.ClusterName != "" {
securityGroupRuleApiKubeletKwName = strings.Replace(DefaultSecurityGroupRuleApiKubeletKwName, DefaultClusterName, network.ClusterName, -1)
securityGroupRuleApiKubeletKcpName = strings.Replace(DefaultSecurityGroupRuleApiKubeletKcpName, DefaultClusterName, network.ClusterName, -1)
securityGroupRuleNodeIpKwName = strings.Replace(DefaultSecurityGroupRuleNodeIpKwName, DefaultClusterName, network.ClusterName, -1)
securityGroupRuleNodeIpKcpName = strings.Replace(DefaultSecurityGroupRuleNodeIpKcpName, DefaultClusterName, network.ClusterName, -1)
securityGroupRuleKwNodeIpKwName = strings.Replace(DefaultSecurityGroupRuleKwNodeIpKwName, DefaultClusterName, network.ClusterName, -1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change related to expose machine address ip ?

Copy link
Author

Choose a reason for hiding this comment

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

We need to expose machine address ip but there are also some ports are missing for microk8s.

Copy link
Author

Choose a reason for hiding this comment

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

(Open missing flux)

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 for me

@ghost ghost merged commit 25dc0d4 into outscale:main Mar 13, 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.

Expose machine address status
2 participants