-
Notifications
You must be signed in to change notification settings - Fork 38
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
rename FleetCluster to KubeConfigSecretRef #484
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -32,7 +32,7 @@ type FleetPluginConfig struct { | |||||||||||||||||||||||||||||||||||
Component string | ||||||||||||||||||||||||||||||||||||
Fleet types.NamespacedName | ||||||||||||||||||||||||||||||||||||
OwnerReference *metav1.OwnerReference | ||||||||||||||||||||||||||||||||||||
Cluster *FleetCluster | ||||||||||||||||||||||||||||||||||||
Cluster *RenderableFleetCluster | ||||||||||||||||||||||||||||||||||||
Chart ChartConfig | ||||||||||||||||||||||||||||||||||||
Values map[string]interface{} | ||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||
|
@@ -55,7 +55,7 @@ func (plugin FleetPluginConfig) StorageNamespace() string { | |||||||||||||||||||||||||||||||||||
return plugin.Fleet.Namespace | ||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
type FleetCluster struct { | ||||||||||||||||||||||||||||||||||||
type RenderableFleetCluster struct { | ||||||||||||||||||||||||||||||||||||
Name string | ||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: The Name can be removed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, it is used solely for rendering and requires the If we remove However, I think that refactoring them would not be wise. such as kurator/pkg/fleet-manager/plugin/render.go Lines 30 to 46 in 5de1517
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did see that, it is unused There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you are right, it is unused |
||||||||||||||||||||||||||||||||||||
SecretName string | ||||||||||||||||||||||||||||||||||||
SecretKey string | ||||||||||||||||||||||||||||||||||||
|
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.
can we use the FleetCluster, if any field miss, we can add it
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.
the origin
FleetCluster
's fileld value is comes from two structfleetCluster
andClusterKey
,so maybe we can not directly add fileld in
FleetCluster
, or we need merge those two struct into one struct, which may affect many other codekurator/pkg/fleet-manager/fleet_cluster.go
Lines 34 to 43 in 2871c99
this is the most used usage:
kurator/pkg/fleet-manager/fleet_plugin_distributedstorage.go
Lines 78 to 81 in 83fdec0