-
Notifications
You must be signed in to change notification settings - Fork 75
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 cluster annotations. #252
Add cluster annotations. #252
Conversation
1dc5360
to
40e0f49
Compare
/assign @qiujian16 |
95cf570
to
cc34a46
Compare
cc34a46
to
b73df11
Compare
operator/v1/types.go
Outdated
@@ -107,6 +107,13 @@ type RegistrationConfiguration struct { | |||
// he can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false. | |||
// +optional | |||
FeatureGates []FeatureGate `json:"featureGates,omitempty"` | |||
|
|||
// ClusterAnnotations is a set of annotations that agent used when creating a managed cluster. | |||
// After the managed cluster is created, modify this field won't affect the managed cluster any more. |
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.
also need a const definition of this annotationPrefix
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.
Yes, adding one now...
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.
Added the ClusterAnnotationsKeyPrefix
, PTAL.
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.
After the managed cluster is created, modify this field won''t affect the managed cluster any more. But if the managed cluster is deleted from the hub, it will be used again when agent attempt to create a managed cluster. The annotations must has prefix: "agent.open-cluster-management.io", otherwise, it will be ignored.'
I do not think you still need these.
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.
Agree, the content deleted. PTAL.
acdb7fb
to
5bd04fa
Compare
Signed-off-by: xuezhaojun <zxue@redhat.com>
5bd04fa
to
c875c3b
Compare
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16, xuezhaojun 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 |
…cluster-management-io#252) Signed-off-by: xuezhaojun <zxue@redhat.com>
…cluster-management-io#252) Signed-off-by: xuezhaojun <zxue@redhat.com>
No description provided.