Skip to content

Commit

Permalink
fix: testing adding imagePullSecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
bodom0015 committed May 21, 2024
1 parent 80b749d commit 560d6df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/kube.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,12 +615,12 @@ def create_userapp(username, email, userapp, spec_map):

service_account = backend_config['userapps']['service_account_name'] if 'userapps' in backend_config and 'service_account_name' in backend_config['userapps'] else None

secrets = None
if 'image' in app_spec and 'secrets' in app_spec['image']:
secrets = []
for secret_name in app_spec['image']['secrets']:
print(f'Adding secret: {secret_name}')
secrets.append({'name': secret_name})
else:
secrets = None

# Create one deployment per-stack (start with 0 replicas, aka "Stopped")
create_deployment(deployment_name=resource_name,
Expand Down Expand Up @@ -660,12 +660,12 @@ def create_userapp(username, email, userapp, spec_map):
service_account = backend_config['userapps']['service_account_name'] if 'userapps' in backend_config and 'service_account_name' in backend_config['userapps'] else None
app_spec = spec_map.get(userapp_key, None)

secrets = None
if 'image' in app_spec and 'secrets' in app_spec['image']:
secrets = []
for secret_name in app_spec['image']['secrets']:
print(f'Adding secret: {secret_name}')
secrets.append({ 'name': secret_name })
else:
secrets = None

# No need to collocate, since all will run in single pod
# Create one deployment per-stack (start with 0 replicas, aka "Stopped")
Expand Down

0 comments on commit 560d6df

Please sign in to comment.