MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / SetSelectors

Method SetSelectors

pkg/servicespec/builder.go:112–115  ·  view source on GitHub ↗

SetSelectors overwrites the selector fields

(selectors map[string]string)

Source from the content-addressed store, hash-verified

110
111// SetSelectors overwrites the selector fields
112func (builder *Builder) SetSelectors(selectors map[string]string) *Builder {
113 builder.status.Spec.Selector = selectors
114 return builder
115}
116
117// Build gets the final ServiceTemplate
118func (builder *Builder) Build() *apiv1.ServiceTemplateSpec {

Callers 2

SetPGBouncerSelectorMethod · 0.95
BuildManagedServicesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected