mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-08-31 21:31:20 +00:00
LDAP and AD IDPs now always report condition with type LDAPConnectionValid, even if the status is unknown
Co-authored-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
committed by
Ryan Richard
co-authored by
Ryan Richard
parent
1c59a41cc5
commit
afa3aa2232
@@ -54,8 +54,6 @@ const (
|
||||
reasonUnableToInstantiateWebhook = "UnableToInstantiateWebhook"
|
||||
reasonInvalidEndpointURL = "InvalidEndpointURL"
|
||||
reasonInvalidEndpointURLScheme = "InvalidEndpointURLScheme"
|
||||
|
||||
msgUnableToValidate = "unable to validate; see other conditions for details"
|
||||
)
|
||||
|
||||
type cachedWebhookAuthenticator struct {
|
||||
@@ -344,7 +342,7 @@ func newWebhookAuthenticator(
|
||||
Type: typeAuthenticatorValid,
|
||||
Status: metav1.ConditionUnknown,
|
||||
Reason: conditionsutil.ReasonUnableToValidate,
|
||||
Message: msgUnableToValidate,
|
||||
Message: conditionsutil.MessageUnableToValidate,
|
||||
})
|
||||
return nil, conditions, nil
|
||||
}
|
||||
@@ -425,7 +423,7 @@ func (c *webhookCacheFillerController) validateConnection(
|
||||
Type: typeWebhookConnectionValid,
|
||||
Status: metav1.ConditionUnknown,
|
||||
Reason: conditionsutil.ReasonUnableToValidate,
|
||||
Message: msgUnableToValidate,
|
||||
Message: conditionsutil.MessageUnableToValidate,
|
||||
})
|
||||
return conditions, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user