v1beta1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the capsule.clastix.io v1beta1 API group +kubebuilder:object:generate=true +groupName=capsule.clastix.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	//nolint:gochecknoglobals
	GroupVersion = schema.GroupVersion{Group: "capsule.clastix.io", Version: "v1beta1"}

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

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

Functions

This section is empty.

Types

type ClusterResource added in v0.7.0

type ClusterResource struct {
	// APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against any resource listed will be allowed. '*' represents all resources. Empty string represents v1 api resources.
	APIGroups []string `json:"apiGroups"`

	// Resources is a list of resources this rule applies to. '*' represents all resources.
	Resources []string `json:"resources"`

	// Operations which can be executed on the selected resources.
	// +kubebuilder:default={List}
	Operations []ClusterResourceOperation `json:"operations"`

	// Select all cluster scoped resources with the given label selector.
	Selector *metav1.LabelSelector `json:"selector"`
}

+kubebuilder:object:generate=true

func (*ClusterResource) DeepCopy added in v0.7.0

func (in *ClusterResource) DeepCopy() *ClusterResource

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

func (*ClusterResource) DeepCopyInto added in v0.7.0

func (in *ClusterResource) DeepCopyInto(out *ClusterResource)

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

type ClusterResourceOperation added in v0.7.0

type ClusterResourceOperation string

+kubebuilder:validation:Enum=List;Update;Delete

const (
	ClusterResourceOperationList ClusterResourceOperation = "List"
)

func (ClusterResourceOperation) String added in v0.7.0

func (p ClusterResourceOperation) String() string

type OwnerSpec

type OwnerSpec struct {
	// Kind of tenant owner. Possible values are "User", "Group", and "ServiceAccount"
	Kind v1beta2.OwnerKind `json:"kind"`
	// Name of tenant owner.
	Name string `json:"name"`
	// Proxy settings for tenant owner.
	ProxyOperations []v1beta2.ProxySettings `json:"proxySettings,omitempty"`
	// Cluster Resources for tenant Owner.
	ClusterResources []ClusterResource `json:"clusterResources,omitempty"`
}

func (*OwnerSpec) DeepCopy

func (in *OwnerSpec) DeepCopy() *OwnerSpec

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

func (*OwnerSpec) DeepCopyInto

func (in *OwnerSpec) DeepCopyInto(out *OwnerSpec)

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

type ProxySetting

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

	Spec ProxySettingSpec `json:"spec,omitempty"`
}

ProxySetting is the Schema for the proxysettings API.

func (*ProxySetting) DeepCopy

func (in *ProxySetting) DeepCopy() *ProxySetting

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

func (*ProxySetting) DeepCopyInto

func (in *ProxySetting) DeepCopyInto(out *ProxySetting)

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

func (*ProxySetting) DeepCopyObject

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

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

type ProxySettingList

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

ProxySettingList contains a list of ProxySetting.

func (*ProxySettingList) DeepCopy

func (in *ProxySettingList) DeepCopy() *ProxySettingList

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

func (*ProxySettingList) DeepCopyInto

func (in *ProxySettingList) DeepCopyInto(out *ProxySettingList)

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

func (*ProxySettingList) DeepCopyObject

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

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

type ProxySettingSpec

type ProxySettingSpec struct {
	// Subjects that should receive additional permissions.
	// +kubebuilder:validation:MinItems=1
	Subjects []OwnerSpec `json:"subjects"`
}

ProxySettingSpec defines the additional Capsule Proxy settings for additional users of the Tenant. Resource is Namespace-scoped and applies the settings to the belonged Tenant.

func (*ProxySettingSpec) DeepCopy

func (in *ProxySettingSpec) DeepCopy() *ProxySettingSpec

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

func (*ProxySettingSpec) DeepCopyInto

func (in *ProxySettingSpec) DeepCopyInto(out *ProxySettingSpec)

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