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

Method GetFixedInheritedLabels

api/v1/cluster_funcs.go:681–686  ·  view source on GitHub ↗

GetFixedInheritedLabels gets the labels that should be inherited by all resources according the cluster spec

()

Source from the content-addressed store, hash-verified

679// GetFixedInheritedLabels gets the labels that should be
680// inherited by all resources according the cluster spec
681func (cluster *Cluster) GetFixedInheritedLabels() map[string]string {
682 if cluster.Spec.InheritedMetadata == nil || cluster.Spec.InheritedMetadata.Labels == nil {
683 return nil
684 }
685 return cluster.Spec.InheritedMetadata.Labels
686}
687
688// GetReplicationSecretName get the name of the secret for the replication user
689func (cluster *Cluster) GetReplicationSecretName() string {

Callers 7

SetInheritedDataMethod · 0.95
createMajorUpgradeJobFunction · 0.80
newLabelReconcilerFunction · 0.80
updateClusterLabelsFunction · 0.80
metadata_test.goFile · 0.80
inheritJobMetadataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected