mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-05 13:07:14 +00:00
update docs and change struct name in types_tls.go.tmpl files
Co-authored-by: Ashish Amarnath <ashish.amarnath@broadcom.com>
This commit is contained in:
@@ -83,7 +83,7 @@ func TestClient(t *testing.T) {
|
||||
"tls.key": "",
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -98,7 +98,7 @@ func TestClient(t *testing.T) {
|
||||
"ca.crt": string(TLSCABundle),
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -113,7 +113,7 @@ func TestClient(t *testing.T) {
|
||||
"ca.crt": string(TLSCABundle),
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "ConfigMap",
|
||||
Name: caConfigmap.Name,
|
||||
Key: "ca.crt",
|
||||
|
||||
@@ -93,7 +93,7 @@ func TestConciergeJWTAuthenticatorWithExternalCABundleStatusIsUpdatedWhenExterna
|
||||
Issuer: env.SupervisorUpstreamOIDC.Issuer,
|
||||
Audience: "does-not-matter",
|
||||
TLS: &authenticationv1alpha1.TLSSpec{
|
||||
CertificateAuthorityDataSource: &authenticationv1alpha1.CABundleSource{
|
||||
CertificateAuthorityDataSource: &authenticationv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: test.caBundleSourceSpecKind,
|
||||
Name: caBundleResourceName,
|
||||
Key: "ca.crt",
|
||||
|
||||
@@ -90,7 +90,7 @@ func TestConciergeWebhookAuthenticatorWithExternalCABundleStatusIsUpdatedWhenExt
|
||||
authenticator := testlib.CreateTestWebhookAuthenticator(ctx, t, &authenticationv1alpha1.WebhookAuthenticatorSpec{
|
||||
Endpoint: env.TestWebhook.Endpoint,
|
||||
TLS: &authenticationv1alpha1.TLSSpec{
|
||||
CertificateAuthorityDataSource: &authenticationv1alpha1.CABundleSource{
|
||||
CertificateAuthorityDataSource: &authenticationv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: test.caBundleSourceSpecKind,
|
||||
Name: caBundleResourceName,
|
||||
Key: "ca.crt",
|
||||
|
||||
@@ -237,7 +237,7 @@ func TestE2EFullIntegration_Browser(t *testing.T) {
|
||||
})
|
||||
jwtAuthnSpec := defaultJWTAuthenticatorSpec.DeepCopy()
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityData = ""
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CABundleSource{
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -339,7 +339,7 @@ func TestE2EFullIntegration_Browser(t *testing.T) {
|
||||
})
|
||||
jwtAuthnSpec := defaultJWTAuthenticatorSpec.DeepCopy()
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityData = ""
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CABundleSource{
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -477,7 +477,7 @@ func TestE2EFullIntegration_Browser(t *testing.T) {
|
||||
})
|
||||
jwtAuthnSpec := defaultJWTAuthenticatorSpec.DeepCopy()
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityData = ""
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CABundleSource{
|
||||
jwtAuthnSpec.TLS.CertificateAuthorityDataSource = &authenticationv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "ConfigMap",
|
||||
Name: caConfigMap.Name,
|
||||
Key: "ca.crt",
|
||||
|
||||
@@ -375,7 +375,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"ca.crt": string(caData),
|
||||
})
|
||||
idpSpec.TLS.CertificateAuthorityData = ""
|
||||
idpSpec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
idpSpec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -405,7 +405,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"tls.key": "",
|
||||
})
|
||||
idpSpec.TLS.CertificateAuthorityData = ""
|
||||
idpSpec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
idpSpec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -432,7 +432,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"ca.crt": string(caData),
|
||||
})
|
||||
idpSpec.TLS.CertificateAuthorityData = ""
|
||||
idpSpec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
idpSpec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "ConfigMap",
|
||||
Name: caConfigMap.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -461,7 +461,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"ca.crt": string(caData),
|
||||
})
|
||||
idpSpec.TLS.CertificateAuthorityData = ""
|
||||
idpSpec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
idpSpec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -684,7 +684,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"ca.crt": env.SupervisorUpstreamLDAP.CABundle,
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -735,7 +735,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"tls.key": "",
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -784,7 +784,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"ca.crt": env.SupervisorUpstreamLDAP.CABundle,
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "ConfigMap",
|
||||
Name: caConfigMap.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -1270,7 +1270,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"ca.crt": env.SupervisorUpstreamActiveDirectory.CABundle,
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -1312,7 +1312,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"tls.key": "",
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "Secret",
|
||||
Name: caSecret.Name,
|
||||
Key: "ca.crt",
|
||||
@@ -1352,7 +1352,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
|
||||
"ca.crt": env.SupervisorUpstreamActiveDirectory.CABundle,
|
||||
})
|
||||
spec.TLS.CertificateAuthorityData = ""
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CABundleSource{
|
||||
spec.TLS.CertificateAuthorityDataSource = &idpv1alpha1.CertificateAuthorityDataSourceSpec{
|
||||
Kind: "ConfigMap",
|
||||
Name: caConfigMap.Name,
|
||||
Key: "ca.crt",
|
||||
|
||||
Reference in New Issue
Block a user