expose

package
v2.1.110 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// APIServicePathAnnotationKey the standard annotation to indicate the exposed URL should include an API path in addition to the domain name
	APIServicePathAnnotationKey = "api.service.kubernetes.io/path"

	// ExposeLabelKeys the labels used to indicate if a Service should be exposed
	ExposeLabelKeys = []string{"fabric8.io/expose", "jenkins-x.io/expose"}

	// ExposeAnnotationKey annotation on a Service to store its exposed URL
	ExposeAnnotationKey = "fabric8.io/exposeUrl"

	// ExposeHostNameAsAnnotationKey annotation to indicate the annotation name to expose the service host name
	ExposeHostNameAsAnnotationKey = "fabric8.io/exposeHostNameAs"

	// ExposePortAnnotationKey annotation to expose the service port
	ExposePortAnnotationKey = "fabric8.io/exposePort"
)

Functions

func IsExposedService

func IsExposedService(svc *corev1.Service) bool

IsExposedService returns true if this service should be exposed

func NewCmdStepExpose

func NewCmdStepExpose(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepExpose creates the command

Types

type StepExposeOptions

type StepExposeOptions struct {
	*opts.CommonOptions
	Dir             string
	IngressTemplate string
	Namespace       string
	LabelSelector   string
}

StepExposeOptions contains the command line flags

func (*StepExposeOptions) Run

func (o *StepExposeOptions) Run() error

Run runs the command

Jump to

Keyboard shortcuts

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