restart

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RestartApps

func RestartApps(log vzlog.VerrazzanoLogger, client clipkg.Client, generation int64) error

RestartApps restarts all the applications that have old Istio sidecars. It also restarts WebLogic domains that were stopped in Istio pre-upgrade

func RestartComponents

func RestartComponents(log vzlog.VerrazzanoLogger, namespaces []string, generation int64, podMatcher PodMatcher) error

RestartComponents restarts all the deployments, StatefulSets, and DaemonSets in all the Istio injected system namespaces

func RestartDomainsIfOutdatedSidecars

func RestartDomainsIfOutdatedSidecars(log vzlog.VerrazzanoLogger, client clipkg.Client, restartVersion string) error

RestartDomainsIfOutdatedSidecars Rolling restart all the WebLogic domains that have outdated sidecars

func StopDomainsUsingOldEnvoy

func StopDomainsUsingOldEnvoy(log vzlog.VerrazzanoLogger, client clipkg.Client) error

StopDomainsUsingOldEnvoy stops all the WebLogic domains that have the old Envoy sidecar where istio version skew is more than 2 minor versions.

Types

type AppPodMatcher

type AppPodMatcher struct {
	// contains filtered or unexported fields
}

AppPodMatcher matches pods: - that are Istio injected without a Envoy sidecar - that have an outdated Envoy sidecar - that have an outdated Fluentd sidecar

func (*AppPodMatcher) Matches

func (a *AppPodMatcher) Matches(log vzlog.VerrazzanoLogger, podList *v1.PodList, workloadType, workloadName string) bool

Matches when a pod has an outdated istiod/proxyv2 image, or an outdate fluentd image

func (*AppPodMatcher) ReInit

func (a *AppPodMatcher) ReInit() error

type EnvoyOlderThanTwoVersionsPodMatcher

type EnvoyOlderThanTwoVersionsPodMatcher struct {
	// contains filtered or unexported fields
}

EnvoyOlderThanTwoVersionsPodMatcher matches pods with Envoy images two minor versions or older

func (*EnvoyOlderThanTwoVersionsPodMatcher) Matches

func (e *EnvoyOlderThanTwoVersionsPodMatcher) Matches(log vzlog.VerrazzanoLogger, podList *v1.PodList, workloadType, workloadName string) bool

Matches when Envoy container is two or more versions out of date

func (*EnvoyOlderThanTwoVersionsPodMatcher) ReInit

type ImageCheckResult

type ImageCheckResult int
const (
	OutOfDate ImageCheckResult = iota
	UpToDate
	NotFound
)

type OutdatedSidecarPodMatcher

type OutdatedSidecarPodMatcher struct {
	// contains filtered or unexported fields
}

OutdatedSidecarPodMatcher matches pods with an out of date Envoy or Fluentd sidecar.

func (*OutdatedSidecarPodMatcher) Matches

func (o *OutdatedSidecarPodMatcher) Matches(log vzlog.VerrazzanoLogger, podList *v1.PodList, workloadType, workloadName string) bool

Matches when a pod has an outdated istiod/proxyv2 image, or an outdate fluentd image

func (*OutdatedSidecarPodMatcher) ReInit

func (o *OutdatedSidecarPodMatcher) ReInit() error

type PodMatcher

type PodMatcher interface {
	ReInit() error
	Matches(log vzlog.VerrazzanoLogger, podList *v1.PodList, workloadType, workloadName string) bool
}

PodMatcher implementations returns true/false if a given podList match the defined conditions.

type WKOPodMatcher

type WKOPodMatcher struct {
	// contains filtered or unexported fields
}

WKOPodMatcher matches pods with an out of date Envoy, Fluentd, or WKO Exporter sidecar.

func (*WKOPodMatcher) Matches

func (w *WKOPodMatcher) Matches(log vzlog.VerrazzanoLogger, podList *v1.PodList, workloadType, workloadName string) bool

Matches when the pod has out of date fluentd, wko exporter, or istio envoy sidecars. The envoy sidecars must be 2 or more minor versions out of date.

func (*WKOPodMatcher) ReInit

func (w *WKOPodMatcher) ReInit() error

Jump to

Keyboard shortcuts

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