mapper

package
v0.0.0-...-2601f63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateK8sResources

func CreateK8sResources(resourceList v1.ResourceList) models.K8sResources

func ResolveK8sServiceForK8sCronJob

func ResolveK8sServiceForK8sCronJob(services *v1.ServiceList, cronJob batchv1.CronJob) string

func ResolveK8sServiceForK8sDaemonSet

func ResolveK8sServiceForK8sDaemonSet(services *v1.ServiceList, daemonSet appsv1.DaemonSet) string

func ResolveK8sServiceForK8sDeployment

func ResolveK8sServiceForK8sDeployment(services *v1.ServiceList, deployment appsv1.Deployment) string

func ResolveK8sServiceForK8sStatefulSet

func ResolveK8sServiceForK8sStatefulSet(services *v1.ServiceList, statefulSet appsv1.StatefulSet) string

Types

type WorkloadMapper

type WorkloadMapper interface {
	MapCluster(clusterName string, nodes *v1.NodeList) (workload.Cluster, error)
	MapWorkloads(cluster workload.Cluster) ([]workload.Data, error)
}

func NewMapper

func NewMapper(
	kubernetesApi *kubernetes.API,
	clusterName string,
	workspaceId string,
	runId string) WorkloadMapper

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL