Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Ready indicates that the service is ready Ready = "Ready" // NotReady indicates that the service is not yet ready NotReady = "NotReady" // Failed indicates that the service has failed Failed = "Failed" // ReasonServiceAccountFailed indicates that the creation of serviceaccount has failed ReasonServiceAccountFailed = "ServiceAccountFailed" // ReasonRoleFailed indicates that the creation of serviceaccount has failed ReasonRoleFailed = "RoleFailed" // ReasonRoleBindingFailed indicates that the creation of rolebinding has failed ReasonRoleBindingFailed = "RoleBindingFailed" // ReasonServiceFailed indicates that the creation of service has failed ReasonServiceFailed = "ServiceFailed" // ReasonIngressFailed indicates that the creation of ingress has failed ReasonIngressFailed = "IngressFailed" // ReasonHPAFailed indicates that the creation of hpa has failed ReasonHPAFailed = "HPAFailed" // ReasonSCCFailed indicates that the creation of scc has failed ReasonSCCFailed = "SCCFailed" // ReasonServiceMonitorFailed indicates that the creation of Service Monitor has failed ReasonServiceMonitorFailed = "ServiceMonitorFailed" // ReasonDeploymentFailed indicates that the creation of deployment has failed ReasonDeploymentFailed = "DeploymentFailed" // ReasonStatefulSetFailed indicates that the creation of statefulset has failed ReasonStatefulSetFailed = "StatefulsetFailed" )
Variables ¶
This section is empty.
Functions ¶
func UpdateCondition ¶
func UpdateCondition(conditions *[]metav1.Condition, conditionType string, status metav1.ConditionStatus, reason, message string)
UpdateCondition updates the given condition into the conditions list
Types ¶
type Updater ¶
type Updater interface { SetConditionsReady(ctx context.Context, cr *appsv1alpha1.NIMService, reason, message string) error SetConditionsNotReady(ctx context.Context, cr *appsv1alpha1.NIMService, reason, message string) error SetConditionsFailed(ctx context.Context, cr *appsv1alpha1.NIMService, reason, message string) error }
Updater is the condition updater
func NewUpdater ¶
NewUpdater returns an instance of updater
Click to show internal directories.
Click to hide internal directories.