v1alpha1

package
v0.0.0-...-d687c5d Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// RequestFinalizer is the name for the finalizer to allow for deletion.
	// when an OperandRequest is deleted.
	RequestFinalizer = "finalizer.request.ibm.com"

	ConditionCreating   ConditionType = "Creating"
	ConditionUpdating   ConditionType = "Updating"
	ConditionDeleting   ConditionType = "Deleting"
	ConditionNotFound   ConditionType = "NotFound"
	ConditionOutofScope ConditionType = "OutofScope"
	ConditionReady      ConditionType = "Ready"
	ConditionNoConflict ConditionType = "NoConflict"

	OperatorReady      OperatorPhase = "Ready for Deployment"
	OperatorRunning    OperatorPhase = "Running"
	OperatorInstalling OperatorPhase = "Installing"
	OperatorUpdating   OperatorPhase = "Updating"
	OperatorFailed     OperatorPhase = "Failed"
	OperatorInit       OperatorPhase = "Initialized"
	OperatorNotFound   OperatorPhase = "Not Found"
	OperatorNone       OperatorPhase = ""

	ClusterPhaseNone       ClusterPhase = "Pending"
	ClusterPhaseCreating   ClusterPhase = "Creating"
	ClusterPhaseInstalling ClusterPhase = "Installing"
	ClusterPhaseUpdating   ClusterPhase = "Updating"
	ClusterPhaseRunning    ClusterPhase = "Running"
	ClusterPhaseFailed     ClusterPhase = "Failed"

	ResourceTypeOperandRegistry ResourceType = "operandregistry"
	ResourceTypeCatalogSource   ResourceType = "catalogsource"
	ResourceTypeSub             ResourceType = "subscription"
	ResourceTypeCsv             ResourceType = "csv"
	ResourceTypeOperator        ResourceType = "operator"
	ResourceTypeOperand         ResourceType = "operands"
)

Constants are used for state.

View Source
const AnnotationAuthDBSchemaVersion string = "authentication.operator.ibm.com/db-schema-version"
View Source
const AnnotationAuthMigrationComplete string = "authentication.operator.ibm.com/migration-complete"
View Source
const AnnotationAuthRetainMigrationArtifacts string = "authentication.operator.ibm.com/retain-migration-artifacts"
View Source
const AuditServiceIgnoreString string = "auditService no longer used - ignore"
View Source
const ConditionMigrated string = "MigrationsPerformed"
View Source
const ConditionMigrationsRunning = "MigrationsRunning"
View Source
const MessageMigrationFinished string = "Migration attempt finished"
View Source
const MessageMigrationInProgress string = "Migrations are currently being performed; monitor progress in the IM Operator \"migration_worker\" logs"
View Source
const MessageMigrationSuccess string = "All migrations completed successfully"
View Source
const ReasonMigrationComplete string = "Complete"
View Source
const ReasonMigrationFailure string = "Failed"
View Source
const ReasonMigrationsDone string = "Done"
View Source
const ReasonMigrationsInProgress string = "InProgress"

Variables

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

	// The following is a dedicated scheme for when ODLM is available on the cluster; it shares the same
	// GroupVersion as Authentication
	ODLMEnabledSchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
	AddODLMEnabledToScheme   = ODLMEnabledSchemeBuilder.AddToScheme
)

Functions

func NewMigrationCompleteCondition

func NewMigrationCompleteCondition() *metav1.Condition

func NewMigrationFailureCondition

func NewMigrationFailureCondition(name string) *metav1.Condition

func NewMigrationFinishedCondition

func NewMigrationFinishedCondition() *metav1.Condition

func NewMigrationInProgressCondition

func NewMigrationInProgressCondition() *metav1.Condition

Types

type AuditServiceSpec

type AuditServiceSpec struct {
	ImageRegistry string                       `json:"imageRegistry"`
	ImageName     string                       `json:"imageName"`
	ImageTag      string                       `json:"imageTag"`
	SyslogTlsPath string                       `json:"syslogTlsPath,omitempty"`
	Resources     *corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*AuditServiceSpec) DeepCopy

func (in *AuditServiceSpec) DeepCopy() *AuditServiceSpec

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

func (*AuditServiceSpec) DeepCopyInto

func (in *AuditServiceSpec) DeepCopyInto(out *AuditServiceSpec)

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

type AuthServiceSpec

type AuthServiceSpec struct {
	ImageRegistry    string                       `json:"imageRegistry"`
	ImageName        string                       `json:"imageName"`
	ImageTag         string                       `json:"imageTag"`
	RouterCertSecret string                       `json:"routerCertSecret"`
	Resources        *corev1.ResourceRequirements `json:"resources,omitempty"`
	LdapsCACert      string                       `json:"ldapsCACert"`
}

func (*AuthServiceSpec) DeepCopy

func (in *AuthServiceSpec) DeepCopy() *AuthServiceSpec

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

func (*AuthServiceSpec) DeepCopyInto

func (in *AuthServiceSpec) DeepCopyInto(out *AuthServiceSpec)

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

type Authentication

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

	// +kubebuilder:pruning:PreserveUnknownFields
	Spec AuthenticationSpec `json:"spec,omitempty"`
	// +kubebuilder:pruning:PreserveUnknownFields
	Status AuthenticationStatus `json:"status,omitempty"`
}

Authentication is the Schema for the authentications API

func (*Authentication) DeepCopy

func (in *Authentication) DeepCopy() *Authentication

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

func (*Authentication) DeepCopyInto

func (in *Authentication) DeepCopyInto(out *Authentication)

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

func (*Authentication) DeepCopyObject

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

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

func (*Authentication) GetDBSchemaVersion

func (a *Authentication) GetDBSchemaVersion() string

func (*Authentication) HasBeenMigrated

func (a *Authentication) HasBeenMigrated() bool

func (*Authentication) HasDBSchemaVersion

func (a *Authentication) HasDBSchemaVersion() bool

func (*Authentication) HasNoDBSchemaVersion

func (a *Authentication) HasNoDBSchemaVersion() bool

func (*Authentication) HasNotBeenMigrated

func (a *Authentication) HasNotBeenMigrated() bool

func (*Authentication) IsNotRetainingArtifacts

func (a *Authentication) IsNotRetainingArtifacts() bool

func (*Authentication) IsRetainingArtifacts

func (a *Authentication) IsRetainingArtifacts() bool

func (*Authentication) SetRequiredDummyData

func (a *Authentication) SetRequiredDummyData()

setRequiredDummyData writes dummy AuditServiceSpec data to an Authentication in order to maintain backwards- and forwards-compatibility with previous Authentication CRD releases. Running this function ensures that, if an earlier version of the Authentication CRD is installed on a cluster where this version's CRD was previously, the CRs created based upon this version's CRD will not break in a multi-tenancy scenario.

func (*Authentication) SetService

func (a *Authentication) SetService(ctx context.Context, service ServiceStatus, statusClient client.StatusClient, mu sync.Locker) (err error)

type AuthenticationList

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

AuthenticationList contains a list of Authentication

func (*AuthenticationList) DeepCopy

func (in *AuthenticationList) DeepCopy() *AuthenticationList

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

func (*AuthenticationList) DeepCopyInto

func (in *AuthenticationList) DeepCopyInto(out *AuthenticationList)

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

func (*AuthenticationList) DeepCopyObject

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

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

type AuthenticationSpec

type AuthenticationSpec struct {

	// Foo is an example field of Authentication. Edit authentication_types.go to remove/update
	OperatorVersion               string                 `json:"operatorVersion"`
	Replicas                      int32                  `json:"replicas"`
	Labels                        map[string]string      `json:"labels,omitempty"`
	AuditService                  AuditServiceSpec       `json:"auditService"`
	AuthService                   AuthServiceSpec        `json:"authService"`
	IdentityProvider              IdentityProviderSpec   `json:"identityProvider"`
	IdentityManager               IdentityManagerSpec    `json:"identityManager"`
	InitMongodb                   InitMongodbSpec        `json:"initMongodb"`
	ClientRegistration            ClientRegistrationSpec `json:"clientRegistration"`
	Config                        ConfigSpec             `json:"config"`
	EnableInstanaMetricCollection bool                   `json:"enableInstanaMetricCollection,omitempty"`
}

AuthenticationSpec defines the desired state of Authentication

func (*AuthenticationSpec) DeepCopy

func (in *AuthenticationSpec) DeepCopy() *AuthenticationSpec

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

func (*AuthenticationSpec) DeepCopyInto

func (in *AuthenticationSpec) DeepCopyInto(out *AuthenticationSpec)

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

type AuthenticationStatus

type AuthenticationStatus struct {
	Nodes      []string           `json:"nodes"`
	Service    ServiceStatus      `json:"service,omitempty"`
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

AuthenticationStatus defines the observed state of Authentication

func (*AuthenticationStatus) DeepCopy

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

func (*AuthenticationStatus) DeepCopyInto

func (in *AuthenticationStatus) DeepCopyInto(out *AuthenticationStatus)

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

type Bindable

type Bindable struct {
	// The secret identifies an existing secret. if it exists, the ODLM will share to the namespace of the OperandRequest.
	Secret string `json:"secret,omitempty"`
	// The configmap identifies an existing configmap object. if it exists, the ODLM will share to the namespace of the OperandRequest.
	Configmap string `json:"configmap,omitempty"`
	// Route data will be shared by copying it into a configmap which is then
	// created in the target namespace
	Route *Route `json:"route,omitempty"`
	// Service data will be shared by copying it into a configmap which is then
	// created in the target namespace
	Service *ServiceData `json:"service,omitempty"`
}

Bindable is a Kubernetes resources to be shared from one namespace to another. List of supported resources are Secrets, Configmaps, Services, and Routes. Secrets and Configmaps will be copied such that a new Secret/Configmap with exactly the same data will be created in the target namespace. Services and Routes data will be copied into a configmap in the target namespace.

func (*Bindable) DeepCopy

func (in *Bindable) DeepCopy() *Bindable

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

func (*Bindable) DeepCopyInto

func (in *Bindable) DeepCopyInto(out *Bindable)

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

type ClientRegistrationSpec

type ClientRegistrationSpec struct {
	ImageRegistry string                       `json:"imageRegistry"`
	ImageName     string                       `json:"imageName"`
	ImageTag      string                       `json:"imageTag"`
	Resources     *corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*ClientRegistrationSpec) DeepCopy

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

func (*ClientRegistrationSpec) DeepCopyInto

func (in *ClientRegistrationSpec) DeepCopyInto(out *ClientRegistrationSpec)

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

type ClusterPhase

type ClusterPhase string

ClusterPhase is the phase of the installation.

type Condition

type Condition struct {
	// Type of condition.
	Type ConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

Condition represents the current state of the Request Service. A condition might not show up if it is not happening.

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType

type ConditionType string

ConditionType is the condition of a service.

type ConfigSpec

type ConfigSpec struct {
	ClusterCADomain             string `json:"clusterCADomain"`
	DefaultAdminUser            string `json:"defaultAdminUser"`
	DefaultAdminPassword        string `json:"defaultAdminPassword"`
	ScimAdminUser               string `json:"scimAdminUser"`
	ScimAdminPassword           string `json:"scimAdminPassword"`
	ClusterName                 string `json:"clusterName"`
	ClusterInternalAddress      string `json:"clusterInternalAddress"`
	ClusterExternalAddress      string `json:"clusterExternalAddress"`
	WLPClientID                 string `json:"wlpClientID"`
	WLPClientSecret             string `json:"wlpClientSecret"`
	AuthUniqueHosts             string `json:"authUniqueHosts"`
	WLPClientRegistrationSecret string `json:"wlpClientRegistrationSecret"`
	InstallType                 string `json:"installType"`
	IsOpenshiftEnv              bool   `json:"isOpenshiftEnv"`
	OpenshiftPort               int32  `json:"openshiftPort"`
	ICPPort                     int32  `json:"icpPort"`
	FIPSEnabled                 bool   `json:"fipsEnabled"`
	ROKSEnabled                 bool   `json:"roksEnabled"`
	IBMCloudSaas                bool   `json:"ibmCloudSaas,omitempty"`
	OnPremMultipleDeploy        bool   `json:"onPremMultipleDeploy,omitempty"`
	SaasClientRedirectUrl       string `json:"saasClientRedirectUrl,omitempty"`
	NONCEEnabled                bool   `json:"nonceEnabled"`
	XFrameDomain                string `json:"xframeDomain,omitempty"`
	PreferredLogin              string `json:"preferredLogin,omitempty"`
	DefaultLogin                string `json:"defaultLogin,omitempty"`
	ROKSURL                     string `json:"roksURL"`
	ROKSUserPrefix              string `json:"roksUserPrefix"`
	EnableImpersonation         bool   `json:"enableImpersonation"`
	BootstrapUserId             string `json:"bootstrapUserId,omitempty"`
	ProviderIssuerURL           string `json:"providerIssuerURL,omitempty"`
	ClaimsSupported             string `json:"claimsSupported,omitempty"`
	ClaimsMap                   string `json:"claimsMap,omitempty"`
	ScopeClaim                  string `json:"scopeClaim,omitempty"`
	OIDCIssuerURL               string `json:"oidcIssuerURL"`
	AttrMappingFromConfig       bool   `json:"attrMappingFromConfig,omitempty"`
	ZenFrontDoor                bool   `json:"zenFrontDoor,omitempty"`
}

func (*ConfigSpec) DeepCopy

func (in *ConfigSpec) DeepCopy() *ConfigSpec

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

func (*ConfigSpec) DeepCopyInto

func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec)

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

type IdentityManagerSpec

type IdentityManagerSpec struct {
	ImageRegistry   string                       `json:"imageRegistry"`
	ImageName       string                       `json:"imageName"`
	ImageTag        string                       `json:"imageTag"`
	MasterNodesList string                       `json:"masterNodesList"`
	Resources       *corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*IdentityManagerSpec) DeepCopy

func (in *IdentityManagerSpec) DeepCopy() *IdentityManagerSpec

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

func (*IdentityManagerSpec) DeepCopyInto

func (in *IdentityManagerSpec) DeepCopyInto(out *IdentityManagerSpec)

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

type IdentityProviderSpec

type IdentityProviderSpec struct {
	ImageRegistry string                       `json:"imageRegistry"`
	ImageName     string                       `json:"imageName"`
	ImageTag      string                       `json:"imageTag"`
	Resources     *corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*IdentityProviderSpec) DeepCopy

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

func (*IdentityProviderSpec) DeepCopyInto

func (in *IdentityProviderSpec) DeepCopyInto(out *IdentityProviderSpec)

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

type InitMongodbSpec

type InitMongodbSpec struct {
	ImageRegistry string                       `json:"imageRegistry"`
	ImageName     string                       `json:"imageName"`
	ImageTag      string                       `json:"imageTag"`
	Resources     *corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*InitMongodbSpec) DeepCopy

func (in *InitMongodbSpec) DeepCopy() *InitMongodbSpec

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

func (*InitMongodbSpec) DeepCopyInto

func (in *InitMongodbSpec) DeepCopyInto(out *InitMongodbSpec)

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

type ManagedResourceStatus

type ManagedResourceStatus struct {
	ObjectName string `json:"objectName,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
	Kind       string `json:"kind,omitempty"`
	Status     string `json:"status,omitempty"`
}

func (*ManagedResourceStatus) DeepCopy

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

func (*ManagedResourceStatus) DeepCopyInto

func (in *ManagedResourceStatus) DeepCopyInto(out *ManagedResourceStatus)

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

type MemberPhase

type MemberPhase struct {
	// OperatorPhase shows the deploy phase of the operator.
	OperatorPhase OperatorPhase `json:"operatorPhase,omitempty"`
	// OperandPhase shows the deploy phase of the operator instance.
	OperandPhase ServicePhase `json:"operandPhase,omitempty"`
}

MemberPhase shows the phase of the operator and operator instance.

func (*MemberPhase) DeepCopy

func (in *MemberPhase) DeepCopy() *MemberPhase

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

func (*MemberPhase) DeepCopyInto

func (in *MemberPhase) DeepCopyInto(out *MemberPhase)

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

type MemberStatus

type MemberStatus struct {
	// The member name are the same as the subscription name.
	Name string `json:"name"`
	// The operand phase include None, Creating, Running, Failed.
	Phase MemberPhase `json:"phase,omitempty"`
	// OperandCRList shows the list of custom resource created by OperandRequest.
	OperandCRList []OperandCRMember `json:"operandCRList,omitempty"`
}

MemberStatus shows if the Operator is ready.

func (*MemberStatus) DeepCopy

func (in *MemberStatus) DeepCopy() *MemberStatus

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

func (*MemberStatus) DeepCopyInto

func (in *MemberStatus) DeepCopyInto(out *MemberStatus)

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

type OpReqServiceStatus

type OpReqServiceStatus struct {
	OperatorName string          `json:"operatorName,omitempty"`
	Namespace    string          `json:"namespace,omitempty"`
	Status       string          `json:"status,omitempty"`
	Resources    []OperandStatus `json:"resources,omitempty"`
}

func (*OpReqServiceStatus) DeepCopy

func (in *OpReqServiceStatus) DeepCopy() *OpReqServiceStatus

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

func (*OpReqServiceStatus) DeepCopyInto

func (in *OpReqServiceStatus) DeepCopyInto(out *OpReqServiceStatus)

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

type Operand

type Operand struct {
	// Name of the operand to be deployed.
	Name string `json:"name"`
	// The bindings section is used to specify names of secret and/or configmap.
	Bindings map[string]Bindable `json:"bindings,omitempty"`
	// Kind is used when users want to deploy multiple custom resources.
	// Kind identifies the kind of the custom resource.
	Kind string `json:"kind,omitempty"`
	// APIVersion defines the versioned schema of this representation of an object.
	APIVersion string `json:"apiVersion,omitempty"`
	// InstanceName is used when users want to deploy multiple custom resources.
	// It is the name of the custom resource.
	InstanceName string `json:"instanceName,omitempty"`
	// Spec is used when users want to deploy multiple custom resources.
	// It is the configuration map of custom resource.
	Spec *runtime.RawExtension `json:"spec,omitempty"`
}

Operand defines the name and binding information for one operator.

func (*Operand) DeepCopy

func (in *Operand) DeepCopy() *Operand

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

func (*Operand) DeepCopyInto

func (in *Operand) DeepCopyInto(out *Operand)

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

type OperandCRMember

type OperandCRMember struct {
	// Name is the name of the custom resource.
	Name string `json:"name,omitempty"`
	// Kind is the kind of the custom resource.
	Kind string `json:"kind,omitempty"`
	// APIVersion is the APIVersion of the custom resource.
	APIVersion string `json:"apiVersion,omitempty"`
}

OperandCRMember defines a custom resource created by OperandRequest.

func (*OperandCRMember) DeepCopy

func (in *OperandCRMember) DeepCopy() *OperandCRMember

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

func (*OperandCRMember) DeepCopyInto

func (in *OperandCRMember) DeepCopyInto(out *OperandCRMember)

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

type OperandRequest

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

	Spec   OperandRequestSpec   `json:"spec,omitempty"`
	Status OperandRequestStatus `json:"status,omitempty"`
}

OperandRequest is the Schema for the operandrequests API.

func (*OperandRequest) DeepCopy

func (in *OperandRequest) DeepCopy() *OperandRequest

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

func (*OperandRequest) DeepCopyInto

func (in *OperandRequest) DeepCopyInto(out *OperandRequest)

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

func (*OperandRequest) DeepCopyObject

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

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

type OperandRequestList

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

OperandRequestList contains a list of OperandRequest.

func (*OperandRequestList) DeepCopy

func (in *OperandRequestList) DeepCopy() *OperandRequestList

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

func (*OperandRequestList) DeepCopyInto

func (in *OperandRequestList) DeepCopyInto(out *OperandRequestList)

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

func (*OperandRequestList) DeepCopyObject

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

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

type OperandRequestSpec

type OperandRequestSpec struct {
	// Requests defines a list of operands installation.
	Requests []Request `json:"requests"`
}

The OperandRequestSpec identifies one or more specific operands (from a specific Registry) that should actually be installed.

func (*OperandRequestSpec) DeepCopy

func (in *OperandRequestSpec) DeepCopy() *OperandRequestSpec

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

func (*OperandRequestSpec) DeepCopyInto

func (in *OperandRequestSpec) DeepCopyInto(out *OperandRequestSpec)

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

type OperandRequestStatus

type OperandRequestStatus struct {
	// Conditions represents the current state of the Request Service.
	Conditions []Condition `json:"conditions,omitempty"`
	// Members represnets the current operand status of the set.
	Members []MemberStatus `json:"members,omitempty"`
	// Phase is the cluster running phase.
	Phase ClusterPhase `json:"phase,omitempty"`
	//Services reflect the status of operands beyond whether they have been created
	Services []OpReqServiceStatus `json:"services,omitempty"`
}

OperandRequestStatus defines the observed state of OperandRequest.

func (*OperandRequestStatus) DeepCopy

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

func (*OperandRequestStatus) DeepCopyInto

func (in *OperandRequestStatus) DeepCopyInto(out *OperandRequestStatus)

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

type OperandStatus

type OperandStatus struct {
	ObjectName       string           `json:"objectName,omitempty"`
	APIVersion       string           `json:"apiVersion,omitempty"`
	Namespace        string           `json:"namespace,omitempty"`
	Kind             string           `json:"kind,omitempty"`
	Status           string           `json:"status,omitempty"`
	ManagedResources []ResourceStatus `json:"managedResources,omitempty"`
}

func (*OperandStatus) DeepCopy

func (in *OperandStatus) DeepCopy() *OperandStatus

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

func (*OperandStatus) DeepCopyInto

func (in *OperandStatus) DeepCopyInto(out *OperandStatus)

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

type OperatorPhase

type OperatorPhase string

OperatorPhase defines the operator status.

type Request

type Request struct {
	// Operands defines a list of the OperandRegistry entry for the operand to be deployed.
	Operands []Operand `json:"operands"`
	// Specifies the name in which the OperandRegistry reside.
	Registry string `json:"registry"`
	// Specifies the namespace in which the OperandRegistry reside.
	// The default is the current namespace in which the request is defined.
	RegistryNamespace string `json:"registryNamespace,omitempty"`
	// Description is an optional description for the request.
	Description string `json:"description,omitempty"`
}

Request identifies a operand detail.

func (*Request) DeepCopy

func (in *Request) DeepCopy() *Request

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

func (*Request) DeepCopyInto

func (in *Request) DeepCopyInto(out *Request)

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

type ResourceStatus

type ResourceStatus struct {
	ObjectName string `json:"objectName,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
	Kind       string `json:"kind,omitempty"`
	Status     string `json:"status,omitempty"`
}

func (*ResourceStatus) DeepCopy

func (in *ResourceStatus) DeepCopy() *ResourceStatus

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

func (*ResourceStatus) DeepCopyInto

func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)

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

type ResourceType

type ResourceType string

ResourceType is the type of condition use.

type Route

type Route struct {
	// Name is the name of the OpenShift Route resource
	Name string `json:"name"`
	// Data is a key-value pair where the value is a YAML path to a value in the
	// OpenShift Route, e.g. .spec.host or .spec.tls.termination
	Data map[string]string `json:"data"`
}

Route represents the name and data inside an OpenShift route.

func (*Route) DeepCopy

func (in *Route) DeepCopy() *Route

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

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

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

type ServiceData

type ServiceData struct {
	// Name is the name of the Kubernetes Service resource
	Name string `json:"name"`
	// Data is a key-value pair where the value is a YAML path to a value in the
	// Kubernetes Service, e.g. .spec.ports[0]port
	Data map[string]string `json:"data"`
}

ServiceData represents the name and data inside an Kubernetes Service.

func (*ServiceData) DeepCopy

func (in *ServiceData) DeepCopy() *ServiceData

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

func (*ServiceData) DeepCopyInto

func (in *ServiceData) DeepCopyInto(out *ServiceData)

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

type ServicePhase

type ServicePhase string

ServicePhase defines the service status.

const (
	// ConfigFinalizer is the name for the finalizer to allow for deletion
	// when an OperandConfig is deleted.
	ConfigFinalizer = "finalizer.config.ibm.com"

	ServiceRunning  ServicePhase = "Running"
	ServiceFailed   ServicePhase = "Failed"
	ServiceInit     ServicePhase = "Initialized"
	ServiceCreating ServicePhase = "Creating"
	ServiceNotFound ServicePhase = "Not Found"
	ServiceNone     ServicePhase = ""
)

Service status.

type ServiceStatus

type ServiceStatus struct {
	ObjectName       string                  `json:"objectName,omitempty"`
	APIVersion       string                  `json:"apiVersion,omitempty"`
	Namespace        string                  `json:"namespace,omitempty"`
	Kind             string                  `json:"kind,omitempty"`
	Status           string                  `json:"status,omitempty"`
	ManagedResources []ManagedResourceStatus `json:"managedResources,omitempty"`
}

func (*ServiceStatus) DeepCopy

func (in *ServiceStatus) DeepCopy() *ServiceStatus

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

func (*ServiceStatus) DeepCopyInto

func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)

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

func (ServiceStatus) DeploymentsReady

func (s ServiceStatus) DeploymentsReady() bool

func (ServiceStatus) GVKReady

func (s ServiceStatus) GVKReady(gvk schema.GroupVersionKind) bool

func (ServiceStatus) IsReady

func (s ServiceStatus) IsReady() bool

func (ServiceStatus) ServicesReady

func (s ServiceStatus) ServicesReady() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL