Skip to content

Commit

Permalink
fix: e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Dec 12, 2024
1 parent 96afc53 commit e069ffd
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 10 deletions.
9 changes: 9 additions & 0 deletions config/tests/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

helmCharts:
- repo: oci://registry-1.docker.io/bitnamicharts
name: redis
version: 20.5.0
releaseName: redis
valuesInline:
auth:
enabled: false

images:
- name: ghcr.io/doodlescheduling/ratelimit-controller
newTag: latest
Expand Down
25 changes: 25 additions & 0 deletions config/tests/base/verify-pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: Pod
metadata:
name: verify
labels:
verify: yes
spec:
restartPolicy: OnFailure
containers:
- image: curlimages/curl:8.1.2
imagePullPolicy: IfNotPresent
name: verify
args:
- -v
- --fail
- http://ratelimit-ratelimit:8080/healthcheck
resources: {}
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsGroup: 1000
runAsNonRoot: true
runAsUser: 1000
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
5 changes: 3 additions & 2 deletions config/tests/cases/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ratelimit-system


resources:
- ../../base
- ratelimitdefinition.yaml
- ratelimitspecification.yaml
- ratelimitservice.yaml
- ratelimitrules.yaml
11 changes: 3 additions & 8 deletions config/tests/cases/default/ratelimitservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ spec:
- name: REDIS_SOCKET_TYPE
value: tcp
- name: REDIS_URL
value: redis-cluster-ratelimit:6379
value: redis-master:6379
- name: REDIS_TYPE
value: cluster
- name: REDIS_AUTH
valueFrom:
secretKeyRef:
key: auth
name: redis-ratelimit-auth
value: single
- name: REDIS_TLS
value: "false"
value: "false"

0 comments on commit e069ffd

Please sign in to comment.