funktion

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// KindLabel is the label key used on ConfigMaps to indicate the kind of resource
	KindLabel = "funktion.fabric8.io/kind"

	// ConnectorLabel is the label key used on a ConfigMap to refer to a Connector
	ConnectorLabel = "connector"

	// RuntimeLabel is the label key used on a ConfigMap to refer to a Runtime
	RuntimeLabel = "runtime"
	// ProjectLabel the name of the folder where the source comes from
	ProjectLabel = "project"

	// ConnectorKind is the value of a Connector fo the KindLabel
	ConnectorKind = "Connector"
	// FlowKind is the value of a Flow fo the KindLabel
	FlowKind = "Flow"
	// RuntimeKind is the value of a Runtime fo the KindLabel
	RuntimeKind = "Runtime"
	// FunctionKind is the value of a Function fo the KindLabel
	FunctionKind = "Function"
	// DeploymentKind is the value of a Deployment fo the KindLabel
	DeploymentKind = "Deployment"
	// ServiceKind is the value of a ConneServicector fo the KindLabel
	ServiceKind = "Service"

	// ChromeDevToolsAnnotation boolean annotation to indicate chrome dev tools is enabled
	// and that the URL will appear in the pods log
	ChromeDevToolsAnnotation = "funktion.fabric8.io/chromeDevTools"

	// VersionLabel the version of the runtime
	VersionLabel = "version"

	// FileExtensionsProperty a comma separated list of file extensions (without the dot) which are handled by this runtime
	FileExtensionsProperty = "fileExtensions"

	// SourceMountPathProperty the path in the docker image where we should mount the source code
	SourceMountPathProperty = "sourceMountPath"
)
View Source
const (

	// DeploymentYmlProperty data key for the deployment yaml file
	DeploymentYmlProperty = "deployment.yml"

	// SchemaYmlProperty data key for the schema (JSON schema as YAML) file
	SchemaYmlProperty = "schema.yml"

	// FunktionYmlProperty the data key for the funktion yaml file
	FunktionYmlProperty = "funktion.yml"

	// ApplicationPropertiesProperty is the data key for the spring boot application.properties file
	ApplicationPropertiesProperty = "application.properties"

	// ApplicationYmlProperty is the data key for the spring boot application.yml file
	ApplicationYmlProperty = "application.yml"

	// SourceProperty is the data key for the source code in a Function ConfigMap
	SourceProperty = "source"
	// DebugProperty is the data key for whether to enable debugging in a Function ConfigMap
	DebugProperty = "debug"
	// EnvVarsProperty represents a newline terminated list of NAME=VALUE expressions for environment variables
	EnvVarsProperty = "envVars"

	// ExposeLabel is the label key to expose services
	ExposeLabel = "expose"

	// DeploymentProperty is the data key for a Runtime's Deployment
	DeploymentProperty = "deployment"
	// DeploymentDebugProperty is the data key for a Runtime's Debug Deployment
	DeploymentDebugProperty = "deploymentDebug"
	// ServiceProperty is the data key for a Runtime's Service
	ServiceProperty = "service"
	// DebugPortProperty is the data key for a Runtime's debug port
	DebugPortProperty = "debugPort"

	// ConfigMapControllerAnnotation is the annotation for the configmapcontroller
	ConfigMapControllerAnnotation = "configmap.fabric8.io/update-on-change"

	// Deployment
	// NameLabel is the name label for Deployments
	NameLabel = "name"
)

Variables

This section is empty.

Functions

func CreateConnectorListOptions

func CreateConnectorListOptions() (*api.ListOptions, error)

CreateConnectorListOptions returns the default selector for Connector resources

func CreateFlowListOptions added in v1.0.5

func CreateFlowListOptions() (*api.ListOptions, error)

CreateFlowListOptions returns the default selector for Flow resources

func CreateFunctionListOptions

func CreateFunctionListOptions() (*api.ListOptions, error)

CreateFunctionListOptions returns the default selector for Function resources

func CreateRuntimeListOptions

func CreateRuntimeListOptions() (*api.ListOptions, error)

CreateRuntimeListOptions returns the default selector for Runtime resources

func HumanizeString added in v0.0.4

func HumanizeString(text string) string

HumanizeString converts a camelCase text string into a textual label by capitalising and separating camelcase words with a space

func LoadConnectorSchema added in v0.0.4

func LoadConnectorSchema(yamlData []byte) (*spec.ConnectorSchema, error)

func NewConfigMapListWatch

func NewConfigMapListWatch(client *kubernetes.Clientset, listOpts api.ListOptions, namespace string) *cache.ListWatch

NewConfigMapListWatch returns a new ListWatch for ConfigMaps with the given listOptions

func NewServiceListWatch

func NewServiceListWatch(client *kubernetes.Clientset, namespace string) *cache.ListWatch

NewServiceListWatch creates a watch on services

func ToSpringBootPropertyName added in v0.0.4

func ToSpringBootPropertyName(text string) string

func UnCamelCaseString added in v0.0.4

func UnCamelCaseString(text string, separator string) string

UnCamelCaseString converts a camelCase text string into a space separated string

Types

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

Operator manages Funktion Deployments

func New

func New(cfg *rest.Config, logger log.Logger, namespace string) (*Operator, error)

New creates a new controller.

func (*Operator) Run

func (c *Operator) Run(stopc <-chan struct{}) error

Run the controller.

type ResourceKey

type ResourceKey struct {
	Kind string
	Key  string
}

ResourceKey represents a kind and a key

Jump to

Keyboard shortcuts

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