mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
refact(e2e): Enable debug log level in velero deployment
Signed-off-by: w3aman <aman.gupta@mayadata.io>
This commit is contained in:
parent
7036f70496
commit
365ace1ecc
1 changed files with 22 additions and 0 deletions
|
|
@ -31,6 +31,28 @@
|
|||
--use-restic \
|
||||
--backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://minio.velero.svc:9000
|
||||
|
||||
- name: Get the velero deployment name
|
||||
shell: kubectl get deploy -n velero -l component=velero -o custom-columns=:.metadata.name --no-headers
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: velero_deployment
|
||||
|
||||
- name: Patch velero deployment to enable `debug` log-level
|
||||
shell: >
|
||||
kubectl patch deployment \
|
||||
{{ velero_deployment.stdout }} \
|
||||
--namespace velero \
|
||||
--type='json' \
|
||||
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/args", "value": [
|
||||
"server",
|
||||
"--features=",
|
||||
"--log-level=debug"
|
||||
]}]'
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: debug_patch_status
|
||||
failed_when: "debug_patch_status.rc != 0"
|
||||
|
||||
- name: Check velero server pod status
|
||||
shell: kubectl get pod -n velero -l deploy=velero -o jsonpath='{.items[0].status.phase}'
|
||||
register: velero_pod_status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue