service

package
v0.0.0-...-60a31f3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeReplay = "replay"
	ModeExport = "export"
)

Variables

View Source
var IgnoredRevisionAnnotations = []string{
	"serving.knative.dev/lastPinned",
	"serving.knative.dev/creator",
	"serving.knative.dev/routingStateModified",
	clientserving.UpdateTimestampAnnotationKey,
}

IgnoredRevisionAnnotations defines the annotation keys which should be removed from revision annotations before export

View Source
var IgnoredRevisionLabels = []string{
	"serving.knative.dev/configurationUID",
	"serving.knative.dev/serviceUID",
}

IgnoredRevisionLabels defines the label keys which should be removed from revision labels before export

View Source
var IgnoredServiceAnnotations = []string{
	"serving.knative.dev/creator",
	"serving.knative.dev/lastModifier",
	"kubectl.kubernetes.io/last-applied-configuration",
}

IgnoredServiceAnnotations defines the annotation keys which should be removed from service annotations before export

View Source
var IgnoredServiceLabels = []string{
	"serving.knative.dev/configurationUID",
	"serving.knative.dev/serviceUID",
}

IgnoredServiceLabels defines the label keys which should be removed from service labels before export

Functions

func NewServiceApplyCommand

func NewServiceApplyCommand(p *commands.KnParams) *cobra.Command

func NewServiceCommand

func NewServiceCommand(p *commands.KnParams) *cobra.Command

func NewServiceCreateCommand

func NewServiceCreateCommand(p *commands.KnParams) *cobra.Command

func NewServiceDeleteCommand

func NewServiceDeleteCommand(p *commands.KnParams) *cobra.Command

NewServiceDeleteCommand represent 'service delete' command

func NewServiceDescribeCommand

func NewServiceDescribeCommand(p *commands.KnParams) *cobra.Command

NewServiceDescribeCommand returns a new command for describing a service.

func NewServiceExportCommand

func NewServiceExportCommand(p *commands.KnParams) *cobra.Command

NewServiceExportCommand returns a new command for exporting a service.

func NewServiceImportCommand

func NewServiceImportCommand(p *commands.KnParams) *cobra.Command

NewServiceImportCommand returns a new command for importing a service.

func NewServiceListCommand

func NewServiceListCommand(p *commands.KnParams) *cobra.Command

NewServiceListCommand represents 'kn service list' command

func NewServiceUpdateCommand

func NewServiceUpdateCommand(p *commands.KnParams) *cobra.Command

func NewServiceWaitCommand

func NewServiceWaitCommand(p *commands.KnParams) *cobra.Command

NewServiceWaitCommand represents 'kn service wait' command

func ServiceListHandlers

func ServiceListHandlers(h hprinters.PrintHandler)

ServiceListHandlers adds print handlers for service list command

Types

type ConfigurationEditFlags

type ConfigurationEditFlags struct {
	//Fields for PodSpecFlags
	PodSpecFlags knflags.PodSpecFlags

	// Direct field manipulation
	Scale               string
	MinScale            int
	MaxScale            int
	ScaleActivation     int
	ScaleTarget         int
	ScaleMetric         string
	ConcurrencyLimit    int
	ScaleUtilization    int
	ScaleWindow         string
	Labels              []string
	LabelsService       []string
	LabelsRevision      []string
	RevisionName        string
	Annotations         []string
	AnnotationsService  []string
	AnnotationsRevision []string
	ClusterLocal        bool
	ScaleInit           int
	TimeoutSeconds      int64
	Profile             string

	// Preferences about how to do the action.
	LockToDigest         bool
	GenerateRevisionName bool
	ForceCreate          bool

	Filename string
	// contains filtered or unexported fields
}

func (*ConfigurationEditFlags) AddCreateFlags

func (p *ConfigurationEditFlags) AddCreateFlags(command *cobra.Command)

AddCreateFlags adds the flags specific to create

func (*ConfigurationEditFlags) AddUpdateFlags

func (p *ConfigurationEditFlags) AddUpdateFlags(command *cobra.Command)

AddUpdateFlags adds the flags specific to update.

func (*ConfigurationEditFlags) AnyMutation

func (p *ConfigurationEditFlags) AnyMutation(cmd *cobra.Command) bool

AnyMutation returns true if there are any revision template mutations in the command.

func (*ConfigurationEditFlags) Apply

func (p *ConfigurationEditFlags) Apply(
	service *servingv1.Service,
	baseRevision *servingv1.Revision,
	cmd *cobra.Command) error

Apply mutates the given service according to the flags in the command.

Jump to

Keyboard shortcuts

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