flux

package
v0.0.0-...-d8c8bc9 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoObjectsFound = errors.New("no objects found")

Functions

func IgnoreEvent

func IgnoreEvent(e corev1.Event) bool

func NewReconcileCommand

func NewReconcileCommand(resource string) *reconcileCommand

func NewResumeCommand

func NewResumeCommand(resource string) *resumeCommand

func NewSuspendCommand

func NewSuspendCommand(resource string) *suspendCommand

Types

type Event

type Event struct {
	InvolvedObjectKind      string `json:"involvedObjectKind"`
	InvolvedObjectNamespace string `json:"involvedObjectNamespace"`
	InvolvedObject          string `json:"involvedObject"`
	Type                    string `json:"type"`
	Reason                  string `json:"reason"`
	Message                 string `json:"message"`

	EventTime      time.Time `json:"eventTime"`
	FirstTimestamp time.Time `json:"firstTimestamp"`
	LastTimestamp  time.Time `json:"lastTimestamp"`
	Count          int32     `json:"count"`
	Series         *Series   `json:"series,omitempty"`
}

func Events

func Events(c *kubernetes.Clientset, dc *dynamic.DynamicClient) ([]Event, error)

type FluxState

type FluxState struct {
	GitRepositories  []sourcev1.GitRepository        `json:"gitRepositories"`
	OCIRepositories  []sourcev1beta2.OCIRepository   `json:"ociRepositories"`
	Buckets          []sourcev1beta2.Bucket          `json:"buckets"`
	Kustomizations   []kustomizationv1.Kustomization `json:"kustomizations"`
	HelmReleases     []helmv2beta2.HelmRelease       `json:"helmReleases"`
	HelmRepositories []sourcev1beta2.HelmRepository  `json:"helmRepositories"`
	HelmCharts       []sourcev1beta2.HelmChart       `json:"helmCharts"`
	FluxServices     []Service                       `json:"fluxServices"`
}

type Series

type Series struct {
	Count            int32     `json:"count"`
	LastObservedTime time.Time `json:"lastObservedTime"`
}

type Service

type Service struct {
	Deployment *apps_v1.Deployment     `json:"deployment"`
	Svc        v1.Service              `json:"svc"`
	Pods       []v1.Pod                `json:"pods"`
	Ingresses  []networking_v1.Ingress `json:"ingresses"`
}

func Services

func Services(c *kubernetes.Clientset, dc *dynamic.DynamicClient) ([]Service, error)

type SortableEvents

type SortableEvents []corev1.Event

SortableEvents implements sort.Interface for []api.Event by time

func (SortableEvents) Len

func (list SortableEvents) Len() int

func (SortableEvents) Less

func (list SortableEvents) Less(i, j int) bool

func (SortableEvents) Swap

func (list SortableEvents) Swap(i, j int)

Jump to

Keyboard shortcuts

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