profile

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingBundles = errors.New("one or more supplied bundles don't exist")
)

Functions

func CommaSeparatedFromStringList

func CommaSeparatedFromStringList(sl []string) string

func Create

func Create(
	config *restclient.Config,
	argocdNs string,
	arlonNs string,
	profileName string,
	repoUrl string,
	repoBasePath string,
	repoRevision string,
	bundles []string,
	desc string,
	tags string,
	overrides []arlonv1.Override,
) error

func Delete

func Delete(cli client.Client, ns, profileName string) error

func DeleteLegacy added in v0.3.7

func DeleteLegacy(
	kubeClient *kubernetes.Clientset,
	ns string,
	profileName string,
) error

func FromConfigMap

func FromConfigMap(cm *v1.ConfigMap) (*arlonv1.Profile, error)

FromConfigMap retrieves a Gen1 profile, which is stored stored in a config map

func Get

func Get(config *restclient.Config, name string, ns string) (*arlonv1.Profile, error)

func MakeOverridesMap

func MakeOverridesMap(profile *arlonv1.Profile) (om common.KVPairMap)

func StringListFromCommaSeparated

func StringListFromCommaSeparated(cs string) (sl []string)

func Update

func Update(
	config *restclient.Config,
	argocdNs string,
	arlonNs string,
	profileName string,
	bundlesPtr []string,
	desc string,
	tags string,
	overrides []arlonv1.Override,
) (dirty bool, err error)

Update updates a profile to the specified set of bundles. Tags and description may also be updated. If bundlesPtr is nil, no change is made to the bundle set. Otherwise, *bundlesPtr specifies the new set.

Types

type AugmentedProfile

type AugmentedProfile struct {
	arlonv1.Profile
	Legacy bool // whether the profile is stored as a configmap
}

func GetAugmented

func GetAugmented(config *restclient.Config, name string, ns string) (*AugmentedProfile, error)

func List

func List(config *restclient.Config, ns string) (plist []AugmentedProfile, err error)

Jump to

Keyboard shortcuts

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