Documentation ¶
Index ¶
- func ClusterAutoscalerRequired(pools []extensionsv1alpha1.WorkerPool) bool
- func Decode(codecIDString string, data []byte) ([]byte, error)
- func GetDNSRecordTTL(ttl *int64) int64
- func GetDNSRecordType(address string) extensionsv1alpha1.DNSRecordType
- func ParseFileCodecID(s string) (extensionsv1alpha1.FileCodecID, error)
- type FileCodec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterAutoscalerRequired ¶
func ClusterAutoscalerRequired(pools []extensionsv1alpha1.WorkerPool) bool
ClusterAutoscalerRequired returns whether the given worker pool configuration indicates that a cluster-autoscaler is needed.
func Decode ¶ added in v1.35.0
Decode decodes the given data using the codec from resolving the given codecIDString. It's a shorthand for parsing the FileCodecID and calling the `Decode` method on the obtained FileCodec.
func GetDNSRecordTTL ¶ added in v1.27.0
GetDNSRecordTTL returns the value of the given ttl, or 120 if nil.
func GetDNSRecordType ¶ added in v1.27.0
func GetDNSRecordType(address string) extensionsv1alpha1.DNSRecordType
GetDNSRecordType returns the appropriate DNS record type (A or CNAME) for the given address.
func ParseFileCodecID ¶ added in v1.35.0
func ParseFileCodecID(s string) (extensionsv1alpha1.FileCodecID, error)
ParseFileCodecID tries to parse a string into a FileCodecID.
Types ¶
type FileCodec ¶ added in v1.35.0
FileCodec is a codec to en- and decode data in cloud-init scripts with.j
func FileCodecForID ¶ added in v1.35.0
func FileCodecForID(id extensionsv1alpha1.FileCodecID) FileCodec
FileCodecForID retrieves the FileCodec for the given FileCodecID.