Skip to content

Commit

Permalink
test: add test case for resource-name config
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsystem committed Dec 19, 2024
1 parent 8bd89e6 commit 0504785
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion test/resources/sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,4 +388,42 @@ metadata:
type: Opaque
stringData:
username: "user1"
password: "abcdefghijklmnopqrstuvwxyz"
password: "abcdefghijklmnopqrstuvwxyz"

---
apiVersion: v1
kind: Pod
metadata:
name: sidecar-pythonscript-resource-name
namespace: default
spec:
serviceAccountName: sample-acc
containers:
- name: sidecar
image: kiwigrid/k8s-sidecar:testing
volumeMounts:
- name: shared-volume
mountPath: /tmp/
- name: script-volume
mountPath: /opt/script.py
subPath: script.py
env:
- name: LABEL
value: "findme"
- name: FOLDER
value: /tmp/
- name: RESOURCE
value: both
- name: RESOURCE_NAME
value: configmap/sample-configmap,secret/sample-secret-binary
- name: SCRIPT
value: "/opt/script.py"
- name: LOG_LEVEL
value: "DEBUG"
volumes:
- name: shared-volume
emptyDir: { }
- name: script-volume
configMap:
name: script-configmap
defaultMode: 0777

0 comments on commit 0504785

Please sign in to comment.