Skip to content

Commit 70099c9

Browse files
committed
metrics: ignore tls adherence
1 parent 7b9c98f commit 70099c9

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

pkg/cvo/metrics.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,15 @@ func getAPIServerTLSProfile(apiServerLister configlistersv1.APIServerLister, las
161161
return lastValidProfile, nil
162162
}
163163

164-
if apiServer.Spec.TLSAdherence == configv1.TLSAdherencePolicyNoOpinion ||
165-
apiServer.Spec.TLSAdherence == configv1.TLSAdherencePolicyLegacyAdheringComponentsOnly {
166-
return &cachedTLSProfile{
167-
spec: nil,
168-
apply: func(config *tls.Config) {}, // do nothing
169-
generation: apiServer.Generation,
170-
}, nil
171-
}
164+
// the tls-scanner CI step is maybe not updated to take the new field into account
165+
//if apiServer.Spec.TLSAdherence == configv1.TLSAdherencePolicyNoOpinion ||
166+
// apiServer.Spec.TLSAdherence == configv1.TLSAdherencePolicyLegacyAdheringComponentsOnly {
167+
// return &cachedTLSProfile{
168+
// spec: nil,
169+
// apply: func(config *tls.Config) {}, // do nothing
170+
// generation: apiServer.Generation,
171+
// }, nil
172+
//}
172173

173174
profile, err := tlsprofile.GetTLSProfileSpec(apiServer.Spec.TLSSecurityProfile)
174175
if err != nil {

0 commit comments

Comments
 (0)