Documentation ¶
Index ¶
- func ConnectCluster() *kubernetes.Clientset
- func GetClientSet(kubeconfigPath string) *kubernetes.Clientset
- func GetClusterName() string
- func GetKubeConfigPath() string
- func GetLabels(metadata metav1.ObjectMeta) map[string]string
- func GetUser(cluster string) (string, error)
- func ListApps(clientSet kubernetes.Interface, namespace string) (*v1.PodList, error)
- func PrintApps(mapApps map[string]App)
- func PrintLabels(mapApps map[string]App)
- func Run(filters AppFilters) error
- func SanitizeConfigMap(configMap []byte) string
- func TrimClusterName(cluster []byte) string
- type App
- type AppFilters
- type AppMatcher
- type AppsRun
- type Chart
- type ChartMatcher
- type ChartUpdate
- type Connection
- type JobContext
- type JobYaml
- type KubeContext
- type Matcher
- type RepoMatcher
- type Repository
- type TemplateField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectCluster ¶
func ConnectCluster() *kubernetes.Clientset
Initiate communication with cluster
func GetClientSet ¶
func GetClientSet(kubeconfigPath string) *kubernetes.Clientset
func Run ¶
func Run(filters AppFilters) error
func SanitizeConfigMap ¶
func TrimClusterName ¶
Remove the line feed on the cluster Name
Types ¶
type App ¶
type App struct { KubeContext KubeContext // contains filtered or unexported fields }
type AppFilters ¶
type AppFilters struct {
Filters []string
}
type AppMatcher ¶
type AppMatcher struct {
// contains filtered or unexported fields
}
func (AppMatcher) Matches ¶
func (r AppMatcher) Matches(s string) bool
type ChartMatcher ¶
type ChartMatcher struct {
// contains filtered or unexported fields
}
func (ChartMatcher) Matches ¶
func (r ChartMatcher) Matches(s string) bool
type ChartUpdate ¶
type ChartUpdate struct { Filename string AppFilters []string ChartFilters []string Apply bool RepoUpdate bool }
func (*ChartUpdate) Run ¶
func (c *ChartUpdate) Run() error
type Connection ¶
type Connection struct { KubeConfigPath string ClientSet *kubernetes.Clientset Cluster string }
func (Connection) NewConnection ¶
func (clusterConnection Connection) NewConnection() bool
type JobContext ¶
type KubeContext ¶
type RepoMatcher ¶
type RepoMatcher struct {
// contains filtered or unexported fields
}
func (RepoMatcher) Matches ¶
func (r RepoMatcher) Matches(s string) bool
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
type TemplateField ¶
func ListTemplateFields ¶
func ListTemplateFields(t *template.Template) []TemplateField
func NewField ¶
func NewField(node string) (TemplateField, error)
Click to show internal directories.
Click to hide internal directories.