service

package
v0.0.0-...-ea02baa Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Copyright 2018 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeElaResourceLabels

func MakeElaResourceLabels(s *v1alpha1.Service) map[string]string

MakeElaResourceLabels constructs the labels we will apply to Route and Configuration resources.

func MakeServiceConfiguration

func MakeServiceConfiguration(service *v1alpha1.Service) *v1alpha1.Configuration

MakeServiceConfiguration creates a Configuration from a Service object.

func MakeServiceRoute

func MakeServiceRoute(service *v1alpha1.Service, configName string) *v1alpha1.Route

MakeServiceRoute creates a Route from a Service object.

func NewController

func NewController(
	kubeClientSet kubernetes.Interface,
	elaClientSet clientset.Interface,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	elaInformerFactory informers.SharedInformerFactory,
	config *rest.Config,
	controllerConfig controller.Config,
	logger *zap.SugaredLogger) controller.Interface

NewController initializes the controller and is called by the generated code Registers eventhandlers to enqueue events

Types

type Controller

type Controller struct {
	*controller.Base
	// contains filtered or unexported fields
}

Controller implements the controller for Service resources. +controller:group=ela,version=v1alpha1,kind=Service,resource=services

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

Jump to

Keyboard shortcuts

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