v1alpha1

package
v0.0.0-...-239afe9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

+groupName=compass.kyma-project.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "compass.kyma-project.io", Version: "v1alpha1"}

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 CertificateStatus

type CertificateStatus struct {
	// +optional
	// +nullable
	Acquired metav1.Time `json:"acquired"`
	// +optional
	// +nullable
	NotBefore metav1.Time `json:"notBefore"`
	// +optional
	// +nullable
	NotAfter metav1.Time `json:"notAfter"`
}

CertificateStatus represents the status of the certificate

func (*CertificateStatus) DeepCopy

func (in *CertificateStatus) DeepCopy() *CertificateStatus

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

func (*CertificateStatus) DeepCopyInto

func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus)

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

type CompassConnection

type CompassConnection struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CompassConnectionSpec   `json:"spec"`
	Status            CompassConnectionStatus `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope=Cluster

func (*CompassConnection) DeepCopy

func (in *CompassConnection) DeepCopy() *CompassConnection

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

func (*CompassConnection) DeepCopyInto

func (in *CompassConnection) DeepCopyInto(out *CompassConnection)

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

func (*CompassConnection) DeepCopyObject

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

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

func (CompassConnection) Failed

func (in CompassConnection) Failed() bool

func (*CompassConnection) SetCertificateStatus

func (in *CompassConnection) SetCertificateStatus(acquired metav1.Time, certificate *x509.Certificate)

func (CompassConnection) ShouldRenewCertificate

func (in CompassConnection) ShouldRenewCertificate(certValidityRenewalThreshold float64, minimalSyncTime time.Duration) bool

type CompassConnectionList

type CompassConnectionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []CompassConnection `json:"items"`
}

func (*CompassConnectionList) DeepCopy

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

func (*CompassConnectionList) DeepCopyInto

func (in *CompassConnectionList) DeepCopyInto(out *CompassConnectionList)

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

func (*CompassConnectionList) DeepCopyObject

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

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

type CompassConnectionSpec

type CompassConnectionSpec struct {
	ManagementInfo        ManagementInfo `json:"managementInfo"`
	ResyncNow             bool           `json:"resyncNow,omitempty"`
	RefreshCredentialsNow bool           `json:"refreshCredentialsNow,omitempty"`
}

func (*CompassConnectionSpec) DeepCopy

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

func (*CompassConnectionSpec) DeepCopyInto

func (in *CompassConnectionSpec) DeepCopyInto(out *CompassConnectionSpec)

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

type CompassConnectionStatus

type CompassConnectionStatus struct {
	State            ConnectionState   `json:"connectionState"`
	ConnectionStatus *ConnectionStatus `json:"connectionStatus"`
	// +optional
	// +nullable
	SynchronizationStatus *SynchronizationStatus `json:"synchronizationStatus"`
}

func (*CompassConnectionStatus) DeepCopy

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

func (*CompassConnectionStatus) DeepCopyInto

func (in *CompassConnectionStatus) DeepCopyInto(out *CompassConnectionStatus)

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

func (CompassConnectionStatus) String

func (s CompassConnectionStatus) String() string

type ConnectionProcessStatus

type ConnectionProcessStatus struct {
	ConnectionEstablished bool
}

func (*ConnectionProcessStatus) DeepCopy

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

func (*ConnectionProcessStatus) DeepCopyInto

func (in *ConnectionProcessStatus) DeepCopyInto(out *ConnectionProcessStatus)

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

type ConnectionState

type ConnectionState string
const (
	// Connection was established successfully
	Connected ConnectionState = "Connected"
	// Connection process failed during authentication to Compass
	ConnectionFailed ConnectionState = "ConnectionFailed"
	// Connection was established but the error occurred during connection maintenance
	ConnectionMaintenanceFailed ConnectionState = "ConnectionMaintenanceFailed"
	// Connection was established but configuration fetching failed
	SynchronizationFailed ConnectionState = "SynchronizationFailed"
	// Connection was established but applying configuration failed
	ResourceApplicationFailed ConnectionState = "ResourceApplicationFailed"
	// Resources were applied successfully but Runtime metadata update failed
	MetadataUpdateFailed ConnectionState = "MetadataUpdateFailed"
	// Connection was successful and configuration has been applied
	Synchronized ConnectionState = "Synchronized"
)

type ConnectionStatus

type ConnectionStatus struct {
	// +optional
	// +nullable
	Established metav1.Time `json:"established"`
	// +optional
	// +nullable
	Renewed metav1.Time `json:"renewed,omitempty"`
	// +optional
	// +nullable
	LastSync metav1.Time `json:"lastSync"`
	// +optional
	// +nullable
	LastSuccess       metav1.Time       `json:"lastSuccess"`
	CertificateStatus CertificateStatus `json:"certificateStatus"`
	Error             string            `json:"error,omitempty"`
}

ConnectionStatus represents status of a connection to Compass

func (*ConnectionStatus) DeepCopy

func (in *ConnectionStatus) DeepCopy() *ConnectionStatus

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

func (*ConnectionStatus) DeepCopyInto

func (in *ConnectionStatus) DeepCopyInto(out *ConnectionStatus)

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

type ManagementInfo

type ManagementInfo struct {
	DirectorURL  string `json:"directorUrl"`
	ConnectorURL string `json:"connectorUrl"`
}

func (*ManagementInfo) DeepCopy

func (in *ManagementInfo) DeepCopy() *ManagementInfo

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

func (*ManagementInfo) DeepCopyInto

func (in *ManagementInfo) DeepCopyInto(out *ManagementInfo)

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

type SynchronizationStatus

type SynchronizationStatus struct {
	// +optional
	// +nullable
	LastAttempt metav1.Time `json:"lastAttempt"`
	// +optional
	// +nullable
	LastSuccessfulFetch metav1.Time `json:"lastSuccessfulFetch"`
	// +optional
	// +nullable
	LastSuccessfulApplication metav1.Time `json:"lastSuccessfulApplication"`
	Error                     string      `json:"error,omitempty"`
}

SynchronizationStatus represent the status of Applications synchronization with Compass

func (*SynchronizationStatus) DeepCopy

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

func (*SynchronizationStatus) DeepCopyInto

func (in *SynchronizationStatus) DeepCopyInto(out *SynchronizationStatus)

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