Documentation ¶
Index ¶
- Constants
- Variables
- func InitActionConfig(ctx context.Context, kubeInitializer KubeInitializer, ...) error
- func NewGVKBuilder(discoveryShortcutExpander meta.RESTMapper) externaldeps.GVKBuilder
- type ExternalDepsAnnotationsParser
- type ExtraAnnotationsAndLabelsPostRenderer
- type ExtraAnnotationsMutator
- type ExtraLabelsMutator
- type GVKBuilder
- type HelmKubeClientExtender
- type InitActionConfigOptions
- type KubeInitializer
- type PostRendererChain
- type ResourcesWaiter
- func (waiter *ResourcesWaiter) Wait(ctx context.Context, resources helm_kube.ResourceList, timeout time.Duration) error
- func (waiter *ResourcesWaiter) WaitUntilDeleted(ctx context.Context, specs []*helm_kube.ResourcesWaiterDeleteResourceSpec, ...) error
- func (waiter *ResourcesWaiter) WatchUntilReady(ctx context.Context, resources helm_kube.ResourceList, timeout time.Duration) error
- type ServiceAnnotationsMutator
- type StagesExternalDepsGenerator
- type StagesSplitter
Constants ¶
View Source
const ( TrackTerminationModeAnnoName = "werf.io/track-termination-mode" FailModeAnnoName = "werf.io/fail-mode" FailuresAllowedPerReplicaAnnoName = "werf.io/failures-allowed-per-replica" LogRegexAnnoName = "werf.io/log-regex" LogRegexForAnnoPrefix = "werf.io/log-regex-for-" IgnoreReadinessProbeFailsForPrefix = "werf.io/ignore-readiness-probe-fails-for-" NoActivityTimeoutName = "werf.io/no-activity-timeout" SkipLogsAnnoName = "werf.io/skip-logs" SkipLogsForContainersAnnoName = "werf.io/skip-logs-for-containers" ShowLogsOnlyForContainers = "werf.io/show-logs-only-for-containers" ShowLogsUntilAnnoName = "werf.io/show-logs-until" ShowEventsAnnoName = "werf.io/show-service-messages" ReplicasOnCreationAnnoName = "werf.io/replicas-on-creation" StageWeightAnnoName = "werf.io/weight" ExternalDependencyResourceAnnoName = "external-dependency.werf.io/resource" ExternalDependencyNamespaceAnnoName = "external-dependency.werf.io/namespace" )
Variables ¶
View Source
var WerfRuntimeAnnotations = map[string]string{ "werf.io/version": werf.Version, }
View Source
var WerfRuntimeLabels = map[string]string{}
Functions ¶
func InitActionConfig ¶ added in v1.2.0
func InitActionConfig(ctx context.Context, kubeInitializer KubeInitializer, releaseName, namespace string, envSettings *cli.EnvSettings, actionConfig *action.Configuration, opts InitActionConfigOptions, extraMutators []mutator.RuntimeResourceMutator) error
func NewGVKBuilder ¶ added in v1.2.116
func NewGVKBuilder(discoveryShortcutExpander meta.RESTMapper) externaldeps.GVKBuilder
Types ¶
type ExternalDepsAnnotationsParser ¶ added in v1.2.116
type ExternalDepsAnnotationsParser struct {
// contains filtered or unexported fields
}
func NewExternalDepsAnnotationsParser ¶ added in v1.2.116
func NewExternalDepsAnnotationsParser(defaultNamespace string) *ExternalDepsAnnotationsParser
func (*ExternalDepsAnnotationsParser) Parse ¶ added in v1.2.116
func (s *ExternalDepsAnnotationsParser) Parse(annotations map[string]string) (externaldeps.ExternalDependencyList, error)
type ExtraAnnotationsAndLabelsPostRenderer ¶ added in v1.2.0
type ExtraAnnotationsAndLabelsPostRenderer struct { ExtraAnnotations map[string]string ExtraLabels map[string]string IgnoreInvalidAnnotationsAndLabels bool // contains filtered or unexported fields }
func NewExtraAnnotationsAndLabelsPostRenderer ¶ added in v1.2.0
func NewExtraAnnotationsAndLabelsPostRenderer(extraAnnotations, extraLabels map[string]string, ignoreInvalidAnnotationsAndLabels bool) *ExtraAnnotationsAndLabelsPostRenderer
func (*ExtraAnnotationsAndLabelsPostRenderer) Add ¶ added in v1.2.0
func (pr *ExtraAnnotationsAndLabelsPostRenderer) Add(extraAnnotations, extraLabels map[string]string)
type ExtraAnnotationsMutator ¶ added in v1.2.234
type ExtraAnnotationsMutator struct {
// contains filtered or unexported fields
}
func NewExtraAnnotationsMutator ¶ added in v1.2.234
func NewExtraAnnotationsMutator(extraAnnos map[string]string) *ExtraAnnotationsMutator
func (*ExtraAnnotationsMutator) Mutate ¶ added in v1.2.234
func (m *ExtraAnnotationsMutator) Mutate(res resource.Resourcer, operationType common.ClientOperationType) (resource.Resourcer, error)
type ExtraLabelsMutator ¶ added in v1.2.234
type ExtraLabelsMutator struct {
// contains filtered or unexported fields
}
func NewExtraLabelsMutator ¶ added in v1.2.234
func NewExtraLabelsMutator(extraLabels map[string]string) *ExtraLabelsMutator
func (*ExtraLabelsMutator) Mutate ¶ added in v1.2.234
func (m *ExtraLabelsMutator) Mutate(res resource.Resourcer, operationType common.ClientOperationType) (resource.Resourcer, error)
type GVKBuilder ¶ added in v1.2.116
type GVKBuilder struct {
// contains filtered or unexported fields
}
func (*GVKBuilder) BuildFromResource ¶ added in v1.2.116
func (b *GVKBuilder) BuildFromResource(resource string) (*schema.GroupVersionKind, error)
type HelmKubeClientExtender ¶ added in v1.2.6
type HelmKubeClientExtender struct{}
func NewHelmKubeClientExtender ¶ added in v1.2.6
func NewHelmKubeClientExtender() *HelmKubeClientExtender
func (*HelmKubeClientExtender) BeforeCreateResource ¶ added in v1.2.6
func (extender *HelmKubeClientExtender) BeforeCreateResource(info *resource.Info) error
func (*HelmKubeClientExtender) BeforeDeleteResource ¶ added in v1.2.6
func (extender *HelmKubeClientExtender) BeforeDeleteResource(info *resource.Info) error
func (*HelmKubeClientExtender) BeforeUpdateResource ¶ added in v1.2.6
func (extender *HelmKubeClientExtender) BeforeUpdateResource(info *resource.Info) error
type InitActionConfigOptions ¶ added in v1.2.0
type KubeInitializer ¶ added in v1.2.4
type PostRendererChain ¶ added in v1.2.37
type PostRendererChain struct {
PostRenderers []postrender.PostRenderer
}
func NewPostRendererChain ¶ added in v1.2.37
func NewPostRendererChain(postRenderers ...postrender.PostRenderer) *PostRendererChain
type ResourcesWaiter ¶
type ResourcesWaiter struct { KubeInitializer KubeInitializer Client *helm_kube.Client LogsFromTime time.Time StatusProgressPeriod time.Duration HooksStatusProgressPeriod time.Duration }
func NewResourcesWaiter ¶ added in v1.2.0
func NewResourcesWaiter(kubeInitializer KubeInitializer, client *helm_kube.Client, logsFromTime time.Time, statusProgressPeriod, hooksStatusProgressPeriod time.Duration) *ResourcesWaiter
func (*ResourcesWaiter) Wait ¶ added in v1.2.0
func (waiter *ResourcesWaiter) Wait(ctx context.Context, resources helm_kube.ResourceList, timeout time.Duration) error
func (*ResourcesWaiter) WaitUntilDeleted ¶ added in v1.2.0
func (waiter *ResourcesWaiter) WaitUntilDeleted(ctx context.Context, specs []*helm_kube.ResourcesWaiterDeleteResourceSpec, timeout time.Duration) error
func (*ResourcesWaiter) WatchUntilReady ¶
func (waiter *ResourcesWaiter) WatchUntilReady(ctx context.Context, resources helm_kube.ResourceList, timeout time.Duration) error
type ServiceAnnotationsMutator ¶ added in v1.2.234
type ServiceAnnotationsMutator struct {
// contains filtered or unexported fields
}
func NewServiceAnnotationsMutator ¶ added in v1.2.234
func NewServiceAnnotationsMutator(werfEnv, werfProject string) *ServiceAnnotationsMutator
func (*ServiceAnnotationsMutator) Mutate ¶ added in v1.2.234
func (m *ServiceAnnotationsMutator) Mutate(res resource.Resourcer, operationType common.ClientOperationType) (resource.Resourcer, error)
type StagesExternalDepsGenerator ¶ added in v1.2.116
type StagesExternalDepsGenerator struct {
// contains filtered or unexported fields
}
func NewStagesExternalDepsGenerator ¶ added in v1.2.116
func NewStagesExternalDepsGenerator(restClient *action.RESTClientGetter, defaultNamespace *string) *StagesExternalDepsGenerator
func (*StagesExternalDepsGenerator) Generate ¶ added in v1.2.116
func (s *StagesExternalDepsGenerator) Generate(stages stages.SortedStageList) error
type StagesSplitter ¶ added in v1.2.110
type StagesSplitter struct{}
func NewStagesSplitter ¶ added in v1.2.116
func NewStagesSplitter() *StagesSplitter
func (*StagesSplitter) Split ¶ added in v1.2.110
func (s *StagesSplitter) Split(resources kube.ResourceList) (stages.SortedStageList, error)
Source Files ¶
- annotations.go
- external_deps_annotations_parser.go
- external_deps_generator.go
- extra_annotations_and_labels_post_renderer.go
- extra_annotations_mutator.go
- extra_labels_mutator.go
- gvk_builder.go
- helm_kube_cliient_extender.go
- init.go
- kube_initializer.go
- post_renderer_chain.go
- resources_waiter.go
- service_annotations_mutator.go
- stages_splitter.go
Click to show internal directories.
Click to hide internal directories.