Skip to content

Commit

Permalink
Fixing cert metric emitting condition param
Browse files Browse the repository at this point in the history
  • Loading branch information
sankur-codes committed Nov 17, 2023
1 parent ac7cf2f commit d45f7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monitor/cluster/certificateexpirationstatuses.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (mon *Monitor) emitCertificateExpirationStatuses(ctx context.Context) error
})
}

if dns.IsManagedDomain(mon.oc.Properties.ClusterProfile.Domain) {
if dns.IsManagedDomain(strings.Split(mon.oc.Properties.APIServerProfile.URL, ":")[1]) {
ic := &operatorv1.IngressController{}
err := mon.ocpclientset.Get(ctx, client.ObjectKey{
Namespace: ingressNamespace,
Expand Down

0 comments on commit d45f7b6

Please sign in to comment.