gcpbuild

package
v0.0.0-...-b4f7751 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package gcpbuild implements a Kubernetes controller for managing GCPBuild custom resources within the Forge project. This controller is responsible for building machine images in Google Cloud Platform (GCP) as part of Forge's infrastructure provisioning process. Usage: - Deploy the controller with Forge's controller manager. - Define GCPBuild resources to specify image build configurations.

Index

Constants

View Source
const ControllerName = "gcpbuild-controller"

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, mgr ctrl.Manager, numWorkers int, log *zap.SugaredLogger) error

Add creates a new GCPBuild controller and adds it to the Manager.

Types

type GCPBuildReconciler

type GCPBuildReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

GCPBuildReconciler reconciles a GCPBuild object

func (*GCPBuildReconciler) GetSSHKey

func (r *GCPBuildReconciler) GetSSHKey(ctx context.Context, buildScope *scope.BuildScope) (key scope.SSHKey, err error)

func (*GCPBuildReconciler) Reconcile

func (r *GCPBuildReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Jump to

Keyboard shortcuts

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