kubernetesmetadata

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct {
	Inner renderers.Renderer
}

Renderer is the renderers.Renderer implementation for the kubernetesmetadata extension.

func (*Renderer) GetDependencyIDs

func (r *Renderer) GetDependencyIDs(ctx context.Context, resource v1.DataModelInterface) ([]resources.ID, []resources.ID, error)

GetDependencyIDs gets the IDs of the resources that the given resource depends on.

func (*Renderer) Render

Render checks if the given DataModelInterface is a ContainerResource, extracts the KubernetesMetadata extension, and processes annotations and labels for Kubernetes resources. It returns an error if the DataModelInterface is not a ContainerResource.

Jump to

Keyboard shortcuts

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