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

Add version in operator status #139

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qiujian16
Copy link
Member

Signed-off-by: Jian Qiu [email protected]

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 9, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@qiujian16
Copy link
Member Author

/assign @yue9944882

@yue9944882
Copy link
Member

@qiujian16 is this for the print column? i guess the new clusteradm get hub-info command is sufficient for printing the version?

@qiujian16
Copy link
Member Author

also for the upgrade case, that we can know the previous version.

@@ -127,6 +127,9 @@ type ClusterManagerStatus struct {
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`

// Version represents the version of the compoenents in cluster manager
Version ClusterManagerVersion `json:"version,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

either make this a pointer or remove omitempty?

// KlusterletStatus represents the current status of Klusterlet agent.
type KlusterletStatus struct {
// ObservedGeneration is the last generation change you've dealt with
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`

// Version represents the version of the compoenents in klusterlet
Version KlusterletVersion `json:"version,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@yue9944882
Copy link
Member

also for the upgrade case, that we can know the previous version.

@qiujian16 will this work for vendor customized version? e.g. conventionally we extend a platform version suffix after the semver vX.Y.Z.vendor.1

@qiujian16
Copy link
Member Author

I think we would read version in version.go. So yes if the customized version is added in ldflag.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 26, 2022

@qiujian16: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants