-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Support setting labels and annotations for the CP Service #35
Conversation
Codecov Report
@@ Coverage Diff @@
## main #35 +/- ##
==========================================
+ Coverage 39.68% 39.95% +0.26%
==========================================
Files 3 3
Lines 451 453 +2
==========================================
+ Hits 179 181 +2
Misses 241 241
Partials 31 31
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
api/v1beta1/virtinkcluster_types.go
Outdated
@@ -22,6 +22,9 @@ type VirtinkClusterSpec struct { | |||
// of type ClusterIP, which will make workload cluster only accessible within the same cluster. | |||
ControlPlaneServiceType *corev1.ServiceType `json:"controlPlaneServiceType,omitempty"` | |||
|
|||
// ControlPlaneServiceAnnotations will be appended to the control plane service annotations. |
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.
Maybe we should consider the possibility to let user create the service and we simply use it (or at most add labels to it)? For now we may be dealing with annotations, and someday we may find ourselves dealing with more fields of service. It could be cumbersome then.
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.
That's a good idea! I'm trying to make it come true.
8739239
to
0cd4acc
Compare
0cd4acc
to
0aa58f9
Compare
0aa58f9
to
1ca6ed5
Compare
6b9a0e3
to
a953e54
Compare
a953e54
to
1c0d502
Compare
docs/external-cluster.md
Outdated
@@ -63,6 +63,8 @@ SA_TOKEN="$(kubectl get secret "${SA_SECRET}" -o jsonpath='{.data.token}' | base | |||
kubectl config --kubeconfig virtink-infra-cluster.kubeconfig set-credentials kubernetes-admin "--token=${SA_TOKEN}" | |||
``` | |||
|
|||
>**Note**: In more recent K8S versions, including v1.24, the long term API token will not be automatically created for the ServiceAccount, you may [manually create a token Secret for the ServiceAccount](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#manually-create-a-long-lived-api-token-for-a-serviceaccount), and set the enviroment variable `SA_SECRET` above. |
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.
Add a space between >
and **
. And "in more recent K8s versions" sounds weird
1c0d502
to
a74a0ce
Compare
No description provided.