Skip to content

Commit

Permalink
Pre-Alpha Feature Gate: FleetAllocationOverflow
Browse files Browse the repository at this point in the history
Feature gate for work on googleforgames#2682
  • Loading branch information
markmandel committed Feb 13, 2023
1 parent eec3c87 commit 8f5b7b9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ KIND_CONTAINER_NAME=$(KIND_PROFILE)-control-plane
GS_TEST_IMAGE ?= us-docker.pkg.dev/agones-images/examples/simple-game-server:0.14

# Enable all alpha feature gates. Keep in sync with `false` (alpha) entries in pkg/util/runtime/features.go:featureDefaults
ALPHA_FEATURE_GATES ?= "PlayerAllocationFilter=true&PlayerTracking=true&ResetMetricsOnDelete=true&PodHostname=true&SplitControllerAndExtensions=true&CountsAndLists=true&Example=true"
ALPHA_FEATURE_GATES ?= "PlayerAllocationFilter=true&PlayerTracking=true&ResetMetricsOnDelete=true&PodHostname=true&SplitControllerAndExtensions=true&CountsAndLists=true&FleetAllocationOverflow=true&Example=true"

# Build with Windows support
WITH_WINDOWS=1
Expand Down
4 changes: 2 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,12 @@ steps:
do
if [ $cloudProduct = generic ]
then
featureWithGate="CustomFasSyncInterval=false&SafeToEvict=false&SDKGracefulTermination=false&StateAllocationFilter=false&PlayerAllocationFilter=true&PlayerTracking=true&ResetMetricsOnDelete=true&PodHostname=true&SplitControllerAndExtensions=true&Example=true"
featureWithGate="CustomFasSyncInterval=false&SafeToEvict=false&SDKGracefulTermination=false&StateAllocationFilter=false&PlayerAllocationFilter=true&PlayerTracking=true&ResetMetricsOnDelete=true&PodHostname=true&SplitControllerAndExtensions=true&FleetAllocationOverflow=true&Example=true"
featureWithoutGate=""
testClusterLocation="us-west1-c"
testCluster="e2e-test-cluster"
else
featureWithGate="CustomFasSyncInterval=false&SafeToEvict=true&SDKGracefulTermination=false&StateAllocationFilter=false&PlayerAllocationFilter=true&PlayerTracking=true&ResetMetricsOnDelete=true&PodHostname=true&SplitControllerAndExtensions=true&Example=true"
featureWithGate="CustomFasSyncInterval=false&SafeToEvict=true&SDKGracefulTermination=false&StateAllocationFilter=false&PlayerAllocationFilter=true&PlayerTracking=true&ResetMetricsOnDelete=true&PodHostname=true&SplitControllerAndExtensions=true&FleetAllocationOverflow=true&Example=true"
featureWithoutGate="SplitControllerAndExtensions=true"
testClusterLocation="us-west1"
testCluster="gke-autopilot-e2e-test-cluster-1-24"
Expand Down
1 change: 1 addition & 0 deletions install/helm/agones/defaultfeaturegates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ PlayerAllocationFilter: false
PlayerTracking: false
ResetMetricsOnDelete: false
PodHostname: false
FleetAllocationOverflow: false
SplitControllerAndExtensions: false

# Pre-Alpha features
Expand Down
7 changes: 6 additions & 1 deletion pkg/util/runtime/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ const (
////////////////
// "Pre"-Alpha features

// FeatureFleetAllocateOverflow enables setting labels and/or annotations on Allocated GameServers
// if the desired number of the underlying GameServerSet drops below the number of Allocated GameServers
FeatureFleetAllocateOverflow = "FleetAllocationOverflow"

// FeatureCountsAndLists is a feature flag that enables/disables counts and lists feature
// (a generic implenetation of the player tracking feature).
FeatureCountsAndLists Feature = "CountsAndLists"
Expand Down Expand Up @@ -118,7 +122,8 @@ var (
FeatureSplitControllerAndExtensions: false,

// Pre-Alpha features
FeatureCountsAndLists: false,
FeatureCountsAndLists: false,
FeatureFleetAllocateOverflow: false,

// Example feature
FeatureExample: false,
Expand Down

0 comments on commit 8f5b7b9

Please sign in to comment.