Skip to content

Commit

Permalink
Merge pull request #115 from nerc-project/feature-rhods-support
Browse files Browse the repository at this point in the history
openshift: add rhods ns labels by default
  • Loading branch information
knikolla authored Oct 27, 2023
2 parents 240caa7 + 81ee0cf commit bce3374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/coldfront_plugin_cloud/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ def _create_project(self, project_name, project_id):
headers = {"Content-type": "application/json"}
annotations = {"cf_project_id": str(self.allocation.project_id),
"cf_pi": self.allocation.project.pi.username}
labels = {'opendatahub.io/dashboard': True}

payload = {"displayName": project_name,
"annotations": annotations}
"annotations": annotations,
"labels": labels}
r = self.session.put(url, data=json.dumps(payload), headers=headers)
self.check_response(r)

Expand Down

0 comments on commit bce3374

Please sign in to comment.