Skip to content

Commit

Permalink
Updated callback to allow user supplied role name via env variables (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mpritter76 authored and CyberDem0n committed Aug 9, 2018
1 parent ce79e2e commit 7a7d651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-appliance/scripts/callback_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
logger = logging.getLogger(__name__)

NUM_ATTEMPTS = 10
LABEL = 'spilo-role'
LABEL = os.environ.get("KUBERNETES_ROLE_LABEL",'spilo-role')


def read_first_line(filename):
Expand Down

0 comments on commit 7a7d651

Please sign in to comment.