Skip to content

Commit

Permalink
Shorten name when setting security policy via namespace annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Apr 29, 2022
1 parent 4afdfce commit e4cb6c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion session-manager/handlers/application_vcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def vcluster_session_objects_list(application_properties):
"secretgen.carvel.dev/excluded-from-wildcard-matching": "",
f"training.{OPERATOR_API_GROUP}/session.role": "custom",
f"training.{OPERATOR_API_GROUP}/session.budget": "custom",
f"training.{OPERATOR_API_GROUP}/session.security.policy": "baseline",
f"training.{OPERATOR_API_GROUP}/session.policy": "baseline",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion session-manager/handlers/workshopsession.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ def resolve_security_policy(name):

target_security_policy = resolve_security_policy(
annotations.get(
f"training.{OPERATOR_API_GROUP}/session.security.policy",
f"training.{OPERATOR_API_GROUP}/session.policy",
namespace_security_policy,
)
)
Expand Down

0 comments on commit e4cb6c7

Please sign in to comment.