...

Package manifests

import "edge-infra.dev/pkg/edge/linkerd/manifests"
Overview
Index

Overview ▾

Package manifests implements utility functions for mutating linkerd unstructured objects with custom configurations.

Any additions or modifications to linkerd manifests should be included within this pkg.

func MonitoringManifests

func MonitoringManifests() ([]*unstructured.Unstructured, error)

MonitoringManifests returns the linkerd monitoring objects. This includes pod monitors for linkerd-controller and linkerd-proxy

func ReadUnstructuredObjects

func ReadUnstructuredObjects(path string) ([]*unstructured.Unstructured, error)

ReadUnstructuredObjects reads json file from a file system and converts the multi-doc to unstructured.Unstructured objects

func Render

func Render(ctx context.Context, c client.Client, l5d l5dv1alpha1.Linkerd, renderingOpts []l5drender.Option, thickPos bool) ([]*unstructured.Unstructured, error)

Render will generate the linkerd manifests into an array of unstructured objects so we can apply with fluxcd/pkg/ssa

func WriteUnstructuredObjects

func WriteUnstructuredObjects(path string, uobjs []*unstructured.Unstructured, perm os.FileMode) error

WriteUnstructuredObjects writes the unstructured object as json multi-doc to file-system