Documentation ¶
Index ¶
Constants ¶
View Source
const (
ServerObject = "server-object"
)
Variables ¶
View Source
var ( MesheryLabel = map[string]string{ "app": "meshery", } MeshSyncLabel = map[string]string{ "app": MesheryLabel["app"], "component": "meshery-istio", } MesheryAnnotation = map[string]string{ "meshery/component-type": "management-plane", } Deployment = &appsv1.Deployment{ ObjectMeta: metav1.ObjectMeta{ Name: "meshery-istio", Labels: MeshSyncLabel, Annotations: MesheryAnnotation, }, Spec: appsv1.DeploymentSpec{ Replicas: &val1, Selector: &metav1.LabelSelector{ MatchLabels: MeshSyncLabel, }, Template: PodTemplate, }, } PodTemplate = corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Name: "meshery-istio", Labels: MeshSyncLabel, Annotations: MesheryAnnotation, }, Spec: corev1.PodSpec{ ShareProcessNamespace: &valtrue, TerminationGracePeriodSeconds: &val60, Containers: []corev1.Container{ { Name: "meshery-istio", Image: "layer5/meshery-istio:edge-latest", ImagePullPolicy: corev1.PullAlways, Ports: []corev1.ContainerPort{ { Name: "client", HostPort: val11000, ContainerPort: val11000, }, }, Command: []string{ "./meshery-istio", }, }, }, }, } )
Functions ¶
func GetObjects ¶
func GetObjects(m *mesheryv1alpha1.Adapter) map[string]Object
Types ¶
Click to show internal directories.
Click to hide internal directories.