clusters

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package clusters implements reconciler for GKE cluster components.

Index

Constants

View Source
const (
	// GkeScope is the scope to request when generating access token.
	GkeScope = "https://www.googleapis.com/auth/cloud-platform"
)

Variables

View Source
var (
	// ErrAutopilotClusterMachinePoolsNotAllowed is used when there are machine pools specified for an autopilot enabled cluster.
	ErrAutopilotClusterMachinePoolsNotAllowed = errors.New("cannot use machine pools with an autopilot enabled cluster")
)

Functions

func NewErrUnexpectedClusterStatus

func NewErrUnexpectedClusterStatus(status string) error

NewErrUnexpectedClusterStatus creates a new error for an unexpected cluster status.

Types

type Service

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

Service implements clusters reconciler.

func New

New returns Service from given scope.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) (ctrl.Result, error)

Delete delete GKE cluster.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) (ctrl.Result, error)

Reconcile reconcile GKE cluster.

Jump to

Keyboard shortcuts

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