Skip to content

Commit

Permalink
getenv is better
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienduhamel committed Nov 30, 2023
1 parent dcf2633 commit 0692dfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from kubernetes import client, config

AWS_REGION = os.environ['AWS_REGION']
SYNC_INTERVAL = os.environ['SYNC_INTERVAL'] if 'SYNC_INTERVAL' in os.environ else 300
SYNC_EMPTY = os.environ['SYNC_EMPTY'] if 'SYNC_EMPTY' in os.environ else 'true'
AWS_TAG_KEY = os.environ['AWS_TAG_KEY'] if 'AWS_TAG_KEY' in os.environ else 'SyncedBy'
AWS_TAG_VALUE = os.environ['AWS_TAG_VALUE'] if 'AWS_TAG_VALUE' in os.environ else 'aws-secrets-synchronizer'
SYNC_INTERVAL = os.getenv('SYNC_INTERVAL', 300)
SYNC_EMPTY = os.getenv('SYNC_EMPTY', 'true')
AWS_TAG_KEY = os.getenv('AWS_TAG_KEY', 'SyncedBy')
AWS_TAG_VALUE = os.getenv('AWS_TAG_VALUE', 'aws-secret-synchronizer')


def get_base_logger(name=None):
Expand Down

0 comments on commit 0692dfb

Please sign in to comment.