# Functions
EnableAllFeatures turns on all feature flags.
EncodeFeatures returns the feature set as a URL encoded query string.
FeatureEnabled returns if a Feature is enabled or not.
FeaturesBindEnv binds the environment variables, based on the flags provided.
FeaturesBindFlags does the Viper arguments configuration.
HandleError wraps runtime.HandleError so that it is possible to use WithField with logrus.
InClusterBuildConfig is a helper function that first attempts to build configurations using InClusterConfig().
Must panics if there is an error.
NewLoggerWithSource returns a logrus.Entry to use when you want to specify an source.
NewLoggerWithType returns a logrus.Entry to use when you want to use a data type as the source such as when you have a struct with methods.
NewServerMux returns a ServeMux which is a request multiplexer for grpc-gateway.
ParseFeatures parses the url encoded query string of features and stores the value for later retrieval.
ParseFeaturesFromEnv will parse the feature flags from the Viper args configured by FeaturesBindFlags() and FeaturesBindEnv().
SetLevel select level to filter logger output.
# Constants
FeatureAutopilotPassthroughPort is a feature flag that enables/disables Passthrough Port Policy.
FeatureCountsAndLists is a feature flag that enables counts and lists feature (a generic implenetation of the player tracking feature).
FeatureDisableResyncOnSDKServer is a feature flag to enable/disable resync on SDK server.
FeatureExample is an example feature gate flag, used for testing and demonstrative purposes.
FeatureGateFlag is a name of a command line flag, which turns on specific tests for FeatureGates.
FeatureGKEAutopilotExtendedDurationPods enables the use of Extended Duration pods when Agones is running on Autopilot.
FeaturePlayerAllocationFilter is a feature flag that enables the ability for Allocations to filter based on player capacity.
FeaturePlayerTracking is a feature flag to enable/disable player tracking features.
FeaturePortPolicyNone is a feature flag to allow setting Port Policy to None.
FeaturePortRanges is a feature flag to enable/disable specific port ranges.
FeatureRollingUpdateFix is a feature flag to enable/disable fleet controller fixes.
FeatureScheduledAutoscaler is a feature flag to enable/disable scheduled fleet autoscaling.
# Variables
FeatureTestMutex is a mutex to be shared between tests to ensure that a test that involves changing featureGates cannot accidentally run at the same time as another test that also changing feature flags.
# Type aliases
Feature is a type for defining feature gates.