Skip to content

Commit

Permalink
fix: Add computation-control-service to internal-api-server's Network…
Browse files Browse the repository at this point in the history
…Policy allow list.
  • Loading branch information
renjiezh committed Sep 22, 2024
1 parent 23211c7 commit be0443c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/k8s/duchy.cue
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ import ("strings")
_object_prefix + "llv2-mill-app",
_object_prefix + "hmss-mill-app",
_object_prefix + "async-computation-control-server-app",
_object_prefix + "computation-control-server-app",
_object_prefix + "requisition-fulfillment-server-app",
_object_prefix + "computations-cleaner-app",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ fun ComputationToken.inputPathList(): List<String> =

/** Extract the [RoleInComputation] from a [ComputationToken]. */
fun ComputationToken.role(): RoleInComputation {
@Suppress("WHEN_ENUM_CAN_BE_NULL_IN_JAVA") // Proto enum fields are never null.
return when (computationDetails.protocolCase) {
ComputationDetails.ProtocolCase.LIQUID_LEGIONS_V2 -> computationDetails.liquidLegionsV2.role
ComputationDetails.ProtocolCase.REACH_ONLY_LIQUID_LEGIONS_V2 ->
Expand Down

0 comments on commit be0443c

Please sign in to comment.