-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add chainsaw e2e and passed a sample usercase (#25)
* feat: add kind config and add makefile phony * test: add chainsaw e2e, and add sample usercase to test passed
- Loading branch information
Showing
8 changed files
with
199 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
# Ignore build and test binaries. | ||
bin/ | ||
|
||
bundle.Dockerfile | ||
bundle.Dockerfile | ||
|
||
kind-kubeconfig |
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 |
---|---|---|
|
@@ -28,3 +28,5 @@ Dockerfile.cross | |
**/__debug_* | ||
|
||
bundle* | ||
|
||
kind-kubeconfig |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
kubeadmConfigPatches: | ||
- | | ||
kind: InitConfiguration | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
node-labels: "ingress-ready=true" | ||
extraPortMappings: | ||
- containerPort: 80 | ||
hostPort: 18080 | ||
protocol: TCP | ||
- containerPort: 443 | ||
hostPort: 18443 | ||
protocol: TCP |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: listenercsi-sample-csi | ||
status: | ||
(numberReady >= `1`): true | ||
|
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: listeners.zncdata.dev/v1alpha1 | ||
kind: ListenerCSI | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: listenercsi | ||
app.kubernetes.io/instance: listenercsi-sample | ||
app.kubernetes.io/part-of: listener-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: listener-operator | ||
name: listenercsi-sample | ||
spec: | ||
csiDriver: | ||
repository: quay.io/zncdata/listener-csi-driver | ||
tag: 0.0.1 | ||
pullPolicy: IfNotPresent | ||
logging: | ||
level: "10" | ||
nodeDriverRegistrar: | ||
repository: registry.k8s.io/sig-storage/csi-node-driver-registrar | ||
tag: v2.8.0 | ||
pullPolicy: IfNotPresent | ||
logging: | ||
level: "10" | ||
csiProvisioner: | ||
repository: registry.k8s.io/sig-storage/csi-provisioner | ||
tag: v3.5.0 | ||
pullPolicy: IfNotPresent | ||
logging: | ||
level: "10" | ||
livenessProbe: | ||
repository: registry.k8s.io/sig-storage/livenessprobe | ||
tag: v2.11.0 | ||
pullPolicy: IfNotPresent | ||
logging: | ||
level: "10" |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: nginx-pod | ||
status: | ||
phase: Running | ||
containerStatuses: | ||
- name: nginx-pod | ||
ready: true | ||
restartCount: 0 | ||
started: true |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: nginx-pod | ||
labels: | ||
name: nginx-pod | ||
spec: | ||
containers: | ||
- name: nginx-pod | ||
image: nginx:1.25 | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
ports: | ||
- containerPort: 80 | ||
name: http | ||
volumeMounts: | ||
- name: listener | ||
mountPath: /opt/zncdata/ | ||
readinessProbe: | ||
exec: | ||
command: ["sh", "-c", "ls /opt/zncdata/addresses | grep -q ."] | ||
initialDelaySeconds: 1 | ||
periodSeconds: 5 | ||
volumes: | ||
- name: listener | ||
ephemeral: | ||
volumeClaimTemplate: | ||
metadata: | ||
annotations: | ||
listeners.zncdata.dev/listener-class: cluster-internal | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
storageClassName: listeners.zncdata.dev | ||
resources: | ||
requests: | ||
storage: 1Mi |