Assign multiple distribution sets to a target via mgmt api (#886)
* Add multiassignment to mgmt api target endpoint * Remove single assignment ds to targets offline * Fix tests * Add quota for maxResultingActionsPerManualAssignment * Fix assignment with same target or distribution set multiple times in one request * Log UI error * Add tests * Enable single assignment requests with multiple DSs and types * Remove redundant target to DS assignment methods * Add tests, fix assignment * Fix possible nullpointer during target assignment request * Update api docu * Clean up deployment management code * Enforce MaxActions quota for offline assignment * Fix review findings * Rename property, add migration into * Add builder for DeploymentRequest * Change offline assignment method to accept an assignment list, like online assignment * Fix PR findings Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com>
This commit is contained in:
committed by
Stefan Behl
parent
dba972423b
commit
8687510131
@@ -245,15 +245,15 @@ public class HawkbitSecurityProperties {
|
||||
private int maxTargetsPerRolloutGroup = 20000;
|
||||
|
||||
/**
|
||||
* Maximum number of targets per rollout group
|
||||
* Maximum number of overall actions targets per target
|
||||
*/
|
||||
private int maxActionsPerTarget = 2000;
|
||||
|
||||
/**
|
||||
* Maximum number of targets for a manual distribution set assignment.
|
||||
* Must be greater than 1000.
|
||||
* Maximum number of actions resulting from a manual assignment of
|
||||
* distribution sets and targets. Must be greater than 1000.
|
||||
*/
|
||||
private int maxTargetsPerManualAssignment = 5000;
|
||||
private int maxTargetDistributionSetAssignmentsPerManualAssignment = 5000;
|
||||
|
||||
/**
|
||||
* Maximum number of targets for an automatic distribution set
|
||||
@@ -379,14 +379,15 @@ public class HawkbitSecurityProperties {
|
||||
this.maxActionsPerTarget = maxActionsPerTarget;
|
||||
}
|
||||
|
||||
public int getMaxTargetsPerManualAssignment() {
|
||||
return maxTargetsPerManualAssignment;
|
||||
public int getMaxTargetDistributionSetAssignmentsPerManualAssignment() {
|
||||
return maxTargetDistributionSetAssignmentsPerManualAssignment;
|
||||
}
|
||||
|
||||
public void setMaxTargetsPerManualAssignment(final int maxTargetsPerManualAssignment) {
|
||||
this.maxTargetsPerManualAssignment = maxTargetsPerManualAssignment;
|
||||
|
||||
public void setMaxTargetDistributionSetAssignmentsPerManualAssignment(
|
||||
final int maxTargetDistributionSetAssignmentsPerManualAssignment) {
|
||||
this.maxTargetDistributionSetAssignmentsPerManualAssignment = maxTargetDistributionSetAssignmentsPerManualAssignment;
|
||||
}
|
||||
|
||||
|
||||
public int getMaxTargetsPerAutoAssignment() {
|
||||
return maxTargetsPerAutoAssignment;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user