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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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