Documentation ¶
Index ¶
- Variables
- func DeploymentStrategy(maxSurge, maxUnavailability int32) appsv1.DeploymentStrategy
- func DropMetricsRelabeling(ctx *RenderContext) []*monitoringv1.RelabelConfig
- func ImageName(imageURL, tag string) string
- func Labels(name, component, app, version string) map[string]string
- func ToPointer[T any](o T) *T
- type HelmConfig
- type HelmFunc
- type RenderContext
- type RenderFunc
- type RuntimeObject
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypeMetaConfigmap = metav1.TypeMeta{ APIVersion: "v1", Kind: "ConfigMap", } TypeMetaBatchJob = metav1.TypeMeta{ APIVersion: "batch/v1", Kind: "Job", } TypeMetaNetworkPolicy = metav1.TypeMeta{ APIVersion: "networking.k8s.io/v1", Kind: "NetworkPolicy", } )
TODO(cw): find a better way to do this. Those values must exist in the appropriate places already.
View Source
var ( DeploymentType = metav1.TypeMeta{ APIVersion: "apps/v1", Kind: "Deployment", } ServiceType = metav1.TypeMeta{ APIVersion: "v1", Kind: "Service", } )
Functions ¶
func DeploymentStrategy ¶
func DeploymentStrategy(maxSurge, maxUnavailability int32) appsv1.DeploymentStrategy
func DropMetricsRelabeling ¶
func DropMetricsRelabeling(ctx *RenderContext) []*monitoringv1.RelabelConfig
Types ¶
type HelmConfig ¶
type RenderContext ¶
func NewRenderContext ¶
func NewRenderContext(cfg config.Config, namespace string) (*RenderContext, error)
NewRenderContext constructor function to create a new RenderContext with the values generated
type RenderFunc ¶
type RenderFunc func(cfg *RenderContext) ([]runtime.Object, error)
Renderable turns the config into a set of Kubernetes runtime objects
func CompositeRenderFunc ¶
func CompositeRenderFunc(f ...RenderFunc) RenderFunc
type RuntimeObject ¶
type RuntimeObject struct { metav1.TypeMeta `json:",inline"` Metadata metav1.ObjectMeta `json:"metadata"` Content string `json:"-"` }
func DependencySortingRenderFunc ¶
func DependencySortingRenderFunc(objects []RuntimeObject) ([]RuntimeObject, error)
func YamlToRuntimeObject ¶
func YamlToRuntimeObject(objects []string) ([]RuntimeObject, error)
Click to show internal directories.
Click to hide internal directories.