change WebhookAuthenticator TLSConnectionNegotiationValid to ConnectionProbeValid

This commit is contained in:
Benjamin A. Petersen
2024-03-19 18:00:40 -04:00
parent 5bc4e678bf
commit bec5fe85cc
3 changed files with 44 additions and 44 deletions

View File

@@ -67,7 +67,7 @@ func TestConciergeWebhookAuthenticatorStatus_Parallel(t *testing.T) {
Reason: "InvalidTLSConfiguration",
Message: "invalid TLS configuration: illegal base64 data at input byte 7",
}, {
Type: "TLSConnectionNegotiationValid",
Type: "ConnectionProbeValid",
Status: "Unknown",
Reason: "UnableToValidate",
Message: "unable to validate; see other conditions for details",
@@ -98,7 +98,7 @@ func TestConciergeWebhookAuthenticatorStatus_Parallel(t *testing.T) {
Reason: "UnableToValidate",
Message: "unable to validate; see other conditions for details",
}, {
Type: "TLSConnectionNegotiationValid",
Type: "ConnectionProbeValid",
Status: "False",
Reason: "UnableToDialServer",
Message: "cannot dial server: tls: failed to verify certificate: x509: certificate signed by unknown authority",
@@ -130,7 +130,7 @@ func TestConciergeWebhookAuthenticatorStatus_Parallel(t *testing.T) {
Reason: "UnableToValidate",
Message: "unable to validate; see other conditions for details",
}, {
Type: "TLSConnectionNegotiationValid",
Type: "ConnectionProbeValid",
Status: "False",
Reason: "UnableToDialServer",
Message: "cannot dial server: dial tcp 127.0.0.1:443: connect: connection refused",
@@ -266,6 +266,11 @@ func allSuccessfulWebhookAuthenticatorConditions() []metav1.Condition {
Status: "True",
Reason: "Success",
Message: "authenticator initialized",
}, {
Type: "ConnectionProbeValid",
Status: "True",
Reason: "Success",
Message: "tls verified",
}, {
Type: "EndpointURLValid",
Status: "True",
@@ -281,10 +286,5 @@ func allSuccessfulWebhookAuthenticatorConditions() []metav1.Condition {
Status: "True",
Reason: "Success",
Message: "successfully parsed specified CA bundle",
}, {
Type: "TLSConnectionNegotiationValid",
Status: "True",
Reason: "Success",
Message: "tls verified",
}}
}