convert

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegistryV1ToHelmChart

func RegistryV1ToHelmChart(rv1 fs.FS, installNamespace string, watchNamespace string) (*chart.Chart, error)

Types

type Plain

type Plain struct {
	Objects []client.Object
}

func Convert

func Convert(in RegistryV1, installNamespace string, targetNamespaces []string) (*Plain, error)

type RegistryV1

type RegistryV1 struct {
	PackageName string
	CSV         v1alpha1.ClusterServiceVersion
	Others      []unstructured.Unstructured
}

func ParseFS

func ParseFS(rv1 fs.FS) (RegistryV1, error)

ParseFS converts the rv1 filesystem into a RegistryV1. ParseFS expects the filesystem to conform to the registry+v1 format: metadata/annotations.yaml manifests/

  • csv.yaml
  • ...

manifests directory does not contain subdirectories

Jump to

Keyboard shortcuts

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