Skip to content

update discovery script to accept multiple skip labels#25

Merged
n-oden merged 3 commits into
mainfrom
jb/discovery-multiple-skip-labels
Apr 15, 2026
Merged

update discovery script to accept multiple skip labels#25
n-oden merged 3 commits into
mainfrom
jb/discovery-multiple-skip-labels

Conversation

@jzbyers

@jzbyers jzbyers commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

Updating the discovery script to accept multiple skip labels in REPLICA_SKIP_LABEL as a comma-separated list. Single-label input still works unchanged.

Comment thread bin/discovery.sh
replica_filter+=" AND NOT labels.${REPLICA_SKIP_LABEL}=true"
IFS=',' read -r -a replica_skip_labels <<<"${REPLICA_SKIP_LABEL}"
for replica_skip_label in "${replica_skip_labels[@]}"; do
replica_skip_label="${replica_skip_label#"${replica_skip_label%%[![:space:]]*}"}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're my kind of madman, but maybe a comment to explain what this and the next line are doing?

Comment thread charts/pgpool-cloudsql/Chart.yaml
@n-oden n-oden merged commit 1656b08 into main Apr 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants