platform

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 22 Imported by: 20

Documentation

Overview

Package platform allows to retrieve information about the current installed platform

Index

Constants

View Source
const BuilderServiceAccount = "camel-k-builder"

BuilderServiceAccount --

View Source
const (
	// DefaultPlatformName is the standard name used for the integration platform
	DefaultPlatformName = "camel-k"
)

Variables

View Source
var DefaultKits = []string{
	"platform-integration-kit-jvm.yaml",
	"platform-integration-kit-groovy.yaml",
	"platform-integration-kit-kotlin.yaml",
}

DefaultKits --

View Source
var KnativeKits = []string{
	"platform-integration-kit-knative.yaml",
}

KnativeKits --

Functions

func ConfigureDefaults

func ConfigureDefaults(ctx context.Context, c client.Client, p *v1.IntegrationPlatform, verbose bool) error

ConfigureDefaults fills with default values all missing details about the integration platform. Defaults are set in the status fields, not in the spec.

func Get

func Get(ctx context.Context, c k8sclient.Reader, namespace string, name string) (*v1.IntegrationPlatform, error)

Get returns the currently installed platform

func GetCurrentOperatorImage

func GetCurrentOperatorImage(ctx context.Context, c client.Client) (string, error)

GetCurrentOperatorImage returns the image currently used by the running operator if present (when running out of cluster, it may be absent).

func GetCurrentPlatform

func GetCurrentPlatform(ctx context.Context, c k8sclient.Reader, namespace string) (*v1.IntegrationPlatform, error)

GetCurrentPlatform returns the currently installed platform

func GetKits

func GetKits() []string

GetKits --

func GetKitsNames

func GetKitsNames() []string

GetKitsNames --

func GetOperatorNamespace

func GetOperatorNamespace() string

GetOperatorNamespace returns the namespace where the current operator is located (if set)

func GetOperatorPodName

func GetOperatorPodName() string

GetOperatorPodName returns the pod that is running the current operator (if any)

func GetOrLookupAny

func GetOrLookupAny(ctx context.Context, c k8sclient.Reader, namespace string, name string) (*v1.IntegrationPlatform, error)

GetOrLookupAny returns the named platform or any other platform in the namespace

func GetOrLookupCurrent

func GetOrLookupCurrent(ctx context.Context, c k8sclient.Reader, namespace string, name string) (*v1.IntegrationPlatform, error)

GetOrLookupCurrent --

func GetProfile

func GetProfile(p *v1.IntegrationPlatform) v1.TraitProfile

GetProfile returns the current profile of the platform (if present) or returns the default one for the cluster

func IsActive

func IsActive(p *v1.IntegrationPlatform) bool

IsActive determines if the given platform is being used

func IsCurrentOperatorGlobal

func IsCurrentOperatorGlobal() bool

IsCurrentOperatorGlobal returns true if the operator is configured to watch all namespaces

func ListPlatforms

func ListPlatforms(ctx context.Context, c k8sclient.Reader, namespace string) (*v1.IntegrationPlatformList, error)

ListPlatforms returns all platforms installed in a given namespace (only one will be active)

Types

This section is empty.

Jump to

Keyboard shortcuts

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