v1

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package v1 contains API Schema definitions for the ibmcpcs.ibm.com v1 API group +kubebuilder:object:generate=true +groupName=ibmcpcs.ibm.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ibmcpcs.ibm.com", 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 Configmapshare

type Configmapshare struct {
	// Configmapname is the name of the configmap waiting for sharing
	Configmapname string `json:"configmapname"`
	// Sharewith is a list of the target namespace for sharing
	Sharewith []TargetNamespace `json:"sharewith"`
}

Configmapshare identifies a Configmap required to be shared to another namespace

func (*Configmapshare) DeepCopy

func (in *Configmapshare) DeepCopy() *Configmapshare

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

func (*Configmapshare) DeepCopyInto

func (in *Configmapshare) DeepCopyInto(out *Configmapshare)

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

type MemberPhase

type MemberPhase string

MemberPhase identifies the status of the

const (
	Running    MemberPhase = "Running"
	Failed     MemberPhase = "Failed"
	NotFound   MemberPhase = "NotFound"
	NotEnabled MemberPhase = "NotEnabled"
	None       MemberPhase = ""
)

Constants are used for status management

type SecretConfigmapMembers

type SecretConfigmapMembers struct {
	// SecretMembers represnets the current operand status of the set
	// +optional
	SecretMembers map[string]MemberPhase `json:"secretMembers,omitempty"`

	// ConfigmapMembers represnets the current operand status of the set
	// +optional
	ConfigmapMembers map[string]MemberPhase `json:"configmapMembers,omitempty"`
}

SecretConfigmapMembers defines the observed status of SecretShare

func (*SecretConfigmapMembers) DeepCopy

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

func (*SecretConfigmapMembers) DeepCopyInto

func (in *SecretConfigmapMembers) DeepCopyInto(out *SecretConfigmapMembers)

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

type SecretShare

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

	Spec   SecretShareSpec   `json:"spec,omitempty"`
	Status SecretShareStatus `json:"status,omitempty"`
}

SecretShare is the Schema for the secretshares API

func (*SecretShare) CheckConfigmapStatus

func (r *SecretShare) CheckConfigmapStatus(namespacedName string, status MemberPhase) bool

CheckConfigmapStatus checks the status of a configmap

func (*SecretShare) CheckSecretStatus

func (r *SecretShare) CheckSecretStatus(namespacedName string, status MemberPhase) bool

CheckSecretStatus checks the status of a secret

func (*SecretShare) DeepCopy

func (in *SecretShare) DeepCopy() *SecretShare

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

func (*SecretShare) DeepCopyInto

func (in *SecretShare) DeepCopyInto(out *SecretShare)

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

func (*SecretShare) DeepCopyObject

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

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

func (*SecretShare) InitStatus

func (r *SecretShare) InitStatus()

InitStatus check the status of a secret/configmap

func (*SecretShare) RemoveConfigmapStatus

func (r *SecretShare) RemoveConfigmapStatus(namespacedName string)

RemoveConfigmapStatus removes the status of a configmap

func (*SecretShare) RemoveSecretStatus

func (r *SecretShare) RemoveSecretStatus(namespacedName string)

RemoveSecretStatus removes the status of a secret

func (*SecretShare) UpdateConfigmapStatus

func (r *SecretShare) UpdateConfigmapStatus(namespacedName string, status MemberPhase) bool

UpdateConfigmapStatus updates the status of a configmap

func (*SecretShare) UpdateSecretStatus

func (r *SecretShare) UpdateSecretStatus(namespacedName string, status MemberPhase) bool

UpdateSecretStatus updates the status of a secret

type SecretShareList

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

SecretShareList contains a list of SecretShare

func (*SecretShareList) DeepCopy

func (in *SecretShareList) DeepCopy() *SecretShareList

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

func (*SecretShareList) DeepCopyInto

func (in *SecretShareList) DeepCopyInto(out *SecretShareList)

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

func (*SecretShareList) DeepCopyObject

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

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

type SecretShareSpec

type SecretShareSpec struct {
	// Secretshares defines a list of secret sharing information
	// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true
	Secretshares []Secretshare `json:"secretshares,omitempty"`
	// Configmapshares defines a list of configmap sharing information
	// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true
	Configmapshares []Configmapshare `json:"configmapshares,omitempty"`
}

SecretShareSpec defines the desired state of SecretShare

func (*SecretShareSpec) DeepCopy

func (in *SecretShareSpec) DeepCopy() *SecretShareSpec

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

func (*SecretShareSpec) DeepCopyInto

func (in *SecretShareSpec) DeepCopyInto(out *SecretShareSpec)

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

type SecretShareStatus

type SecretShareStatus struct {
	// Members represnets the current operand status of the set
	// +optional
	Members SecretConfigmapMembers `json:"members,omitempty"`
}

SecretShareStatus defines the observed status of SecretShare

func (*SecretShareStatus) DeepCopy

func (in *SecretShareStatus) DeepCopy() *SecretShareStatus

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

func (*SecretShareStatus) DeepCopyInto

func (in *SecretShareStatus) DeepCopyInto(out *SecretShareStatus)

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

type Secretshare

type Secretshare struct {
	// Secretname is the name of the secret waiting for sharing
	Secretname string `json:"secretname"`
	// Sharewith is a list of the target namespace for sharing
	Sharewith []TargetNamespace `json:"sharewith"`
}

Secretshare identifies a secret required to be shared to another namespace

func (*Secretshare) DeepCopy

func (in *Secretshare) DeepCopy() *Secretshare

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

func (*Secretshare) DeepCopyInto

func (in *Secretshare) DeepCopyInto(out *Secretshare)

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

type TargetNamespace

type TargetNamespace struct {
	// Namespace is the target namespace of the secret or configmap
	Namespace string `json:"namespace"`
}

TargetNamespace identifies the namespace the secret/configmap will be shared to

func (*TargetNamespace) DeepCopy

func (in *TargetNamespace) DeepCopy() *TargetNamespace

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

func (*TargetNamespace) DeepCopyInto

func (in *TargetNamespace) DeepCopyInto(out *TargetNamespace)

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