forked from googleforgames/agones
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add API Changes and Validation for FleetAutoscaler Chain Policy (…
…googleforgames#3893) * Validation for new `FleetAutoscaler` `Chain` policy * Minor fixes to CRD for `Fleetautoscaler` `Chain` policy
- Loading branch information
1 parent
46c5ef9
commit 1ebec58
Showing
30 changed files
with
4,858 additions
and
1,849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
# Copyright 2024 Google LLC All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# | ||
# [Stage:Dev] | ||
# [FeatureFlag:ScheduledAutoscaler] | ||
# Example of a FleetAutoscaler - this is used to scale a Fleet based on a schedule. | ||
# | ||
|
||
# | ||
# For a full reference and details: https://agones.dev/site/docs/reference/fleetautoscaler/ | ||
# | ||
apiVersion: autoscaling.agones.dev/v1 | ||
kind: FleetAutoscaler | ||
metadata: | ||
name: schedule-fleet-autoscaler | ||
spec: | ||
fleetName: fleet-example | ||
policy: | ||
# Schedule based policy for autoscaling. | ||
type: Schedule | ||
schedule: | ||
between: | ||
# The policy becomes eligible for application starting on July 4th, 2024 at 4:04 PM PST. If not set, the policy will immediately be eligible for application. | ||
start: "2024-07-04T16:04:04-07:00" | ||
# The policy becomes ineligible for application on Sept 21, 2100 at 4:04 PM PST. If not set, the policy will always be eligible for application (after the start time). | ||
end: "2100-09-21T16:04:04-07:00" | ||
activePeriod: | ||
# Timezone to be used for the startCron field. Defaults to UTC if not set. | ||
timezone: "America/Los_Angeles" | ||
# Start applying the policy everyday at 1:00 AM PST. If not set, the policy will always be applied in the .between window. | ||
# (Only eligible starting on Feb 20, 2100 at 4:04 PM). | ||
startCron: "0 1 * * 0" | ||
# Only apply the policy for 5 hours. If not set, the duration will be defaulted to always/indefinite. | ||
duration: "5h" | ||
# Policy to be applied during the activePeriod. Required. | ||
policy: | ||
type: Buffer | ||
buffer: | ||
bufferSize: 50 | ||
minReplicas: 100 | ||
maxReplicas: 2000 | ||
# The autoscaling sync strategy, this will determine how frequent the schedule is evaluated. | ||
sync: | ||
# type of the sync. for now, only FixedInterval is available | ||
type: FixedInterval | ||
# parameters of the fixedInterval sync | ||
fixedInterval: | ||
# the time in seconds between each auto scaling | ||
seconds: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.