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:
Ryan Richard
2024-08-01 16:21:31 -07:00
parent 02e41baa47
commit e0235ed190
102 changed files with 889 additions and 686 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",