Documentation
¶
Index ¶
- Constants
- Variables
- func NewServiceCommand(p *commands.KnParams) *cobra.Command
- func NewServiceCreateCommand(p *commands.KnParams) *cobra.Command
- func NewServiceDeleteCommand(p *commands.KnParams) *cobra.Command
- func NewServiceDescribeCommand(p *commands.KnParams) *cobra.Command
- func NewServiceExportCommand(p *commands.KnParams) *cobra.Command
- func NewServiceListCommand(p *commands.KnParams) *cobra.Command
- func NewServiceUpdateCommand(p *commands.KnParams) *cobra.Command
- func ServiceListHandlers(h hprinters.PrintHandler)
- type ConfigurationEditFlags
- func (p *ConfigurationEditFlags) AddCreateFlags(command *cobra.Command)
- func (p *ConfigurationEditFlags) AddUpdateFlags(command *cobra.Command)
- func (p *ConfigurationEditFlags) AnyMutation(cmd *cobra.Command) bool
- func (p *ConfigurationEditFlags) Apply(service *servingv1.Service, baseRevision *servingv1.Revision, ...) error
Constants ¶
View Source
const (
// How often to retry in case of an optimistic lock error when replacing a service (--force)
MaxUpdateRetries = 3
)
Variables ¶
View Source
var IGNORED_REVISION_ANNOTATIONS = []string{
"serving.knative.dev/lastPinned",
"serving.knative.dev/creator",
}
View Source
var IGNORED_SERVICE_ANNOTATIONS = []string{
"serving.knative.dev/creator",
"serving.knative.dev/lastModifier",
"kubectl.kubernetes.io/last-applied-configuration",
}
Functions ¶
func NewServiceDeleteCommand ¶
NewServiceDeleteCommand represent 'service delete' command
func NewServiceDescribeCommand ¶
NewServiceDescribeCommand returns a new command for describing a service.
func NewServiceExportCommand ¶ added in v0.13.0
NewServiceExportCommand returns a new command for exporting a service.
func NewServiceListCommand ¶
NewServiceListCommand represents 'kn service list' 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 int MinScale int MaxScale int ConcurrencyTarget int ConcurrencyLimit int ConcurrencyUtilization int AutoscaleWindow string Labels []string LabelsService []string LabelsRevision []string RevisionName string Annotations []string ClusterLocal bool // 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.
Click to show internal directories.
Click to hide internal directories.