Documentation ¶
Index ¶
- Variables
- func CallExternalConverter(resourceName string, options map[string]string) (unstructured.Unstructured, error)
- func ComposeSharedVolumeToK8s(ref string, volume *ir.Volume) core.PersistentVolumeClaim
- func PatchDeployments(deployments []apps.Deployment, modifiedImages []string, ...)
- func PatchStatefulSets(statefulSets []apps.StatefulSet, modifiedImages []string, ...)
- type Objects
- type PortConfig
- type WithLabels
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // magic string to indicate that what follows isn't a value but a reference to a secret SecretRefMagic = "ylkBUFN0o29yr4yLCTUZqzgIT6qCIbyj" // magic string to indicate that what follows isn't a value but a fieldRef FieldRefMagic = "VtF2ZSrJBKSEJCiUVkGCyUawAfGBCwou" )
Functions ¶
func CallExternalConverter ¶ added in v0.3.1
func CallExternalConverter(resourceName string, options map[string]string) (unstructured.Unstructured, error)
func ComposeSharedVolumeToK8s ¶ added in v0.3.1
func ComposeSharedVolumeToK8s(ref string, volume *ir.Volume) core.PersistentVolumeClaim
func PatchDeployments ¶
func PatchDeployments(deployments []apps.Deployment, modifiedImages []string, forceRestartAnnotation map[string]string)
func PatchStatefulSets ¶
func PatchStatefulSets(statefulSets []apps.StatefulSet, modifiedImages []string, forceRestartAnnotation map[string]string)
Types ¶
type Objects ¶
type Objects struct { // Deployments Deployments []apps.Deployment StatefulSets []apps.StatefulSet Services []core.Service PersistentVolumeClaims []core.PersistentVolumeClaim Secrets []core.Secret Ingresses []networking.Ingress PodDisruptionBudgets []v1.PodDisruptionBudget Others []unstructured.Unstructured }
Objects combines all possible resources the conversion process could produce
func ComposeServiceToK8s ¶
type PortConfig ¶ added in v0.10.0
type PortConfig struct { Type core.ServiceType ExternalTrafficPolicy core.ServiceExternalTrafficPolicy HealthCheckNodePort int32 }
PortConfig only exists to be used as a map key (we can't use core.ServiceSpec)
type WithLabels ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.