# Functions
EnsureDefaultForGameServer ensure some default fields of GameServer.
EnsureDefaultPortType ensure default policyType of GameServer: LoaderBalancer.
EnsureDefaultsForGameServerSet ensure some default fields of GameServerSet.
EnsureDefaultsForSquad ensure some default fields of Squad.
EnsurePod add side car to the pod and create patch.
NewWebhookServer creates a new server.
ValidateGameServer validates the GameServer configuration.
ValidateGameServerSet validates when Create occurs, check name, label, annotaions and podSpec.
ValidateGameServerSetUpdate validate the GameServerSet update, only allow image, pullPolicy and replicas now.
ValidateGameServerUpdate validate the GameServer update, only allow image now.
ValidateSquad validates when Create occurs, check name, label, annotaions and podSpec.
ValidateSquadUpdate validate the Squad update, only allow image, pullPolicy for pod spec.
WithArgs add port to side car args.
WithEnvs add port envs to side car.
WithHealthCheck inject health check.
WithImageName add image.
WithResource add resource to sidecar.
# Constants
No description provided by the author
No description provided by the author
# Structs
SideCarConfig describes the config of sidecar.