Skip to content

Commit

Permalink
Merge pull request rook#7974 from leseb/fix-7963
Browse files Browse the repository at this point in the history
ceph: do not configure external metric endpoint is not present
  • Loading branch information
travisn committed May 24, 2021
2 parents da7dcac + db91fd8 commit d3c18d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/operator/ceph/controller/spec.go
Expand Up @@ -668,6 +668,11 @@ func createExternalMetricsEndpoints(namespace string, monitoringSpec cephv1.Moni
}

func ConfigureExternalMetricsEndpoint(ctx *clusterd.Context, monitoringSpec cephv1.MonitoringSpec, clusterInfo *client.ClusterInfo, ownerInfo *k8sutil.OwnerInfo) error {
if len(monitoringSpec.ExternalMgrEndpoints) == 0 {
logger.Debug("no metric endpoint configured, doing nothing")
return nil
}

// Get active mgr
var activeMgrAddr string
// We use mgr dump and not stat because we want the IP address
Expand Down

0 comments on commit d3c18d0

Please sign in to comment.