-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): Disable bindings for e2e tests
- Loading branch information
Showing
2 changed files
with
56 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 55 additions & 55 deletions
110
tests/chainsaw/operator-registration/chainsaw-test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
name: operator-registration | ||
spec: | ||
steps: | ||
- name: assert KubernetesOperator/ngrok-operator is registered | ||
try: | ||
- assert: | ||
resource: | ||
apiVersion: ngrok.k8s.ngrok.com/v1alpha1 | ||
kind: KubernetesOperator | ||
metadata: | ||
name: ngrok-operator | ||
namespace: ngrok-operator | ||
spec: | ||
deployment: | ||
name: ngrok-operator | ||
namespace: ngrok-operator | ||
enabledFeatures: | ||
- ingress | ||
- bindings | ||
# - gateway | ||
binding: | ||
tlsSecretName: ngrok-operator-default-tls | ||
(name != null && starts_with(name, 'k8s/')): true | ||
status: | ||
registrationStatus: registered | ||
(id != null && starts_with(id, 'k8sop_')): true | ||
(uri != null): true | ||
# apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
# kind: Test | ||
# metadata: | ||
# name: operator-registration | ||
# spec: | ||
# steps: | ||
# - name: assert KubernetesOperator/ngrok-operator is registered | ||
# try: | ||
# - assert: | ||
# resource: | ||
# apiVersion: ngrok.k8s.ngrok.com/v1alpha1 | ||
# kind: KubernetesOperator | ||
# metadata: | ||
# name: ngrok-operator | ||
# namespace: ngrok-operator | ||
# spec: | ||
# deployment: | ||
# name: ngrok-operator | ||
# namespace: ngrok-operator | ||
# enabledFeatures: | ||
# - ingress | ||
# - bindings | ||
# # - gateway | ||
# binding: | ||
# tlsSecretName: ngrok-operator-default-tls | ||
# (name != null && starts_with(name, 'k8s/')): true | ||
# status: | ||
# registrationStatus: registered | ||
# (id != null && starts_with(id, 'k8sop_')): true | ||
# (uri != null): true | ||
|
||
- name: assert Secret/ngrok-operator-default-tls exists (CSR is signed) | ||
try: | ||
- assert: | ||
resource: | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: ngrok-operator-default-tls | ||
namespace: ngrok-operator | ||
type: kubernetes.io/tls | ||
data: | ||
("tls.crt" != null): true | ||
("tls.csr" != null): true | ||
("tls.key" != null): true | ||
# - name: assert Secret/ngrok-operator-default-tls exists (CSR is signed) | ||
# try: | ||
# - assert: | ||
# resource: | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# metadata: | ||
# name: ngrok-operator-default-tls | ||
# namespace: ngrok-operator | ||
# type: kubernetes.io/tls | ||
# data: | ||
# ("tls.crt" != null): true | ||
# ("tls.csr" != null): true | ||
# ("tls.key" != null): true | ||
|
||
- name: assert Configmap/ngrok-intermediate-ca exists (tunnels/forwarders will work) | ||
try: | ||
- assert: | ||
resource: | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ngrok-intermediate-ca | ||
namespace: ngrok-operator | ||
data: | ||
("root.crt" != null): true | ||
# - name: assert Configmap/ngrok-intermediate-ca exists (tunnels/forwarders will work) | ||
# try: | ||
# - assert: | ||
# resource: | ||
# apiVersion: v1 | ||
# kind: ConfigMap | ||
# metadata: | ||
# name: ngrok-intermediate-ca | ||
# namespace: ngrok-operator | ||
# data: | ||
# ("root.crt" != null): true |