Documentation
¶
Index ¶
- func CommaSeparatedFromStringList(sl []string) string
- func Create(config *restclient.Config, argocdNs string, arlonNs string, profileName string, ...) error
- func Delete(kubeClient *kubernetes.Clientset, ns string, profileName string) error
- func FromConfigMap(cm *v1.ConfigMap) (*arlonv1.Profile, error)
- func Get(config *restclient.Config, name string, ns string) (*arlonv1.Profile, error)
- func MakeOverridesMap(profile *arlonv1.Profile) (om common.KVPairMap)
- func StringListFromCommaSeparated(cs string) (sl []string)
- func Update(config *restclient.Config, argocdNs string, arlonNs string, profileName string, ...) (dirty bool, err error)
- type AugmentedProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 FromConfigMap ¶
func FromConfigMap(cm *v1.ConfigMap) (*arlonv1.Profile, error)
FromConfigMap retrieves a Gen1 profile, which is stored stored in a config map
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)
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)
Click to show internal directories.
Click to hide internal directories.