Documentation ¶
Overview ¶
Package kubernetes provides data types and custom marshalers for Kubernetes API objects.
Interaction with the Kubernetes API should be handled by the kubectl subpackage.
Index ¶
- func ConstructK8sComponentsCM(components components.Components, clusterVersion string) (corev1.ConfigMap, error)
- func MarshalK8SResources(resources any) ([]byte, error)
- func MarshalK8SResourcesList(resources []runtime.Object) ([]byte, error)
- func UnmarshalK8SResources(data []byte, into any) error
- type ConfigMaps
- type Marshaler
- type Secrets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructK8sComponentsCM ¶
func ConstructK8sComponentsCM(components components.Components, clusterVersion string) (corev1.ConfigMap, error)
ConstructK8sComponentsCM creates a k8s-components config map for the given components.
func MarshalK8SResources ¶
MarshalK8SResources marshals every field of a struct into a k8s resource YAML.
func MarshalK8SResourcesList ¶
MarshalK8SResourcesList marshals every element of a slice into a k8s resource YAML.
func UnmarshalK8SResources ¶
UnmarshalK8SResources takes YAML and converts it into a k8s resources struct.
Types ¶
type ConfigMaps ¶
ConfigMaps represent a list of k8s ConfigMap.
func (ConfigMaps) Marshal ¶
func (s ConfigMaps) Marshal() ([]byte, error)
Marshal marshals config maps into multiple YAML documents.
Click to show internal directories.
Click to hide internal directories.