Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the pco v1alpha1 API group +kubebuilder:object:generate=true +groupName=pco.plusserver.com
Index ¶
- Variables
- type ComputeQuotas
- type ConditionTypes
- type NetworkQuotas
- type Project
- func (v *Project) AwaitReady(ctx context.Context, timeout time.Duration, client client.Client, ...) error
- func (in *Project) DeepCopy() *Project
- func (in *Project) DeepCopyInto(out *Project)
- func (in *Project) DeepCopyObject() runtime.Object
- func (r *Project) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Project) UpdateProjectCondition(ctx context.Context, reconcileClient client.Client, reason ProjectReadyReasons, ...) error
- func (r *Project) UpdateRegionCondition(ctx context.Context, reconcileClient client.Client, reason RegionReadyReasons, ...) error
- type ProjectCustomDefaulter
- type ProjectCustomValidator
- func (in *ProjectCustomValidator) DeepCopy() *ProjectCustomValidator
- func (in *ProjectCustomValidator) DeepCopyInto(out *ProjectCustomValidator)
- func (v *ProjectCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ProjectCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ProjectCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ProjectList
- type ProjectReadyReasons
- type ProjectSpec
- type ProjectStatus
- type QuotaCollection
- type Region
- func (v *Region) AwaitReady(ctx context.Context, timeout time.Duration, client client.Client, ...) error
- func (in *Region) DeepCopy() *Region
- func (in *Region) DeepCopyInto(out *Region)
- func (in *Region) DeepCopyObject() runtime.Object
- func (r *Region) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Region) UpdateRegionCondition(ctx context.Context, reconcileClient client.Client, reason RegionReadyReasons, ...) error
- type RegionCustomValidator
- func (in *RegionCustomValidator) DeepCopy() *RegionCustomValidator
- func (in *RegionCustomValidator) DeepCopyInto(out *RegionCustomValidator)
- func (v *RegionCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *RegionCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *RegionCustomValidator) ValidateUpdate(ctx context.Context, newObj runtime.Object, oldObj runtime.Object) (admission.Warnings, error)
- type RegionList
- type RegionReadyReasons
- type RegionSpec
- type RegionStatus
- type SecretRef
- type User
- func (v *User) AwaitReady(ctx context.Context, timeout time.Duration, client client.Client, ...) error
- func (in *User) DeepCopy() *User
- func (in *User) DeepCopyInto(out *User)
- func (in *User) DeepCopyObject() runtime.Object
- func (u User) DefaultUserProjectBindingName() types.NamespacedName
- func (u User) Mail(ctx context.Context, r client.Client) (*string, error)
- func (r *User) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *User) UpdateUserCondition(ctx context.Context, reconcileClient client.Client, reason UserReadyReasons, ...) error
- func (u User) UserAccessSecretName() types.NamespacedName
- type UserCustomDefaulter
- type UserCustomValidator
- func (in *UserCustomValidator) DeepCopy() *UserCustomValidator
- func (in *UserCustomValidator) DeepCopyInto(out *UserCustomValidator)
- func (v *UserCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *UserCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *UserCustomValidator) ValidateUpdate(ctx context.Context, newObj runtime.Object, oldObj runtime.Object) (admission.Warnings, error)
- type UserList
- type UserProjectBinding
- func (upb UserProjectBinding) ApplicationCredentialName() string
- func (v *UserProjectBinding) AwaitReady(ctx context.Context, timeout time.Duration, client client.Client, ...) error
- func (in *UserProjectBinding) DeepCopy() *UserProjectBinding
- func (in *UserProjectBinding) DeepCopyInto(out *UserProjectBinding)
- func (in *UserProjectBinding) DeepCopyObject() runtime.Object
- func (r *UserProjectBinding) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *UserProjectBinding) UpdateProjectCondition(ctx context.Context, reconcileClient client.Client, reason ProjectReadyReasons, ...) error
- func (r *UserProjectBinding) UpdateUserCondition(ctx context.Context, reconcileClient client.Client, reason UserReadyReasons, ...) error
- func (r *UserProjectBinding) UpdateUserProjectBindingCondition(ctx context.Context, reconcileClient client.Client, ...) error
- type UserProjectBindingCustomValidator
- func (in *UserProjectBindingCustomValidator) DeepCopy() *UserProjectBindingCustomValidator
- func (in *UserProjectBindingCustomValidator) DeepCopyInto(out *UserProjectBindingCustomValidator)
- func (v *UserProjectBindingCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *UserProjectBindingCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *UserProjectBindingCustomValidator) ValidateUpdate(ctx context.Context, newObj runtime.Object, oldObj runtime.Object) (admission.Warnings, error)
- type UserProjectBindingList
- type UserProjectBindingReadyReasons
- type UserProjectBindingSpec
- type UserProjectBindingStatus
- type UserReadyReasons
- type UserSpec
- type UserStatus
- type VolumeQuotas
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "pco.plusserver.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type ComputeQuotas ¶
type ComputeQuotas struct {
// Number of cores between 0 and 500
Cores *int `json:"cores,omitempty"`
FixedIps *int `json:"fixed_ips,omitempty"`
// The number of allowed floating IP addresses for each project
FloatingIps *int `json:"floating_ips,omitempty"`
InjectedFileContentBytes *int `json:"injected_file_content_bytes,omitempty"`
InjectedFilePathBytes *int `json:"injected_file_path_bytes,omitempty"`
InjectedFiles *int `json:"injected_files,omitempty"`
Instances int `json:"instances"`
KeyPairs int `json:"key_pairs"`
MetadataItems int `json:"metadata_items"`
// Maximum amount of RAM in MiB
Ram *int `json:"ram,omitempty"`
SecurityGroupRules *int `json:"security_group_rules,omitempty"`
SecurityGroups *int `json:"security_groups,omitempty"`
ServerGroupMembers *int `json:"server_group_members,omitempty"`
ServerGroups int `json:"server_groups"`
}
ComputeQuotas defines model for ComputeQuotas.
func (*ComputeQuotas) DeepCopy ¶
func (in *ComputeQuotas) DeepCopy() *ComputeQuotas
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComputeQuotas.
func (*ComputeQuotas) DeepCopyInto ¶
func (in *ComputeQuotas) DeepCopyInto(out *ComputeQuotas)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionTypes ¶
type ConditionTypes string
ConditionTypes stores the different kinds of conditions
const ( // UserReady represents whether the OpenStack user is ready or not UserReady ConditionTypes = "UserReady" // ProjectReady represents whether the OpenStack project is ready or not ProjectReady ConditionTypes = "ProjectReady" // RegionReady represents whether the OpenStack region is ready or not RegionReady ConditionTypes = "RegionReady" // UserProjectBindingReady represents whether the userprojectbinding object is ready or not UserProjectBindingReady ConditionTypes = "UserProjectBindingReady" )
type NetworkQuotas ¶
type NetworkQuotas struct {
// The number of floating IP addresses allowed for each project.A value of -1 means no limit
Floatingip *int `json:"floatingip,omitempty"`
Network int `json:"network"`
Port *int `json:"port,omitempty"`
// The number of role-based access control (RBAC) policies for each project
RbacPolicy *int `json:"rbac_policy,omitempty"`
Router int `json:"router"`
SecurityGroup int `json:"security_group"`
SecurityGroupRule int `json:"security_group_rule"`
Subnet int `json:"subnet"`
Subnetpool *int `json:"subnetpool,omitempty"`
}
NetworkQuotas defines model for NetworkQuotas.
func (*NetworkQuotas) DeepCopy ¶
func (in *NetworkQuotas) DeepCopy() *NetworkQuotas
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkQuotas.
func (*NetworkQuotas) DeepCopyInto ¶
func (in *NetworkQuotas) DeepCopyInto(out *NetworkQuotas)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Project ¶
type Project struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProjectSpec `json:"spec,omitempty"`
Status ProjectStatus `json:"status,omitempty"`
}
Project is the Schema for the projects API
func (*Project) AwaitReady ¶
func (v *Project) AwaitReady(ctx context.Context, timeout time.Duration, client client.Client, logger logr.Logger) error
AwaitReady blocks until the project is completely ready
func (*Project) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Project) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Project) SetupWebhookWithManager ¶
SetupWebhookWithManager registers the webhook within the manager
func (*Project) UpdateProjectCondition ¶
func (r *Project) UpdateProjectCondition(ctx context.Context, reconcileClient client.Client, reason ProjectReadyReasons, message string) error
UpdateProjectCondition updates the given condition within the project object and patches its status subresource
func (*Project) UpdateRegionCondition ¶
func (r *Project) UpdateRegionCondition(ctx context.Context, reconcileClient client.Client, reason RegionReadyReasons, message string) error
UpdateRegionCondition updates the given condition within the project object and patches its status subresource
type ProjectCustomDefaulter ¶ added in v0.6.0
type ProjectCustomDefaulter struct {
}
func (*ProjectCustomDefaulter) DeepCopy ¶ added in v0.7.0
func (in *ProjectCustomDefaulter) DeepCopy() *ProjectCustomDefaulter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectCustomDefaulter.
func (*ProjectCustomDefaulter) DeepCopyInto ¶ added in v0.7.0
func (in *ProjectCustomDefaulter) DeepCopyInto(out *ProjectCustomDefaulter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectCustomValidator ¶ added in v0.6.0
type ProjectCustomValidator struct {
}
func (*ProjectCustomValidator) DeepCopy ¶ added in v0.7.0
func (in *ProjectCustomValidator) DeepCopy() *ProjectCustomValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectCustomValidator.
func (*ProjectCustomValidator) DeepCopyInto ¶ added in v0.7.0
func (in *ProjectCustomValidator) DeepCopyInto(out *ProjectCustomValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectCustomValidator) ValidateCreate ¶ added in v0.6.0
func (v *ProjectCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ProjectCustomValidator) ValidateDelete ¶ added in v0.6.0
func (v *ProjectCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ProjectCustomValidator) ValidateUpdate ¶ added in v0.6.0
func (v *ProjectCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ProjectList ¶
type ProjectList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Project `json:"items"`
}
ProjectList contains a list of Project
func (*ProjectList) DeepCopy ¶
func (in *ProjectList) DeepCopy() *ProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList.
func (*ProjectList) DeepCopyInto ¶
func (in *ProjectList) DeepCopyInto(out *ProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectList) DeepCopyObject ¶
func (in *ProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectReadyReasons ¶
type ProjectReadyReasons string
ProjectReadyReasons are the different states of readiness, which a project can have
const ( // ProjectIsReady is set when the project is ready ProjectIsReady ProjectReadyReasons = "ProjectIsReady" // ProjectIsUnready is set when the project is not ready ProjectIsUnready ProjectReadyReasons = "ProjectIsUnready" // ProjectNotFound is set when the project could not be found ProjectNotFound ProjectReadyReasons = "ProjectNotFound" // ProjectUnknown is set if the readiness could not be determined ProjectUnknown ProjectReadyReasons = "UnknownError" )
type ProjectSpec ¶
type ProjectSpec struct {
Region string `json:"region,omitempty"`
Description string `json:"description,omitempty"`
//Enabled *bool `json:"enabled,omitempty"`
Quotas *QuotaCollection `json:"quotas,omitempty"`
}
ProjectSpec defines the desired state of Project
func (*ProjectSpec) DeepCopy ¶
func (in *ProjectSpec) DeepCopy() *ProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec.
func (*ProjectSpec) DeepCopyInto ¶
func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectStatus ¶
ProjectStatus defines the observed state of Project
func (*ProjectStatus) DeepCopy ¶
func (in *ProjectStatus) DeepCopy() *ProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus.
func (*ProjectStatus) DeepCopyInto ¶
func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QuotaCollection ¶
type QuotaCollection struct {
Compute *ComputeQuotas `json:"compute,omitempty"`
Network *NetworkQuotas `json:"network,omitempty"`
Volume *VolumeQuotas `json:"volume,omitempty"`
}
QuotaCollection stores the different quota sub-types
func (*QuotaCollection) DeepCopy ¶
func (in *QuotaCollection) DeepCopy() *QuotaCollection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaCollection.
func (*QuotaCollection) DeepCopyInto ¶
func (in *QuotaCollection) DeepCopyInto(out *QuotaCollection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Region ¶
type Region struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RegionSpec `json:"spec,omitempty"`
Status RegionStatus `json:"status,omitempty"`
}
Region is the Schema for the regions API
func (*Region) AwaitReady ¶
func (v *Region) AwaitReady(ctx context.Context, timeout time.Duration, client client.Client, logger logr.Logger) error
AwaitReady blocks until the region is completely ready
func (*Region) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Region.
func (*Region) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Region) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Region) SetupWebhookWithManager ¶
SetupWebhookWithManager registers the webhook with the manager
func (*Region) UpdateRegionCondition ¶
func (r *Region) UpdateRegionCondition(ctx context.Context, reconcileClient client.Client, reason RegionReadyReasons, message string) error
UpdateRegionCondition updates the given condition within the region resource and updates its status subresource
type RegionCustomValidator ¶ added in v0.6.0
type RegionCustomValidator struct {
}
func (*RegionCustomValidator) DeepCopy ¶ added in v0.7.0
func (in *RegionCustomValidator) DeepCopy() *RegionCustomValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegionCustomValidator.
func (*RegionCustomValidator) DeepCopyInto ¶ added in v0.7.0
func (in *RegionCustomValidator) DeepCopyInto(out *RegionCustomValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RegionCustomValidator) ValidateCreate ¶ added in v0.6.0
func (v *RegionCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*RegionCustomValidator) ValidateDelete ¶ added in v0.6.0
func (v *RegionCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type RegionList ¶
type RegionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Region `json:"items"`
}
RegionList contains a list of Region
func (*RegionList) DeepCopy ¶
func (in *RegionList) DeepCopy() *RegionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegionList.
func (*RegionList) DeepCopyInto ¶
func (in *RegionList) DeepCopyInto(out *RegionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RegionList) DeepCopyObject ¶
func (in *RegionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RegionReadyReasons ¶
type RegionReadyReasons string
RegionReadyReasons are the different states of readiness, which a region can have
const ( // RegionIsReady is set when the region is ready RegionIsReady RegionReadyReasons = "RegionIsReady" // RegionIsUnready is set when the region is not ready RegionIsUnready RegionReadyReasons = "RegionIsUnready" // RegionNotFound is set when the region could not be found RegionNotFound RegionReadyReasons = "RegionNotFound" // RegionUnknown is set if the readiness could not be determined RegionUnknown RegionReadyReasons = "UnknownError" )
type RegionSpec ¶
type RegionSpec struct {
// Endpoint defines the Address of the PCO Reseller API
// Deprecated please use secretRef instead
// +optional
Endpoint string `json:"endpoint,omitempty"`
// Username defines the Username used to login to the PCO Reseller API
// Deprecated please use secretRef instead
// +optional
Username string `json:"username,omitempty"`
// Password defines the Password used to login to the PCO Reseller API
// Deprecated please use secretRef instead
// +optional
Password string `json:"password,omitempty"`
// SecretRef represets the reference to a Secret with the Following Format:
// endpoint: string
// username: string
// password: string
//
// +optional
SecretRef *SecretRef `json:"secretRef,omitempty"`
}
RegionSpec defines the desired state of Region
func (*RegionSpec) DeepCopy ¶
func (in *RegionSpec) DeepCopy() *RegionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegionSpec.
func (*RegionSpec) DeepCopyInto ¶
func (in *RegionSpec) DeepCopyInto(out *RegionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegionStatus ¶
RegionStatus defines the observed state of Region
func (*RegionStatus) DeepCopy ¶
func (in *RegionStatus) DeepCopy() *RegionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegionStatus.
func (*RegionStatus) DeepCopyInto ¶
func (in *RegionStatus) DeepCopyInto(out *RegionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶ added in v0.5.0
type SecretRef struct {
// Name of the Object
// +required
Name string `json:"name"`
// Namespace of the Object
// +required
Namespace string `json:"namespace"`
}
SecretRef defines the Reference to a Secret
func (*SecretRef) DeepCopy ¶ added in v0.5.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶ added in v0.5.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type User ¶
type User struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UserSpec `json:"spec,omitempty"`
Status UserStatus `json:"status,omitempty"`
}
User is the Schema for the users API
func (*User) AwaitReady ¶
func (v *User) AwaitReady(ctx context.Context, timeout time.Duration, client client.Client, logger logr.Logger) error
AwaitReady blocks until the user is completely ready
func (*User) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.
func (*User) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*User) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (User) DefaultUserProjectBindingName ¶
func (u User) DefaultUserProjectBindingName() types.NamespacedName
DefaultUserProjectBindingName returns the default project for the user
func (*User) SetupWebhookWithManager ¶
SetupWebhookWithManager registers the webhook with the manager
func (*User) UpdateUserCondition ¶
func (r *User) UpdateUserCondition(ctx context.Context, reconcileClient client.Client, reason UserReadyReasons, message string) error
UpdateUserCondition updates the given condition in the user object and patches its status subresource
func (User) UserAccessSecretName ¶
func (u User) UserAccessSecretName() types.NamespacedName
UserAccessSecretName returns the secret name for the user object
type UserCustomDefaulter ¶ added in v0.6.0
type UserCustomDefaulter struct {
}
+kubebuilder:webhook:path=/mutate-pco-plusserver-com-v1alpha1-user,mutating=true,failurePolicy=fail,sideEffects=None,groups=pco.plusserver.com,resources=users,verbs=create;update,versions=v1alpha1,name=muser.kb.io,admissionReviewVersions=v1
func (*UserCustomDefaulter) DeepCopy ¶ added in v0.7.0
func (in *UserCustomDefaulter) DeepCopy() *UserCustomDefaulter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserCustomDefaulter.
func (*UserCustomDefaulter) DeepCopyInto ¶ added in v0.7.0
func (in *UserCustomDefaulter) DeepCopyInto(out *UserCustomDefaulter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserCustomValidator ¶ added in v0.6.0
type UserCustomValidator struct {
}
func (*UserCustomValidator) DeepCopy ¶ added in v0.7.0
func (in *UserCustomValidator) DeepCopy() *UserCustomValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserCustomValidator.
func (*UserCustomValidator) DeepCopyInto ¶ added in v0.7.0
func (in *UserCustomValidator) DeepCopyInto(out *UserCustomValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserCustomValidator) ValidateCreate ¶ added in v0.6.0
func (v *UserCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*UserCustomValidator) ValidateDelete ¶ added in v0.6.0
func (v *UserCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type UserList ¶
type UserList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []User `json:"items"`
}
UserList contains a list of User
func (*UserList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList.
func (*UserList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserProjectBinding ¶
type UserProjectBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UserProjectBindingSpec `json:"spec,omitempty"`
Status UserProjectBindingStatus `json:"status,omitempty"`
}
UserProjectBinding is the Schema for the userprojectbindings API
func (UserProjectBinding) ApplicationCredentialName ¶
func (upb UserProjectBinding) ApplicationCredentialName() string
ApplicationCredentialName returns the target application credential name
func (*UserProjectBinding) AwaitReady ¶
func (v *UserProjectBinding) AwaitReady(ctx context.Context, timeout time.Duration, client client.Client, logger logr.Logger) error
AwaitReady blocks until the userprojectbinding is completely ready
func (*UserProjectBinding) DeepCopy ¶
func (in *UserProjectBinding) DeepCopy() *UserProjectBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProjectBinding.
func (*UserProjectBinding) DeepCopyInto ¶
func (in *UserProjectBinding) DeepCopyInto(out *UserProjectBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserProjectBinding) DeepCopyObject ¶
func (in *UserProjectBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*UserProjectBinding) SetupWebhookWithManager ¶
func (r *UserProjectBinding) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager registers the webhook within the manager
func (*UserProjectBinding) UpdateProjectCondition ¶
func (r *UserProjectBinding) UpdateProjectCondition(ctx context.Context, reconcileClient client.Client, reason ProjectReadyReasons, message string) error
UpdateProjectCondition updates the given condition within the userprojectbinding resource and patches its status subresource
func (*UserProjectBinding) UpdateUserCondition ¶
func (r *UserProjectBinding) UpdateUserCondition(ctx context.Context, reconcileClient client.Client, reason UserReadyReasons, message string) error
UpdateUserCondition updates the given condition within the userprojectbinding resource and patches its status subresource
func (*UserProjectBinding) UpdateUserProjectBindingCondition ¶
func (r *UserProjectBinding) UpdateUserProjectBindingCondition(ctx context.Context, reconcileClient client.Client, reason UserProjectBindingReadyReasons, message string) error
UpdateUserProjectBindingCondition updates the given condition within the userprojectbinding resource and patches its status subresource
type UserProjectBindingCustomValidator ¶ added in v0.6.0
type UserProjectBindingCustomValidator struct {
}
TODO(user): change verbs to "verbs=create;update;delete" if you want to enable deletion validation. +kubebuilder:webhook:path=/validate-pco-plusserver-com-v1alpha1-userprojectbinding,mutating=false,failurePolicy=fail,sideEffects=None,groups=pco.plusserver.com,resources=userprojectbindings,verbs=create;update,versions=v1alpha1,name=vuserprojectbinding.kb.io,admissionReviewVersions=v1
func (*UserProjectBindingCustomValidator) DeepCopy ¶ added in v0.7.0
func (in *UserProjectBindingCustomValidator) DeepCopy() *UserProjectBindingCustomValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProjectBindingCustomValidator.
func (*UserProjectBindingCustomValidator) DeepCopyInto ¶ added in v0.7.0
func (in *UserProjectBindingCustomValidator) DeepCopyInto(out *UserProjectBindingCustomValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserProjectBindingCustomValidator) ValidateCreate ¶ added in v0.6.0
func (v *UserProjectBindingCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*UserProjectBindingCustomValidator) ValidateDelete ¶ added in v0.6.0
func (v *UserProjectBindingCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*UserProjectBindingCustomValidator) ValidateUpdate ¶ added in v0.6.0
func (v *UserProjectBindingCustomValidator) ValidateUpdate(ctx context.Context, newObj runtime.Object, oldObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type UserProjectBindingList ¶
type UserProjectBindingList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []UserProjectBinding `json:"items"`
}
UserProjectBindingList contains a list of UserProjectBinding
func (*UserProjectBindingList) DeepCopy ¶
func (in *UserProjectBindingList) DeepCopy() *UserProjectBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProjectBindingList.
func (*UserProjectBindingList) DeepCopyInto ¶
func (in *UserProjectBindingList) DeepCopyInto(out *UserProjectBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserProjectBindingList) DeepCopyObject ¶
func (in *UserProjectBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserProjectBindingReadyReasons ¶
type UserProjectBindingReadyReasons string
UserProjectBindingReadyReasons are the different states of readiness, which a userprojectbinding can have
const ( // UserProjectBindingIsReady is set when the userprojectbinding is ready UserProjectBindingIsReady UserProjectBindingReadyReasons = "UserProjectBindingIsReady" // UserProjectBindingUnknown is set if the readiness could not be determined UserProjectBindingUnknown UserProjectBindingReadyReasons = "UnknownError" )
type UserProjectBindingSpec ¶
type UserProjectBindingSpec struct {
Project string `json:"project"`
User string `json:"user"`
ApplicationCredential bool `json:"applicationCredential,omitempty"`
}
UserProjectBindingSpec defines the desired state of UserProjectBinding
func (*UserProjectBindingSpec) DeepCopy ¶
func (in *UserProjectBindingSpec) DeepCopy() *UserProjectBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProjectBindingSpec.
func (*UserProjectBindingSpec) DeepCopyInto ¶
func (in *UserProjectBindingSpec) DeepCopyInto(out *UserProjectBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserProjectBindingStatus ¶
UserProjectBindingStatus defines the observed state of UserProjectBinding
func (*UserProjectBindingStatus) DeepCopy ¶
func (in *UserProjectBindingStatus) DeepCopy() *UserProjectBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProjectBindingStatus.
func (*UserProjectBindingStatus) DeepCopyInto ¶
func (in *UserProjectBindingStatus) DeepCopyInto(out *UserProjectBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserReadyReasons ¶
type UserReadyReasons string
UserReadyReasons are the different states of readiness, which a user can have
const ( // UserIsReady is set when the user is ready UserIsReady UserReadyReasons = "UserIsReady" // UserHasNoSecret is set when the users secret could not be found UserHasNoSecret UserReadyReasons = "SecretNotFound" // UserNotFound is set when the user could not be found UserNotFound UserReadyReasons = "UserNotFound" // UserIsUnready is set when the user is not ready UserIsUnready UserReadyReasons = "UserIsUnready" // UserUnknown is set if the readiness could not be determined UserUnknown UserReadyReasons = "UnknownError" )
type UserSpec ¶
type UserSpec struct {
// Description is a free-text field for storing information about the user
Description string `json:"description,omitempty"`
// Enabled represents if the user is enabled or not
Enabled *bool `json:"enabled,omitempty"`
}
UserSpec defines the desired state of User
func (*UserSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec.
func (*UserSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserStatus ¶
type UserStatus struct {
// Conditions store the conditions of the user object
Conditions []metav1.Condition `json:"conditions"`
}
UserStatus defines the observed state of User
func (*UserStatus) DeepCopy ¶
func (in *UserStatus) DeepCopy() *UserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus.
func (*UserStatus) DeepCopyInto ¶
func (in *UserStatus) DeepCopyInto(out *UserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeQuotas ¶
type VolumeQuotas struct {
BackupGigabytes int `json:"backup_gigabytes"`
Backups int `json:"backups"`
// Maximum amount of available Storage
Gigabytes *int `json:"gigabytes,omitempty"`
Groups *int `json:"groups,omitempty"`
PerVolumeGigabytes *int `json:"per_volume_gigabytes,omitempty"`
// Maximum amount of snapshots
Snapshots *int `json:"snapshots,omitempty"`
Volumes int `json:"volumes"`
}
VolumeQuotas defines model for VolumeQuotas.
func (*VolumeQuotas) DeepCopy ¶
func (in *VolumeQuotas) DeepCopy() *VolumeQuotas
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeQuotas.
func (*VolumeQuotas) DeepCopyInto ¶
func (in *VolumeQuotas) DeepCopyInto(out *VolumeQuotas)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.