Debian Codegraph @

api/types/replica.go

raw
1 // Copyright 2019 The Kubernetes Authors.
2 // SPDX-License-Identifier: Apache-2.0
3
4 package types
5
6 // Replica specifies a modification to a replica config.
7 // The number of replicas of a resource whose name matches will be set to count.
8 // This struct is used by the ReplicaCountTransform, and is meant to supplement
9 // the existing patch functionality with a simpler syntax for replica configuration.
10 type Replica struct {
11 // The name of the resource to change the replica count
12 Name string `json:"name,omitempty" yaml:"name,omitempty"`
13
14 // The number of replicas required.
15 Count int64 `json:"count" yaml:"count"`
16 }