Documentation ¶
Overview ¶
Package v1alpha1 - The following parameters are specific to the `sts.min.io/v1alpha1` MinIO Policy Binding CRD API PolicyBinding is an Authorization mechanism managed by the Minio Operator. Using Kubernetes ServiceAccount JSON Web Tokens the binding allow a ServiceAccount to assume temporary IAM credentials. For more complete documentation on this object, see the https://docs.min.io/minio/k8s/reference/minio-operator-reference.html#minio-operator-yaml-reference[MinIO Kubernetes Documentation]. PolicyBinding is added as part of the MinIO Operator v5.0.0. + +groupName=sts.min.io +versionName=v1alpha1
Index ¶
Constants ¶
const Version = "v1alpha1"
Version specifies the API Version
Variables ¶
var ( // SchemeBuilder collects the scheme builder functions for the MinIO // Operator API. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies the SchemeBuilder functions to a specified scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: operator.GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Application ¶
type Application struct { // *Required* + Namespace string `json:"namespace"` // *Required* + ServiceAccount string `json:"serviceaccount"` }
Application defines the `Namespace` and `ServiceAccount` to authorize the usage of the policies listed
func (*Application) DeepCopy ¶
func (in *Application) DeepCopy() *Application
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.
func (*Application) DeepCopyInto ¶
func (in *Application) DeepCopyInto(out *Application)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyBinding ¶
type PolicyBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // *Required* + // // The root field for the MinIO PolicyBinding object. Spec PolicyBindingSpec `json:"spec,omitempty"` // Status provides details of the state of the PolicyBinding // +optional Status PolicyBindingStatus `json:"status,omitempty"` }
PolicyBinding is a https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/[Kubernetes object] describing a MinIO PolicyBinding.
func (*PolicyBinding) DeepCopy ¶
func (in *PolicyBinding) DeepCopy() *PolicyBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyBinding.
func (*PolicyBinding) DeepCopyInto ¶
func (in *PolicyBinding) DeepCopyInto(out *PolicyBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PolicyBinding) DeepCopyObject ¶
func (in *PolicyBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PolicyBindingList ¶
type PolicyBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PolicyBinding `json:"items"` }
PolicyBindingList is a list of PolicyBinding resources
func (*PolicyBindingList) DeepCopy ¶
func (in *PolicyBindingList) DeepCopy() *PolicyBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyBindingList.
func (*PolicyBindingList) DeepCopyInto ¶
func (in *PolicyBindingList) DeepCopyInto(out *PolicyBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PolicyBindingList) DeepCopyObject ¶
func (in *PolicyBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PolicyBindingSpec ¶
type PolicyBindingSpec struct { // *Required* + // // The Application Property identifies the namespace and service account that will be authorized Application *Application `json:"application"` // *Required* + Policies []string `json:"policies"` }
PolicyBindingSpec (`spec`) defines the configuration of a MinIO PolicyBinding object. +
func (*PolicyBindingSpec) DeepCopy ¶
func (in *PolicyBindingSpec) DeepCopy() *PolicyBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyBindingSpec.
func (*PolicyBindingSpec) DeepCopyInto ¶
func (in *PolicyBindingSpec) DeepCopyInto(out *PolicyBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyBindingStatus ¶
type PolicyBindingStatus struct { // *Required* + CurrentState string `json:"currentState"` // Keeps track of the invocations related to the PolicyBinding // +nullable Usage PolicyBindingUsage `json:"usage"` }
PolicyBindingStatus is the status for a PolicyBinding resource
func (*PolicyBindingStatus) DeepCopy ¶
func (in *PolicyBindingStatus) DeepCopy() *PolicyBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyBindingStatus.
func (*PolicyBindingStatus) DeepCopyInto ¶
func (in *PolicyBindingStatus) DeepCopyInto(out *PolicyBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyBindingUsage ¶
type PolicyBindingUsage struct {
Authorizations int64 `json:"authotizations,omitempty"`
}
PolicyBindingUsage are metrics regarding the usage of the policyBinding
func (*PolicyBindingUsage) DeepCopy ¶
func (in *PolicyBindingUsage) DeepCopy() *PolicyBindingUsage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyBindingUsage.
func (*PolicyBindingUsage) DeepCopyInto ¶
func (in *PolicyBindingUsage) DeepCopyInto(out *PolicyBindingUsage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.