appgroups

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAppGroupsBranch

func AddAppGroupsBranch(tree treeprint.Tree, appGroups []AppGroup) error

AddAppGroupsBranch builds a tree for app-groups

func PushAppGroups

func PushAppGroups(pushDir, org, insightsToken, host string, deleteMissing, dryRun bool) error

PushAppGroups pushes app-groups to insights

Types

type AppGroup

type AppGroup struct {
	Name string       `json:"name,omitempty" yaml:"name,omitempty"`
	Spec AppGroupSpec `json:"spec" yaml:"spec"`
	Type string       `json:"type,omitempty" yaml:"type,omitempty"`
}

func FetchAppGroups

func FetchAppGroups(org, token, hostName string) ([]AppGroup, error)

FetchAppGroups queries Fairwinds Insights to retrieve all of the app-groups for an organization

func (AppGroup) GetName

func (a AppGroup) GetName() string

type AppGroupSpec

type AppGroupSpec struct {
	Exclude []AppGroupSpecCriteria `json:"exclude,omitempty" yaml:"exclude,omitempty"`
	Match   []AppGroupSpecCriteria `json:"match,omitempty" yaml:"match,omitempty"`
}

AppGroupSpec defines model for AppGroupSpec.

type AppGroupSpecCriteria

type AppGroupSpecCriteria struct {
	Clusters        []string         `json:"clusters,omitempty" yaml:"clusters,omitempty"`
	Containers      []string         `json:"containers,omitempty" yaml:"containers,omitempty"`
	Kinds           []string         `json:"kinds,omitempty" yaml:"kinds,omitempty"`
	Names           []string         `json:"names,omitempty" yaml:"names,omitempty"`
	Namespaces      []string         `json:"namespaces,omitempty" yaml:"namespaces,omitempty"`
	Repositories    []string         `json:"repositories,omitempty" yaml:"repositories,omitempty"`
	NamespaceLabels []map[string]any `json:"namespaceLabels,omitempty" yaml:"namespaceLabels,omitempty"`
	Labels          []map[string]any `json:"labels,omitempty" yaml:"labels,omitempty"`
}

AppGroupSpecCriteria defines model for AppGroupSpecCriteria.

Jump to

Keyboard shortcuts

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