Skip to content

Commit

Permalink
migrate env check
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jan 30, 2024
1 parent d9073bd commit 1f24083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/argocd-cluster-watcher/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: argocd-cluster-watcher
description: Adds clusters from Rancher to ArgoCD via CRD objects
type: application

version: 0.0.3
version: 0.0.4

# App metadata
maintainers:
Expand Down
10 changes: 2 additions & 8 deletions charts/argocd-cluster-watcher/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,8 @@ data:
SHORTCLUSTERNAME=$(echo $CLUSTERS | jq -r --arg CLUSTERNAME "$CLUSTERNAME" '.[] | select(.name == $CLUSTERNAME) | .labels | ."{{ .Values.labelDomain }}/cluster_name"')
if [ $CLUSTERREALM != "platform" ]; then
echo "Skipping non-platform cluster" $FULLCLUSTERNAME
continue
fi
if [ $CLUSTERENVIRONMENT != "${local.workspace.environment_purpose}" ]; then
echo "Skipping non-${local.workspace.environment_purpose} cluster" $FULLCLUSTERNAME
if [ $CLUSTERENVIRONMENT != "{{ .Values.targetEnvironment }}" ]; then
echo "Skipping non-{{ .Values.targetEnvironment }} cluster" $FULLCLUSTERNAME
continue
fi
Expand Down

0 comments on commit 1f24083

Please sign in to comment.