kubernetes

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package kubernetes runs renovate as Kubernetes Jobs and can re-adopt running Jobs after a server restart via labels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientFromEnv

func NewClientFromEnv() (k8s.Interface, error)

NewClientFromEnv builds a clientset from in-cluster config, falling back to $KUBECONFIG / ~/.kube/config for local development.

Types

type Executor

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

Executor runs renovate as Kubernetes Jobs.

func New

func New(cfg config.Executor, client k8s.Interface, log *slog.Logger) *Executor

New builds a kubernetes Executor from its config section.

func (*Executor) AdoptRunning

func (e *Executor) AdoptRunning(ctx context.Context) ([]executor.AdoptedRun, error)

AdoptRunning lists managed Jobs still active and returns wait handles so the dispatcher can re-lock their repos after a restart.

func (*Executor) Name

func (e *Executor) Name() string

Name returns the executor's configured name.

func (*Executor) Run

func (e *Executor) Run(ctx context.Context, spec executor.RunSpec) error

Run creates a Job for spec and polls it until completion or ctx cancel.

Jump to

Keyboard shortcuts

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