Skip to content

Commit

Permalink
Expose rollout group dynamic flag via REST (#1691)
Browse files Browse the repository at this point in the history
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
  • Loading branch information
avgustinmm committed Mar 15, 2024
1 parent 0dcf646 commit 50d34dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public class MgmtRolloutGroupResponseBody extends MgmtRolloutGroup {
@Schema(description = "Rollouts id", example = "63")
private Long rolloutGroupId;

@Schema(description = "If the rollout group is dynamic", example = "false")
private boolean dynamic;

@JsonProperty(required = true)
@Schema(description = "The status of this rollout", example = "ready")
private String status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ static MgmtRolloutGroupResponseBody toResponseRolloutGroup(final RolloutGroup ro
body.setConfirmationRequired(rolloutGroup.isConfirmationRequired());
}

body.setDynamic(rolloutGroup.isDynamic());

body.setSuccessCondition(new MgmtRolloutCondition(map(rolloutGroup.getSuccessCondition()),
rolloutGroup.getSuccessConditionExp()));
body.setSuccessAction(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,8 @@
@Slf4j
public class SetupHelper {

private static final String AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_ENABLED = "authentication.gatewaytoken.enabled";

/**
* Gateway token value.
*/
private static final String AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_KEY = "authentication.gatewaytoken.key";
private static final String AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_ENABLED = "authentication.gatewaytoken.enabled";
private static final String AUTHENTICATION_MODE_TARGET_SECURITY_TOKEN_ENABLED = "authentication.targettoken.enabled";

// if gateway toke is configured then the gateway auth is enabled key is set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public void updateAttribute(final String mode, final String key, final String va
}

void sendFeedback(final UpdateStatus updateStatus) {
log.debug(LOG_PREFIX + "Send feedback {} -> {}", getTenantId(), getControllerId(), currentActionId, updateStatus);
getDdiApi().postDeploymentBaseActionFeedback(
updateStatus.feedback(), getTenantId(), getControllerId(), currentActionId);
if (updateStatus.status() == UpdateStatus.Status.SUCCESSFUL ||
Expand Down

0 comments on commit 50d34dd

Please sign in to comment.