Fix: malformed Kubernetes resource names and references in tests

This commit is contained in:
Romain 2021-06-24 17:32:07 +02:00 committed by GitHub
parent 55845c95bb
commit cd68cbd3ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 41 additions and 41 deletions

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA1 name: secret-ca1
namespace: default namespace: default
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA2 name: secret-ca2
namespace: default namespace: default
data: data:
@ -32,9 +32,9 @@ spec:
- TLS_RSA_WITH_AES_256_GCM_SHA384 - TLS_RSA_WITH_AES_256_GCM_SHA384
clientAuth: clientAuth:
secretNames: secretNames:
- secretCA1 - secret-ca1
- secretUnknown - secret-unknown
- emptySecret - empty-secret
clientAuthType: VerifyClientCertIfGiven clientAuthType: VerifyClientCertIfGiven
--- ---

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA1 name: secret-ca1
namespace: default namespace: default
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA2 name: secret-ca2
namespace: default namespace: default
data: data:
@ -32,8 +32,8 @@ spec:
- TLS_RSA_WITH_AES_256_GCM_SHA384 - TLS_RSA_WITH_AES_256_GCM_SHA384
clientAuth: clientAuth:
secretNames: secretNames:
- secretCA1 - secret-ca1
- secretCA2 - secret-ca2
clientAuthType: VerifyClientCertIfGiven clientAuthType: VerifyClientCertIfGiven
preferServerCipherSuites: true preferServerCipherSuites: true
--- ---

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA1 name: secret-ca1
namespace: myns namespace: myns
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA2 name: secret-ca2
namespace: myns namespace: myns
data: data:
@ -32,8 +32,8 @@ spec:
- TLS_RSA_WITH_AES_256_GCM_SHA384 - TLS_RSA_WITH_AES_256_GCM_SHA384
clientAuth: clientAuth:
secretNames: secretNames:
- secretCA1 - secret-ca1
- secretCA2 - secret-ca2
clientAuthType: VerifyClientCertIfGiven clientAuthType: VerifyClientCertIfGiven
--- ---

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA1 name: secret-ca1
namespace: default namespace: default
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: badSecret name: bad-secret
namespace: default namespace: default
data: data:
@ -32,9 +32,9 @@ spec:
- TLS_RSA_WITH_AES_256_GCM_SHA384 - TLS_RSA_WITH_AES_256_GCM_SHA384
clientAuth: clientAuth:
secretNames: secretNames:
- secretCA1 - secret-ca1
- secretUnknown - secret-unknown
- emptySecret - empty-secret
clientAuthType: VerifyClientCertIfGiven clientAuthType: VerifyClientCertIfGiven
--- ---

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCAdefault1 name: secret-ca-default1
namespace: foo namespace: foo
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCAdefault2 name: secret-ca-default2
namespace: foo namespace: foo
data: data:
@ -32,8 +32,8 @@ spec:
- TLS_RSA_WITH_AES_256_GCM_SHA384 - TLS_RSA_WITH_AES_256_GCM_SHA384
clientAuth: clientAuth:
secretNames: secretNames:
- secretCAdefault1 - secret-ca-default1
- secretCAdefault2 - secret-ca-default2
clientAuthType: VerifyClientCertIfGiven clientAuthType: VerifyClientCertIfGiven
preferServerCipherSuites: true preferServerCipherSuites: true

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA1 name: secret-ca1
namespace: default namespace: default
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA2 name: secret-ca2
namespace: default namespace: default
data: data:
@ -32,8 +32,8 @@ spec:
- TLS_RSA_WITH_AES_256_GCM_SHA384 - TLS_RSA_WITH_AES_256_GCM_SHA384
clientAuth: clientAuth:
secretNames: secretNames:
- secretCA1 - secret-ca1
- secretCA2 - secret-ca2
clientAuthType: VerifyClientCertIfGiven clientAuthType: VerifyClientCertIfGiven
preferServerCipherSuites: true preferServerCipherSuites: true

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: rootCas1 name: root-ca1
namespace: foo namespace: foo
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: rootCas2 name: root-ca2
namespace: foo namespace: foo
data: data:
@ -51,8 +51,8 @@ spec:
insecureSkipVerify: true insecureSkipVerify: true
maxIdleConnsPerHost: 42 maxIdleConnsPerHost: 42
rootCAsSecrets: rootCAsSecrets:
- rootCas1 - root-ca1
- rootCas2 - root-ca2
certificatesSecrets: certificatesSecrets:
- mtls1 - mtls1
- mtls2 - mtls2

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA1 name: secret-ca1
namespace: default namespace: default
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA2 name: secret-ca2
namespace: default namespace: default
data: data:
@ -32,8 +32,8 @@ spec:
- TLS_RSA_WITH_AES_256_GCM_SHA384 - TLS_RSA_WITH_AES_256_GCM_SHA384
clientAuth: clientAuth:
secretNames: secretNames:
- secretCA1 - secret-ca1
- secretCA2 - secret-ca2
clientAuthType: VerifyClientCertIfGiven clientAuthType: VerifyClientCertIfGiven
preferServerCipherSuites: true preferServerCipherSuites: true

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA1 name: secret-ca1
namespace: myns namespace: myns
data: data:
@ -11,7 +11,7 @@ data:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: secretCA2 name: secret-ca2
namespace: myns namespace: myns
data: data:
@ -32,8 +32,8 @@ spec:
- TLS_RSA_WITH_AES_256_GCM_SHA384 - TLS_RSA_WITH_AES_256_GCM_SHA384
clientAuth: clientAuth:
secretNames: secretNames:
- secretCA1 - secret-ca1
- secretCA2 - secret-ca2
clientAuthType: VerifyClientCertIfGiven clientAuthType: VerifyClientCertIfGiven
--- ---

View file

@ -8,7 +8,7 @@ metadata:
spec: spec:
tls: tls:
- secretName: myTlsSecret - secretName: my-tls-secret
rules: rules:
- host: example.com - host: example.com
http: http:
@ -27,7 +27,7 @@ metadata:
spec: spec:
tls: tls:
- secretName: myUndefinedSecret - secretName: my-undefined-secret
rules: rules:
- host: example.fail - host: example.fail
http: http:

View file

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: myTlsSecret name: my-tls-secret
namespace: testing namespace: testing
data: data: