Documentation ¶
Index ¶
- Constants
- func ClearConditions(conditions status.Conditions) status.Conditions
- func ContainsString(s []string, e string) bool
- func CreateResourceIfNotFound(client client.Client, object, output runtime.Object) error
- func GenVersion(spec interface{}, secret []byte) (string, error)
- func GetDeploymentCondition(deployment *appsv1.Deployment, condition appsv1.DeploymentConditionType) corev1.ConditionStatus
- func GetImage(edition, version *string) string
- func GetProperties(s *corev1.Secret, f string) (*properties.Properties, error)
- func IsOwner(owner, child metav1.Object) bool
- func ParseErrorForReconcileResult(client client.Client, object interface{}, err error) (reconcile.Result, error)
- func ServicePorts(serverType sonarsourcev1alpha1.ServerType) []corev1.ServicePort
- func UpdateResource(client client.Writer, object runtime.Object, reason ErrorType, message string) error
- func UpdateStatus(client client.Client, newObject interface{}, object interface{})
- func VerifyService(client client.Client, service1, service2 *corev1.Service) error
- type Error
- type ErrorType
- type SQError
- type SecretMapper
- type Status
Constants ¶
View Source
const (
DefaultImage = "sonarqube"
)
Variables ¶
This section is empty.
Functions ¶
func ClearConditions ¶
func ClearConditions(conditions status.Conditions) status.Conditions
func ContainsString ¶
func GenVersion ¶
func GetDeploymentCondition ¶
func GetDeploymentCondition(deployment *appsv1.Deployment, condition appsv1.DeploymentConditionType) corev1.ConditionStatus
func GetProperties ¶
func GetProperties(s *corev1.Secret, f string) (*properties.Properties, error)
func ServicePorts ¶
func ServicePorts(serverType sonarsourcev1alpha1.ServerType) []corev1.ServicePort
func UpdateResource ¶
func UpdateStatus ¶
Types ¶
type ErrorType ¶
type ErrorType string
const ( ErrorReasonSpecUpdate ErrorType = "SpecUpdate" ErrorReasonSpecInvalid ErrorType = "SpecInvalid" ErrorReasonResourceCreate ErrorType = "ResourceCreate" ErrorReasonResourceUpdate ErrorType = "ResourceUpdate" ErrorReasonResourceWaiting ErrorType = "ResourceWaiting" ErrorReasonResourceInvalid ErrorType = "ResourceInvalid" ErrorReasonResourceShutdown ErrorType = "ResourceShutdown" ErrorReasonServerWaiting ErrorType = "ServerWaiting" ErrorReasonServerDown ErrorType = "ServerDown" ErrorReasonUnknown ErrorType = "Unknown" )
func ReasonForError ¶
ReasonForError returns the HTTP status for a particular error.
type SecretMapper ¶
type SecretMapper struct {
Annotation string
}
Click to show internal directories.
Click to hide internal directories.