nais_namespace_reconciler

package
v0.0.0-...-96f7096 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NaisdTypeCreateNamespace = "create-namespace"
	NaisdTypeDeleteNamespace = "delete-namespace"
	Name                     = sqlc.ReconcilerNameNaisNamespace
)

Variables

This section is empty.

Functions

func New

func New(database db.Database, auditLogger auditlogger.AuditLogger, clusters gcp.Clusters, domain, projectID string, azureEnabled bool, pubsubClient *pubsub.Client, log logger.Logger, onpremClusters []string) *naisNamespaceReconciler

func NewFromConfig

func NewFromConfig(ctx context.Context, database db.Database, cfg *config.Config, log logger.Logger) (reconcilers.Reconciler, error)

Types

type NaisdCreateNamespace

type NaisdCreateNamespace struct {
	Name               string `json:"name"`
	GcpProject         string `json:"gcpProject"` // the user specified "project id"; not the "projects/ID" format
	GroupEmail         string `json:"groupEmail"`
	AzureGroupID       string `json:"azureGroupID"`
	CNRMEmail          string `json:"cnrmEmail"`
	SlackAlertsChannel string `json:"slackAlertsChannel"`
}

type NaisdDeleteNamespace

type NaisdDeleteNamespace struct {
	Name string `json:"name"`
}

type NaisdRequest

type NaisdRequest struct {
	Type string          `json:"type"`
	Data json.RawMessage `json:"data"`
}

Jump to

Keyboard shortcuts

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