Documentation ¶
Index ¶
- Constants
- Variables
- func ControllerSetUp(mgr manager.Manager, ns, configmap string, recorder record.EventRecorder) error
- func DoNotRequeue() (reconcile.Result, error)
- func Requeue() (reconcile.Result, error)
- func RequeueWithDelay(dur time.Duration) (reconcile.Result, error)
- func RequeueWithDelayAndError(dur time.Duration, e error) (reconcile.Result, error)
- func RequeueWithDelayMessage(ctx context.Context, dur time.Duration, message string) (reconcile.Result, error)
- func RequeueWithError(e error) (reconcile.Result, error)
- func RequeueWithErrorMessage(ctx context.Context, e error, message string) (reconcile.Result, error)
- func UpdateDBAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateDBConnectionError(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateDBCredentialsError(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateDBCredentialsNotFound(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateInferenceServiceNotPresent(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateInferenceServicePresent(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdatePVCAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdatePVCNotAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateRouteAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateRouteNotAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateTrustyAIServiceAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- func UpdateTrustyAIServiceNotAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
- type AvailabilityStatus
- type CustomCertificatesBundle
- type DeploymentConfig
- type DestinationRuleConfig
- type OAuthConfig
- type RouteConfig
- type ServiceConfig
- type ServiceMonitorConfig
- type ServiceTLSConfig
- type SubReconciler
- type TLSCertVolumes
- type TrustyAIServiceReconciler
- func (r *TrustyAIServiceReconciler) GetCustomCertificatesBundle(ctx context.Context, instance *trustyaiopendatahubiov1alpha1.TrustyAIService) CustomCertificatesBundle
- func (r *TrustyAIServiceReconciler) GetDeploymentsByLabel(ctx context.Context, namespace string, labelKey string, labelValue string) ([]appsv1.Deployment, error)
- func (r *TrustyAIServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *TrustyAIServiceReconciler) ReconcileRoute(instance *trustyaiopendatahubiov1alpha1.TrustyAIService, ctx context.Context) error
- func (r *TrustyAIServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
- type VirtualServiceConfig
Constants ¶
const ( STORAGE_PVC = "PVC" STORAGE_DATABASE = "DATABASE" )
Allowed storage formats
const ( OAuthServicePort = 443 OAuthName = "oauth-proxy" OAuthServicePortName = "oauth-proxy" )
OAuth constants
const ( StatusTypeInferenceServicesPresent = "InferenceServicesPresent" StatusTypePVCAvailable = "PVCAvailable" StatusTypeRouteAvailable = "RouteAvailable" StatusTypeAvailable = "Available" StatusTypeDBAvailable = "DBAvailable" )
Status types
const ( StatusReasonInferenceServicesNotFound = "InferenceServicesNotFound" StatusReasonInferenceServicesFound = "InferenceServicesFound" StatusReasonPVCNotFound = "PVCNotFound" StatusReasonPVCFound = "PVCFound" StatusReasonRouteNotFound = "RouteNotFound" StatusReasonRouteFound = "RouteFound" StatusAvailable = "AllComponentsReady" StatusNotAvailable = "NotAllComponentsReady" StatusDBCredentialsNotFound = "DBCredentialsNotFound" StatusDBCredentialsError = "DBCredentialsError" StatusDBConnectionError = "DBConnectionError" StatusDBAvailable = "DBAvailable" )
Status reasons
const ( EventReasonPVCCreated = "PVCCreated" EventReasonInferenceServiceConfigured = "InferenceServiceConfigured" EventReasonServiceMonitorCreated = "ServiceMonitorCreated" )
Event reasons
const ( PhaseReady = "Ready" PhaseNotReady = "Not Ready" )
Phases
const ( DEPLOYMENT_MODE_MODELMESH = "ModelMesh" DEPLOYMENT_MODE_RAW = "RawDeployment" DEPLOYMENT_MODE_SERVERLESS = "Serverless" )
const (
ServiceName = "TAS"
)
const (
StateReasonCrashLoopBackOff = "CrashLoopBackOff"
)
Variables ¶
var ErrPVCNotReady = goerrors.New("PVC is not ready")
Functions ¶
func ControllerSetUp ¶
func DoNotRequeue ¶
func RequeueWithDelayMessage ¶
func RequeueWithErrorMessage ¶
func UpdateDBAvailable ¶
func UpdateDBAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateDBConnectionError ¶
func UpdateDBConnectionError(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateDBCredentialsError ¶
func UpdateDBCredentialsError(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateDBCredentialsNotFound ¶
func UpdateDBCredentialsNotFound(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateInferenceServiceNotPresent ¶
func UpdateInferenceServiceNotPresent(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateInferenceServicePresent ¶
func UpdateInferenceServicePresent(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdatePVCAvailable ¶
func UpdatePVCAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdatePVCNotAvailable ¶
func UpdatePVCNotAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateRouteAvailable ¶
func UpdateRouteAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateRouteNotAvailable ¶
func UpdateRouteNotAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateTrustyAIServiceAvailable ¶
func UpdateTrustyAIServiceAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
func UpdateTrustyAIServiceNotAvailable ¶
func UpdateTrustyAIServiceNotAvailable(saved *trustyaiopendatahubiov1alpha1.TrustyAIService)
Types ¶
type AvailabilityStatus ¶
type AvailabilityStatus struct { PVCReady bool DeploymentReady bool RouteReady bool InferenceServiceReady bool DBReady bool }
AvailabilityStatus has the readiness status of various resources.
func (*AvailabilityStatus) IsAllReady ¶
func (rs *AvailabilityStatus) IsAllReady(mode string) bool
IsAllReady checks if all the necessary readiness fields are true for the specific mode
type DeploymentConfig ¶
type DeploymentConfig struct { Instance *trustyaiopendatahubiov1alpha1.TrustyAIService ServiceImage string OAuthImage string Schedule string VolumeMountName string PVCClaimName string CustomCertificatesBundle CustomCertificatesBundle Version string BatchSize int UseDBTLSCerts bool }
type DestinationRuleConfig ¶
DestinationRuleConfig has the variables for the DestinationRule template
type OAuthConfig ¶
type OAuthConfig struct {
ProxyImage string
}
type RouteConfig ¶
type ServiceConfig ¶
type ServiceMonitorConfig ¶
type ServiceTLSConfig ¶
type ServiceTLSConfig struct { Instance *trustyaiopendatahubiov1alpha1.TrustyAIService CustomCertificatesBundle CustomCertificatesBundle Version string }
type SubReconciler ¶
type SubReconciler = func(context.Context, ctrl.Request, *trustyaiopendatahubiov1alpha1.TrustyAIService) (*ctrl.Result, error)
type TLSCertVolumes ¶
type TLSCertVolumes struct {
// contains filtered or unexported fields
}
TLSCertVolumes holds the volume and volume mount for the TLS certificates
type TrustyAIServiceReconciler ¶
type TrustyAIServiceReconciler struct { client.Client Scheme *runtime.Scheme Namespace string EventRecorder record.EventRecorder }
TrustyAIServiceReconciler reconciles a TrustyAIService object
func (*TrustyAIServiceReconciler) GetCustomCertificatesBundle ¶
func (r *TrustyAIServiceReconciler) GetCustomCertificatesBundle(ctx context.Context, instance *trustyaiopendatahubiov1alpha1.TrustyAIService) CustomCertificatesBundle
func (*TrustyAIServiceReconciler) GetDeploymentsByLabel ¶
func (r *TrustyAIServiceReconciler) GetDeploymentsByLabel(ctx context.Context, namespace string, labelKey string, labelValue string) ([]appsv1.Deployment, error)
GetDeploymentsByLabel returns a list of Deployments that match a label key-value pair
func (*TrustyAIServiceReconciler) Reconcile ¶
func (r *TrustyAIServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*TrustyAIServiceReconciler) ReconcileRoute ¶
func (r *TrustyAIServiceReconciler) ReconcileRoute( instance *trustyaiopendatahubiov1alpha1.TrustyAIService, ctx context.Context) error
ReconcileRoute will manage the creation, update and deletion of the TLS route when the service is reconciled
func (*TrustyAIServiceReconciler) SetupWithManager ¶
func (r *TrustyAIServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type VirtualServiceConfig ¶
DestinationRuleConfig has the variables for the DestinationRule template