v1alpha1

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 8 Imported by: 0

Documentation

Overview

+groupName=clusters.verrazzano.io

Package v1alpha1 contains API Schema definitions for the clusters v1alpha1 API group +kubebuilder:object:generate=true +groupName=clusters.verrazzano.io

Index

Constants

View Source
const MultiClusterAppConfigKind = "MultiClusterApplicationConfiguration"
View Source
const MultiClusterAppConfigResource = "multiclusterapplicationconfigurations"
View Source
const MultiClusterComponentKind = "MultiClusterComponent"
View Source
const MultiClusterComponentResource = "multiclustercomponents"
View Source
const MultiClusterConfigMapKind = "MultiClusterConfigMap"
View Source
const MultiClusterConfigMapResource = "multiclusterconfigmaps"
View Source
const MultiClusterSecretKind = "MultiClusterSecret"
View Source
const MultiClusterSecretResource = "multiclustersecrets"
View Source
const VerrazzanoProjectKind = "VerrazzanoProject"
View Source
const VerrazzanoProjectResource = "verrazzanoprojects"

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "clusters.verrazzano.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ApplicationConfigurationTemplate

type ApplicationConfigurationTemplate struct {
	// Metadata describing the application.
	Metadata EmbeddedObjectMeta `json:"metadata,omitempty"`
	// The embedded OAM application specification.
	Spec v1alpha2.ApplicationConfigurationSpec `json:"spec,omitempty"`
}

ApplicationConfigurationTemplate has the metadata and embedded spec of the OAM applicationConfiguration resource.

func (*ApplicationConfigurationTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationConfigurationTemplate.

func (*ApplicationConfigurationTemplate) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Cluster

type Cluster struct {
	// The name of a cluster.
	Name string `json:"name"`
}

Cluster contains the name of a single cluster.

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterLevelStatus

type ClusterLevelStatus struct {
	// Last update time of the resource state in this cluster.
	LastUpdateTime string `json:"lastUpdateTime"`
	// Message details about the status in this cluster.
	Message string `json:"message,omitempty"`
	// Name of the cluster.
	Name string `json:"name"`
	// State of the resource in this cluster.
	State StateType `json:"state"`
}

ClusterLevelStatus describes the status of the multicluster resource in a specific cluster.

func (*ClusterLevelStatus) DeepCopy

func (in *ClusterLevelStatus) DeepCopy() *ClusterLevelStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterLevelStatus.

func (*ClusterLevelStatus) DeepCopyInto

func (in *ClusterLevelStatus) DeepCopyInto(out *ClusterLevelStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ComponentTemplate

type ComponentTemplate struct {
	// Metadata describing the component.
	Metadata EmbeddedObjectMeta `json:"metadata,omitempty"`

	// The embedded OAM component specification.
	Spec v1alpha2.ComponentSpec `json:"spec,omitempty"`
}

ComponentTemplate has the metadata and embedded spec of the OAM component.

func (*ComponentTemplate) DeepCopy

func (in *ComponentTemplate) DeepCopy() *ComponentTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentTemplate.

func (*ComponentTemplate) DeepCopyInto

func (in *ComponentTemplate) DeepCopyInto(out *ComponentTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Condition

type Condition struct {
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	// A message with details about the last transition.
	// +optional
	Message string `json:"message,omitempty"`
	// Status of the condition: one of `True`, `False`, or `Unknown`.
	Status corev1.ConditionStatus `json:"status"`
	// Type of condition.
	Type ConditionType `json:"type"`
}

Condition describes current state of a multicluster resource.

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConditionType

type ConditionType string

ConditionType identifies the condition of the multicluster resource which can be checked with `kubectl wait`.

const (
	// DeployComplete means deployment to the specified cluster completed successfully.
	DeployComplete ConditionType = "DeployComplete"

	// DeployFailed means the deployment to the specified cluster has failed.
	DeployFailed ConditionType = "DeployFailed"

	// DeployPending means deployment to the specified cluster is in progress.
	DeployPending ConditionType = "DeployPending"
)

type ConfigMapTemplate

type ConfigMapTemplate struct {
	// Corresponds to the `binaryData` field of the `struct` ConfigMap defined in
	// <a href="https://github.com/kubernetes/api/blob/master/core/v1/types.go">types.go</a>.
	BinaryData map[string][]byte `json:"binaryData,omitempty"`

	// Corresponds to the `data` field of the `struct` ConfigMap defined in
	// <a href="https://github.com/kubernetes/api/blob/master/core/v1/types.go">types.go</a>.
	Data map[string]string `json:"data,omitempty"`

	// Corresponds to the `immutable` field of the `struct` ConfigMap defined in
	// <a href="https://github.com/kubernetes/api/blob/master/core/v1/types.go">types.go</a>.
	Immutable *bool `json:"immutable,omitempty"`

	// Metadata describing the ConfigMap.
	Metadata EmbeddedObjectMeta `json:"metadata,omitempty"`
}

ConfigMapTemplate has the metadata and spec of the Kubernetes ConfigMap.

func (*ConfigMapTemplate) DeepCopy

func (in *ConfigMapTemplate) DeepCopy() *ConfigMapTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapTemplate.

func (*ConfigMapTemplate) DeepCopyInto

func (in *ConfigMapTemplate) DeepCopyInto(out *ConfigMapTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EmbeddedObjectMeta added in v0.15.0

type EmbeddedObjectMeta struct {
	// Annotations for the resource.
	// +optional
	Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"`

	// Labels for the resource.
	// +optional
	Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`

	// Name of the resource.
	// +optional
	Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`

	// Namespace of the resource.
	// +optional
	Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
}

EmbeddedObjectMeta is metadata describing a resource.

func (*EmbeddedObjectMeta) DeepCopy added in v0.15.0

func (in *EmbeddedObjectMeta) DeepCopy() *EmbeddedObjectMeta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedObjectMeta.

func (*EmbeddedObjectMeta) DeepCopyInto added in v0.15.0

func (in *EmbeddedObjectMeta) DeepCopyInto(out *EmbeddedObjectMeta)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MultiClusterApplicationConfiguration

type MultiClusterApplicationConfiguration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// The desired state of a multicluster application resource.
	Spec MultiClusterApplicationConfigurationSpec `json:"spec,omitempty"`
	// The observed state of a multicluster application resource.
	Status MultiClusterResourceStatus `json:"status,omitempty"`
}

MultiClusterApplicationConfiguration specifies the multicluster application API.

func (*MultiClusterApplicationConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterApplicationConfiguration.

func (*MultiClusterApplicationConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterApplicationConfiguration) DeepCopyObject

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MultiClusterApplicationConfiguration) GetPlacement added in v0.15.0

GetPlacement returns the Placement of this resource.

func (*MultiClusterApplicationConfiguration) GetStatus

GetStatus returns the MultiClusterResourceStatus of this resource.

type MultiClusterApplicationConfigurationList

type MultiClusterApplicationConfigurationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MultiClusterApplicationConfiguration `json:"items"`
}

MultiClusterApplicationConfigurationList contains a list of MultiClusterApplicationConfiguration resources.

func (*MultiClusterApplicationConfigurationList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterApplicationConfigurationList.

func (*MultiClusterApplicationConfigurationList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterApplicationConfigurationList) DeepCopyObject

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MultiClusterApplicationConfigurationSpec

type MultiClusterApplicationConfigurationSpec struct {
	// Clusters in which the application is to be created.
	Placement Placement `json:"placement"`

	// List of secrets used by the application. These secrets must be created in the application’s namespace before
	// deploying a MultiClusterApplicationConfiguration resource.
	// +optional
	Secrets []string `json:"secrets,omitempty"`

	// Template containing the metadata and spec for an OAM applicationConfiguration resource.
	Template ApplicationConfigurationTemplate `json:"template"`
}

MultiClusterApplicationConfigurationSpec defines the desired state of a multicluster application.

func (*MultiClusterApplicationConfigurationSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterApplicationConfigurationSpec.

func (*MultiClusterApplicationConfigurationSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MultiClusterComponent

type MultiClusterComponent struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// The desired state of a MultiCluster Component resource.
	Spec MultiClusterComponentSpec `json:"spec,omitempty"`
	// The observed state of a MultiCluster Component resource.
	Status MultiClusterResourceStatus `json:"status,omitempty"`
}

MultiClusterComponent specifies the MultiCluster Component API.

func (*MultiClusterComponent) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterComponent.

func (*MultiClusterComponent) DeepCopyInto

func (in *MultiClusterComponent) DeepCopyInto(out *MultiClusterComponent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterComponent) DeepCopyObject

func (in *MultiClusterComponent) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MultiClusterComponent) GetPlacement added in v0.15.0

func (in *MultiClusterComponent) GetPlacement() Placement

GetPlacement returns the Placement of this resource.

func (*MultiClusterComponent) GetStatus

GetStatus returns the MultiClusterResourceStatus of this resource.

type MultiClusterComponentList

type MultiClusterComponentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MultiClusterComponent `json:"items"`
}

MultiClusterComponentList contains a list of MultiClusterComponent resources.

func (*MultiClusterComponentList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterComponentList.

func (*MultiClusterComponentList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterComponentList) DeepCopyObject

func (in *MultiClusterComponentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MultiClusterComponentSpec

type MultiClusterComponentSpec struct {
	// Clusters in which the component is to be created.
	Placement Placement `json:"placement"`

	// Template containing the metadata and spec for an OAM component.
	Template ComponentTemplate `json:"template"`
}

MultiClusterComponentSpec defines the desired state of a MultiCluster Component.

func (*MultiClusterComponentSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterComponentSpec.

func (*MultiClusterComponentSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MultiClusterConfigMap

type MultiClusterConfigMap struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// The desired state of a MultiCluster ConfigMap resource.
	Spec MultiClusterConfigMapSpec `json:"spec,omitempty"`
	// The observed state of a MultiCluster ConfigMap resource.
	Status MultiClusterResourceStatus `json:"status,omitempty"`
}

MultiClusterConfigMap specifies the MultiCluster ConfigMap API.

func (*MultiClusterConfigMap) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterConfigMap.

func (*MultiClusterConfigMap) DeepCopyInto

func (in *MultiClusterConfigMap) DeepCopyInto(out *MultiClusterConfigMap)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterConfigMap) DeepCopyObject

func (in *MultiClusterConfigMap) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MultiClusterConfigMap) GetPlacement added in v0.15.0

func (in *MultiClusterConfigMap) GetPlacement() Placement

GetPlacement returns the Placement of this resource.

func (*MultiClusterConfigMap) GetStatus

GetStatus returns the MultiClusterResourceStatus of this resource.

type MultiClusterConfigMapList

type MultiClusterConfigMapList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MultiClusterConfigMap `json:"items"`
}

MultiClusterConfigMapList contains a list of MultiClusterConfigMap resources.

func (*MultiClusterConfigMapList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterConfigMapList.

func (*MultiClusterConfigMapList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterConfigMapList) DeepCopyObject

func (in *MultiClusterConfigMapList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MultiClusterConfigMapSpec

type MultiClusterConfigMapSpec struct {
	// Clusters in which the ConfigMap is to be created.
	Placement Placement `json:"placement"`

	// The embedded Kubernetes ConfigMap.
	Template ConfigMapTemplate `json:"template"`
}

MultiClusterConfigMapSpec defines the desired state of a MultiCluster ConfigMap.

func (*MultiClusterConfigMapSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterConfigMapSpec.

func (*MultiClusterConfigMapSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MultiClusterResourceStatus

type MultiClusterResourceStatus struct {
	// Status information for each cluster.
	Clusters []ClusterLevelStatus `json:"clusters,omitempty"`

	// The current state of a multicluster resource.
	Conditions []Condition `json:"conditions,omitempty"`

	// The state of the multicluster resource. State values are case-sensitive and formatted as follows:
	// <ul><li>`Failed`: deployment to cluster failed</li><li>`Pending`: deployment to cluster is in progress</li><li>`Succeeded`: deployment to cluster successfully completed</li></ul>
	State StateType `json:"state,omitempty"`
}

MultiClusterResourceStatus is the runtime status of a multicluster resource.

func (*MultiClusterResourceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterResourceStatus.

func (*MultiClusterResourceStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MultiClusterSecret

type MultiClusterSecret struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// The desired state of a MultiCluster Secret resource.
	Spec MultiClusterSecretSpec `json:"spec,omitempty"`
	// The observed state of a MultiCluster Secret resource.
	Status MultiClusterResourceStatus `json:"status,omitempty"`
}

MultiClusterSecret specifies the MultiCluster Secret API.

func (*MultiClusterSecret) DeepCopy

func (in *MultiClusterSecret) DeepCopy() *MultiClusterSecret

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterSecret.

func (*MultiClusterSecret) DeepCopyInto

func (in *MultiClusterSecret) DeepCopyInto(out *MultiClusterSecret)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterSecret) DeepCopyObject

func (in *MultiClusterSecret) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MultiClusterSecret) GetPlacement added in v0.15.0

func (in *MultiClusterSecret) GetPlacement() Placement

GetPlacement returns the Placement of this resource.

func (*MultiClusterSecret) GetStatus

GetStatus returns the MultiClusterResourceStatus of this resource.

type MultiClusterSecretList

type MultiClusterSecretList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MultiClusterSecret `json:"items"`
}

MultiClusterSecretList contains a list of MultiClusterSecret resources.

func (*MultiClusterSecretList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterSecretList.

func (*MultiClusterSecretList) DeepCopyInto

func (in *MultiClusterSecretList) DeepCopyInto(out *MultiClusterSecretList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MultiClusterSecretList) DeepCopyObject

func (in *MultiClusterSecretList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MultiClusterSecretSpec

type MultiClusterSecretSpec struct {
	// Clusters in which the secret is to be created.
	Placement Placement `json:"placement"`

	// The embedded Kubernetes secret.
	Template SecretTemplate `json:"template"`
}

MultiClusterSecretSpec defines the desired state of a MultiCluster Secret.

func (*MultiClusterSecretSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterSecretSpec.

func (*MultiClusterSecretSpec) DeepCopyInto

func (in *MultiClusterSecretSpec) DeepCopyInto(out *MultiClusterSecretSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespaceTemplate

type NamespaceTemplate struct {
	// +kubebuilder:pruning:PreserveUnknownFields
	// +optional
	Metadata metav1.ObjectMeta `json:"metadata"`
	// The specification of a namespace.
	Spec corev1.NamespaceSpec `json:"spec,omitempty"`
}

NamespaceTemplate contains the metadata and specification of a Kubernetes namespace.

func (*NamespaceTemplate) DeepCopy

func (in *NamespaceTemplate) DeepCopy() *NamespaceTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceTemplate.

func (*NamespaceTemplate) DeepCopyInto

func (in *NamespaceTemplate) DeepCopyInto(out *NamespaceTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkPolicyTemplate added in v0.14.0

type NetworkPolicyTemplate struct {
	// +kubebuilder:pruning:PreserveUnknownFields
	// +optional
	Metadata metav1.ObjectMeta `json:"metadata"`
	// The specification of a network policy.
	Spec netv1.NetworkPolicySpec `json:"spec,omitempty"`
}

NetworkPolicyTemplate contains the metadata and specification of a Kubernetes NetworkPolicy. <div class="alert alert-warning" role="alert"> <h4 class="alert-heading">NOTE</h4> To add an application NetworkPolicy, see <a href="../../../docs/networking/security/#networkpolicies-for-applications">NetworkPolicies for applications</a>. </div>

func (*NetworkPolicyTemplate) DeepCopy added in v0.14.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyTemplate.

func (*NetworkPolicyTemplate) DeepCopyInto added in v0.14.0

func (in *NetworkPolicyTemplate) DeepCopyInto(out *NetworkPolicyTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Placement

type Placement struct {
	// List of clusters.
	Clusters []Cluster `json:"clusters"`
}

Placement contains the name of each cluster where a resource will be located.

func (*Placement) DeepCopy

func (in *Placement) DeepCopy() *Placement

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Placement.

func (*Placement) DeepCopyInto

func (in *Placement) DeepCopyInto(out *Placement)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ProjectTemplate

type ProjectTemplate struct {
	// The list of application namespaces to create for this project.
	Namespaces []NamespaceTemplate `json:"namespaces"`

	// Network policies applied to namespaces in the project.
	// +optional
	NetworkPolicies []NetworkPolicyTemplate `json:"networkPolicies,omitempty"`

	// The project security configuration.
	// +optional
	Security SecuritySpec `json:"security,omitempty"`
}

ProjectTemplate contains the list of namespaces to create and the optional security configuration for each namespace.

func (*ProjectTemplate) DeepCopy

func (in *ProjectTemplate) DeepCopy() *ProjectTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectTemplate.

func (*ProjectTemplate) DeepCopyInto

func (in *ProjectTemplate) DeepCopyInto(out *ProjectTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretTemplate

type SecretTemplate struct {
	// Corresponds to the data field of the struct Secret defined in
	// <a href="https://github.com/kubernetes/api/blob/master/core/v1/types.go">types.go</a>.
	Data map[string][]byte `json:"data,omitempty"`

	// Metadata describing the secret.
	Metadata EmbeddedObjectMeta `json:"metadata,omitempty"`

	// Corresponds to the `stringData` field of the `struct` Secret defined in
	// <a href="https://github.com/kubernetes/api/blob/master/core/v1/types.go">types.go</a>.
	StringData map[string]string `json:"stringData,omitempty"`

	// The type of secret.
	Type corev1.SecretType `json:"type,omitempty"`
}

SecretTemplate has the metadata and spec of the Kubernetes Secret.

func (*SecretTemplate) DeepCopy

func (in *SecretTemplate) DeepCopy() *SecretTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplate.

func (*SecretTemplate) DeepCopyInto

func (in *SecretTemplate) DeepCopyInto(out *SecretTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecuritySpec

type SecuritySpec struct {
	// The subjects to bind to the `verrazzano-project-admin` role.
	// +optional
	ProjectAdminSubjects []rbacv1.Subject `json:"projectAdminSubjects,omitempty"`
	// The subjects to bind to the `verrazzano-project-monitoring` role.
	// +optional
	ProjectMonitorSubjects []rbacv1.Subject `json:"projectMonitorSubjects,omitempty"`
}

SecuritySpec defines the security configuration for a Verrazzano Project.

func (*SecuritySpec) DeepCopy

func (in *SecuritySpec) DeepCopy() *SecuritySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecuritySpec.

func (*SecuritySpec) DeepCopyInto

func (in *SecuritySpec) DeepCopyInto(out *SecuritySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StateType

type StateType string

StateType identifies the state of a multicluster resource.

const (
	// Failed is the state when deploy to specified cluster has failed.
	Failed StateType = "Failed"

	// Pending is the state when deploy to specified cluster is in progress.
	Pending StateType = "Pending"

	// Succeeded is the state when deploy to specified cluster is completed.
	Succeeded StateType = "Succeeded"
)

type VerrazzanoProject

type VerrazzanoProject struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// The desired state of a Verrazzano Project resource.
	Spec VerrazzanoProjectSpec `json:"spec"`
	// The observed state of a Verrazzano Project resource.
	Status MultiClusterResourceStatus `json:"status,omitempty"`
}

VerrazzanoProject specifies the Verrazzano Projects API.

func (*VerrazzanoProject) DeepCopy

func (in *VerrazzanoProject) DeepCopy() *VerrazzanoProject

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VerrazzanoProject.

func (*VerrazzanoProject) DeepCopyInto

func (in *VerrazzanoProject) DeepCopyInto(out *VerrazzanoProject)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VerrazzanoProject) DeepCopyObject

func (in *VerrazzanoProject) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*VerrazzanoProject) GetPlacement added in v0.15.0

func (in *VerrazzanoProject) GetPlacement() Placement

GetPlacement returns the Placement of this resource.

func (*VerrazzanoProject) GetStatus

GetStatus returns the MultiClusterResourceStatus of this resource.

type VerrazzanoProjectList

type VerrazzanoProjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VerrazzanoProject `json:"items"`
}

VerrazzanoProjectList contains a list of Verrazzano Project resources.

func (*VerrazzanoProjectList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VerrazzanoProjectList.

func (*VerrazzanoProjectList) DeepCopyInto

func (in *VerrazzanoProjectList) DeepCopyInto(out *VerrazzanoProjectList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VerrazzanoProjectList) DeepCopyObject

func (in *VerrazzanoProjectList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VerrazzanoProjectSpec

type VerrazzanoProjectSpec struct {
	// Clusters on which the namespaces are to be created.
	Placement Placement `json:"placement"`

	// The project template.
	Template ProjectTemplate `json:"template"`
}

VerrazzanoProjectSpec defines the desired state of a Verrazzano Project.

func (*VerrazzanoProjectSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VerrazzanoProjectSpec.

func (*VerrazzanoProjectSpec) DeepCopyInto

func (in *VerrazzanoProjectSpec) DeepCopyInto(out *VerrazzanoProjectSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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