Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapEtcHosts ¶
MapEtcHosts maps the /etc/hosts file into the pod (useful for gossip DNS)
func MarkPodAsClusterCritical ¶ added in v1.15.1
MarkPodAsClusterCritical sets the pod priority to system-cluster-critical
func MarkPodAsCritical ¶
MarkPodAsCritical adds the required annotations for a pod to be considered critical
func MarkPodAsNodeCritical ¶ added in v1.15.1
MarkPodAsNodeCritical sets the pod priority to system-node-critical
Types ¶
type ImageRemapFunction ¶
type Object ¶ added in v1.19.0
type Object struct {
// contains filtered or unexported fields
}
Object holds arbitrary untyped kubernetes objects; it is used when we don't have the type definitions for them
func LoadObjectsFrom ¶ added in v1.19.0
LoadObjectsFrom parses multiple objects from a yaml file
func (*Object) APIVersion ¶ added in v1.19.0
APIVersion returns the apiVersion field of the object, or "" if it cannot be found or is invalid
func (*Object) IsEmptyObject ¶ added in v1.19.0
IsEmptyObject checks if the object has no keys set (i.e. `== {}`)
func (*Object) Kind ¶ added in v1.19.0
Kind returns the kind field of the object, or "" if it cannot be found or is invalid
func (*Object) RemapImages ¶ added in v1.19.0
func (m *Object) RemapImages(mapper ImageRemapFunction) error