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

bump client-go to v0.25.11 #66

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

dtnyn
Copy link
Collaborator

@dtnyn dtnyn commented Sep 14, 2023

Bumping go-client version to v0.25.11

@@ -181,8 +181,9 @@ type CycleNodeRequest struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec CycleNodeRequestSpec `json:"spec,omitempty"`
Status CycleNodeRequestStatus `json:"status,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was the addition of ClusterName intended?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah apimachinery removed the field in v0.25.x https://github.com/kubernetes/apimachinery/blob/v0.25.11/pkg/apis/meta/v1/types.go#L258C34-L260
The field was removed since it wasn't needed by kubernetes

This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.

While we don't need it for any kubernetes functionality, we still need it since we piggybacked the meta clusterName field for cyclops notification components.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would this place the field inside the metadata field though?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No it will be just under clustername sine we will (un)marshal it the same way where it's used by the notification https://github.com/atlassian-labs/cyclops/blob/master/pkg/notifications/slack/slack.go#L80-L91. If for convention, we can just create a new struct with the ObjectMeta promoted fields and clustername so we can put it under metadata

@MinyiZ MinyiZ self-requested a review September 20, 2023 00:12
@dtnyn dtnyn merged commit 5889485 into atlassian-labs:master Sep 20, 2023
3 checks passed
@dtnyn dtnyn deleted the bump/go-client-v1.25.11 branch September 20, 2023 06:58
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.

6 participants