-
Notifications
You must be signed in to change notification settings - Fork 112
Show target cluster in the list of apps #1115
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
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: Pawel Grzesik <[email protected]>
@@ -734,6 +734,10 @@ spec: | |||
jsonPath: .status.deploy.startedAt | |||
name: Since-Deploy | |||
type: date | |||
- description: Target Cluster name taken from the kubeconfig. | |||
jsonPath: .spec.cluster.kubeconfigSecretRef.name | |||
name: TargetCluster |
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.
name: TargetCluster | |
name: Target-Cluster |
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.
Does it make sense to have a default value, something like <none>
(if possible)? Or is it okay to have an empty column when target cluster is not used?
cc @neil-hickey @100mik What are your thoughts?
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.
Default ideally is the name of "this" cluster. i.e the one it's running on.
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.
^ Makes sense 💯 , it would be good to have the target-cluster populated with the current cluster by default, but, is .spec.cluster.kubeconfigSecretRef.name
populated by default?
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.
This would require some code changes or it's about adding something like // +kubebuilder:default:="this"
?
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.
I imagine it would involve adding a cluster
field to the status
which is populated on reconcile. I do not imagine the controller populates any of the spec
fields 🤔
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.
I definitely agree with Neil in regards to what should the default value be though!
Just following up here, we had a chat about this at our community meeting this week. Generally everyone was onboard with the idea of The current approach is to use the kubeconfig name for the external cluster. That might be a bit weird if you kubeconfig name doesn't actually mention the cluster or has other stuff in it. Ideally this is actually the name of the cluster from within the kubeconfig (kubeconfig's can also have multiple cluster info within them) |
I think another option instead of empty that makes sense is in-cluster. |
How about creating another field for |
Any comment? :-) |
What this PR does / why we need it:
This is for the issue: #1103
Does this PR introduce a user-facing change?
Additional Notes for your reviewer:
Review Checklist:
a link to that PR
change
Additional documentation e.g., Proposal, usage docs, etc.: