Skip to content

Commit

Permalink
Merge pull request #464 from UrbanOS-Public/sauron-remove-specific-na…
Browse files Browse the repository at this point in the history
…mespace

Sauron remove specific namespace
  • Loading branch information
c-m-duncan authored May 10, 2023
2 parents 581e2a7 + 0a479b7 commit c65430b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/sauron/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: Cron jobs that watch remote deployments and images, issuing cluster commands as needed to update.
name: sauron
version: 0.0.16
version: 0.0.17
2 changes: 1 addition & 1 deletion charts/sauron/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sauron

![Version: 0.0.16](https://img.shields.io/badge/Version-0.0.16-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)
![Version: 0.0.17](https://img.shields.io/badge/Version-0.0.17-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)

Cron jobs that watch remote deployments and images, issuing cluster commands as needed to update.

Expand Down
4 changes: 2 additions & 2 deletions charts/sauron/templates/sauron-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data:
echo "POD_NAME:"
printf "%s \n\n" "$POD_NAME"
POD_IMAGE_TAG=$(kubectl get pod --namespace=dev "$POD_NAME" -o json | jq '.status.containerStatuses[] | .image ' | cut -d ':' -f 2 | sed 's/"//g' | tr -d '[:space:]')
POD_IMAGE_TAG=$(kubectl get pod --namespace="$NAMESPACE" "$POD_NAME" -o json | jq '.status.containerStatuses[] | .image ' | cut -d ':' -f 2 | sed 's/"//g' | tr -d '[:space:]')
echo "POD_IMAGE_TAG:"
printf "%s \n\n" "$POD_IMAGE_TAG"
Expand Down Expand Up @@ -79,7 +79,7 @@ data:
return
fi
CURRENT_DIGEST=$(kubectl get pod --namespace=dev $POD_NAME -o json | jq '.status.containerStatuses[] | .imageID ' | cut -d '@' -f 2 | sed 's/"//g' | tr -d '[:space:]')
CURRENT_DIGEST=$(kubectl get pod --namespace="$NAMESPACE" $POD_NAME -o json | jq '.status.containerStatuses[] | .imageID ' | cut -d '@' -f 2 | sed 's/"//g' | tr -d '[:space:]')
echo "CURRENT_DIGEST:"
echo "$CURRENT_DIGEST"
CURRENT_DIGEST_LENGTH=${#CURRENT_DIGEST}
Expand Down

0 comments on commit c65430b

Please sign in to comment.