-
Notifications
You must be signed in to change notification settings - Fork 44
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
Api pivot #150
Api pivot #150
Conversation
This was got removed in this commit, openshift@9ba17c5
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This seems to be introducing a lot of API changes. |
a9b3aa9
to
ad62f70
Compare
4efec09
to
87c5e39
Compare
@vikaschoudhary16 I don't think we need to |
87c5e39
to
702e7a2
Compare
@ingvagabund group name is awsprovider.openshift.io. Directory name is including |
If we will, we can always do it later. And most likely we would run two actuators, each for one group. |
38fee92
to
69668ad
Compare
pkg/actuators/machine/actuator.go
Outdated
@@ -134,7 +135,11 @@ func (a *Actuator) updateMachineStatus(machine *machinev1.Machine, awsStatus *pr | |||
} | |||
|
|||
oldAWSStatus := &providerconfigv1.AWSMachineProviderStatus{} | |||
if err := a.codec.DecodeProviderStatus(machine.Status.ProviderStatus, oldAWSStatus); err != nil { | |||
//if err := a.codec.DecodeProviderStatus(machine.Status.ProviderStatus, oldAWSStatus); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add to do here explaining why is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of replacing a.codec.DecodeProviderStatus
with yaml.Unmarshal
, let's replace the code in DecodeProviderStatus
itself [1].
pkg/actuators/machine/actuator.go
Outdated
@@ -499,8 +504,12 @@ func (a *Actuator) updateStatus(machine *machinev1.Machine, instance *ec2.Instan | |||
|
|||
// Starting with a fresh status as we assume full control of it here. | |||
awsStatus := &providerconfigv1.AWSMachineProviderStatus{} | |||
if err := a.codec.DecodeProviderStatus(machine.Status.ProviderStatus, awsStatus); err != nil { | |||
glog.Errorf("error decoding machine provider status: %v", err) | |||
//if err := a.codec.DecodeProviderStatus(machine.Status.ProviderStatus, awsStatus); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add to do here explaining why is needed?
pkg/actuators/machine/utils.go
Outdated
@@ -181,7 +182,12 @@ func providerConfigFromMachine(client client.Client, machine *machinev1.Machine, | |||
} | |||
|
|||
var config providerconfigv1.AWSMachineProviderConfig | |||
if err := codec.DecodeProviderSpec(&machinev1.ProviderSpec{Value: &providerSpecRawExtention}, &config); err != nil { | |||
|
|||
// if err := codec.DecodeProviderSpec(&machinev1.ProviderSpec{Value: &providerSpecRawExtention}, &config); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add to do here explaining why is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same here. Please update DecodeProviderSpec
itself [1] rather than replacing DecodeProviderSpec
.
f92c014
to
ee6e31a
Compare
/test e2e |
pkg/actuators/machine/actuator.go
Outdated
@@ -134,7 +135,11 @@ func (a *Actuator) updateMachineStatus(machine *machinev1.Machine, awsStatus *pr | |||
} | |||
|
|||
oldAWSStatus := &providerconfigv1.AWSMachineProviderStatus{} | |||
if err := a.codec.DecodeProviderStatus(machine.Status.ProviderStatus, oldAWSStatus); err != nil { | |||
//if err := a.codec.DecodeProviderStatus(machine.Status.ProviderStatus, oldAWSStatus); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of replacing a.codec.DecodeProviderStatus
with yaml.Unmarshal
, let's replace the code in DecodeProviderStatus
itself [1].
pkg/actuators/machine/utils.go
Outdated
@@ -181,7 +182,12 @@ func providerConfigFromMachine(client client.Client, machine *machinev1.Machine, | |||
} | |||
|
|||
var config providerconfigv1.AWSMachineProviderConfig | |||
if err := codec.DecodeProviderSpec(&machinev1.ProviderSpec{Value: &providerSpecRawExtention}, &config); err != nil { | |||
|
|||
// if err := codec.DecodeProviderSpec(&machinev1.ProviderSpec{Value: &providerSpecRawExtention}, &config); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same here. Please update DecodeProviderSpec
itself [1] rather than replacing DecodeProviderSpec
.
ee6e31a
to
1ac11a4
Compare
@vikaschoudhary16: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@vikaschoudhary16: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Closing in favor of #152. Thank you @vikaschoudhary16 for the PR. |
* Add region cluster configuration parameter Signed-off-by: Vince Prignano <vince@vincepri.com> * pass region in status Signed-off-by: Vince Prignano <vince@vincepri.com>
Add awsproviderconfig under oepnshift.io group