diff --git a/charts/airbyte-pod-sweeper/templates/configmap.yaml b/charts/airbyte-pod-sweeper/templates/configmap.yaml index 627fe89b5197..084c12024ce5 100644 --- a/charts/airbyte-pod-sweeper/templates/configmap.yaml +++ b/charts/airbyte-pod-sweeper/templates/configmap.yaml @@ -1,4 +1,5 @@ --- + apiVersion: v1 kind: ConfigMap metadata: @@ -10,7 +11,7 @@ data: sweep-pod.sh: | #!/bin/bash get_worker_pods () { - kubectl -n ${KUBE_NAMESPACE} -L airbyte -l airbyte=worker-pod \ + kubectl -n ${KUBE_NAMESPACE} -L airbyte -l airbyte=job-pod \ --field-selector status.phase!=Running get pods \ -o=jsonpath='{range .items[*]} {.metadata.name} {.status.phase} {.status.conditions[0].lastTransitionTime} {.status.startTime}{"\n"}{end}' } @@ -47,4 +48,4 @@ data: done ) sleep 60 - done \ No newline at end of file + done diff --git a/kube/resources/pod-sweeper.yaml b/kube/resources/pod-sweeper.yaml index b2a35b3bc461..3f20cc23a7a7 100644 --- a/kube/resources/pod-sweeper.yaml +++ b/kube/resources/pod-sweeper.yaml @@ -7,7 +7,7 @@ data: #!/bin/bash get_worker_pods () { - kubectl -n ${KUBE_NAMESPACE} -L airbyte -l airbyte=worker-pod \ + kubectl -n ${KUBE_NAMESPACE} -L airbyte -l airbyte=job-pod \ --field-selector status.phase!=Running get pods \ -o=jsonpath='{range .items[*]} {.metadata.name} {.status.phase} {.status.conditions[0].lastTransitionTime} {.status.startTime}{"\n"}{end}' }