File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ type ClustersConfig struct {
3939 GCPConfig GCPConfig // stores GCP project name and filepath to service account JSON key
4040}
4141
42- // GetAPINodes returns a filtered list of API nodes based on the ClusterConfig and given hosts.
42+ // GetAPIHosts returns a filtered list of API hosts based on the ClusterConfig and given hosts.
4343func (cc * ClusterConfig ) GetAPIHosts (hosts []* Host ) []* Host {
4444 return utils .Filter (hosts , func (h * Host ) bool {
4545 return slices .Contains (cc .APINodes , h .NodeID )
4646 })
4747}
4848
49- // GetValidatorNodes returns the validator nodes from the ClusterConfig.
49+ // GetValidatorHosts returns the non-API hosts from the given hosts based on the ClusterConfig.
5050func (cc * ClusterConfig ) GetValidatorHosts (hosts []* Host ) []* Host {
5151 return utils .Filter (hosts , func (h * Host ) bool {
5252 return ! slices .Contains (cc .APINodes , h .GetCloudID ())
You can’t perform that action at this time.
0 commit comments