v1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the kremser v1 API group +kubebuilder:object:generate=true +groupName=kremser.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kremser.dev", Version: "v1"}

	// 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 ForSpec

type ForSpec struct {
	//+kubebuilder:validation:Enum={Deployment,deployment,deploy,ReplicaSet,replicaset,rs,DaemonSet,daemonset,ds,StatefulSet,statefulset,ss,Service,service,svc}
	Kind string `json:"kind,omitempty"`
	// +optional
	// this can override the real pod selector that's associated for the deployment,rs,ds,ss or svc
	PodSelector map[string]string `json:"podSelector,omitempty"`
	Name        string            `json:"name"`
	Namespace   string            `json:"namespace,omitempty"`
}

ForSpec identifies the application of which the logs will be used for RBAC negotiation +k8s:openapi-gen=true

func (*ForSpec) DeepCopy

func (in *ForSpec) DeepCopy() *ForSpec

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

func (*ForSpec) DeepCopyInto

func (in *ForSpec) DeepCopyInto(out *ForSpec)

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

type RbacNegotiation

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

	Spec   RbacNegotiationSpec   `json:"spec,omitempty"`
	Status RbacNegotiationStatus `json:"status,omitempty"`
}

RbacNegotiation is the Schema for the rbacnegotiations API +kubebuilder:printcolumn:name="for kind",type=string,JSONPath=`.spec.for.kind`,description="For which kind the rbac negotiation was requested" +kubebuilder:printcolumn:name="for name",type=string,JSONPath=`.spec.for.name`,description="Name of the {kind}" +kubebuilder:printcolumn:name="status",type=string,JSONPath=`.status.status`,description="State of the negotiation" +kubebuilder:printcolumn:name="role",type=string,JSONPath=`.spec.role.name`,priority=10,description="Name of the associated role" +kubebuilder:printcolumn:name="entries",type=string,JSONPath=`.status.entriesAdded`,priority=12,description="How many RBAC entries have been added to the role" +kubebuilder:printcolumn:name="checked",type=date,JSONPath=`.status.lastCheck`,priority=13,description="When the last reconciliation was done" +kubebuilder:resource:shortName={rn,rbacn} +kubebuilder:pruning:PreserveUnknownFields

func (*RbacNegotiation) DeepCopy

func (in *RbacNegotiation) DeepCopy() *RbacNegotiation

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

func (*RbacNegotiation) DeepCopyInto

func (in *RbacNegotiation) DeepCopyInto(out *RbacNegotiation)

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

func (*RbacNegotiation) DeepCopyObject

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

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

type RbacNegotiationList

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

RbacNegotiationList contains a list of RbacNegotiation

func (*RbacNegotiationList) DeepCopy

func (in *RbacNegotiationList) DeepCopy() *RbacNegotiationList

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

func (*RbacNegotiationList) DeepCopyInto

func (in *RbacNegotiationList) DeepCopyInto(out *RbacNegotiationList)

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

func (*RbacNegotiationList) DeepCopyObject

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

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

type RbacNegotiationSpec

type RbacNegotiationSpec struct {
	For  ForSpec  `json:"for"`
	Role RoleSpec `json:"role,omitempty"`
	// +optional This needs to be provided if .spec.for.kind == service
	// this can override the real service account that's specified in the deployment,rs,ds or ss
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

RbacNegotiationSpec defines the desired state of RbacNegotiation +k8s:openapi-gen=true

func (*RbacNegotiationSpec) DeepCopy

func (in *RbacNegotiationSpec) DeepCopy() *RbacNegotiationSpec

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

func (*RbacNegotiationSpec) DeepCopyInto

func (in *RbacNegotiationSpec) DeepCopyInto(out *RbacNegotiationSpec)

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

type RbacNegotiationStatus

type RbacNegotiationStatus struct {
	//+kubebuilder:validation:Enum={Requested,InProgress,Error,Stable,Synced}
	//+kubebuilder:default=Requested
	Status    string      `json:"status,omitempty"`
	LastCheck metav1.Time `json:"lastCheck,omitempty" protobuf:"bytes,8,opt,name=lastCheck"`
	// +kubebuilder:validation:Minimum=0
	EntriesAdded int32 `json:"entriesAdded,omitempty"`
}

RbacNegotiationStatus defines the observed state of RbacNegotiation

func (*RbacNegotiationStatus) DeepCopy

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

func (*RbacNegotiationStatus) DeepCopyInto

func (in *RbacNegotiationStatus) DeepCopyInto(out *RbacNegotiationStatus)

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

type RoleSpec

type RoleSpec struct {
	Name             string `json:"name"`
	IsClusterRole    bool   `json:"isClusterRole,omitempty"`
	CreateIfNotExist bool   `json:"createIfNotExist,omitempty"`
}

RoleSpec identifies the role that would be updated by the operator +k8s:openapi-gen=true

func (*RoleSpec) DeepCopy

func (in *RoleSpec) DeepCopy() *RoleSpec

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

func (*RoleSpec) DeepCopyInto

func (in *RoleSpec) DeepCopyInto(out *RoleSpec)

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