projectcrd

package
v1.32.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkConfig

type NetworkConfig struct {
	Network           string
	DefaultSubnetwork string
}

NetworkConfig specifies the network configuration for the project.

type Project

type Project struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   ProjectSpec
	Status ProjectStatus
}

Project is the Schema for the Project resource in the Multi-Project cluster.

func (*Project) ProjectName

func (p *Project) ProjectName() string

ProjectName returns the name of the project which this CRD represents.

type ProjectList

type ProjectList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Project
}

ProjectList contains a list of Projects.

type ProjectSpec

type ProjectSpec struct {
	// GCP project number where the project is to be created.
	ProjectNumber int64
	// Network configuration for the project.
	NetworkConfig NetworkConfig
}

ProjectSpec specifies the desired state of the project in the MT cluster.

type ProjectStatus

type ProjectStatus struct {
	// Conditions describe the current state of the Project.
	Conditions []metav1.Condition
}

ProjectStatus stores the observed state of the project.

Jump to

Keyboard shortcuts

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