Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- type ReconcileSonarQube
- func (r *ReconcileSonarQube) Labels(cr *sonarsourcev1alpha1.SonarQube) map[string]string
- func (r *ReconcileSonarQube) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileSonarQube) ReconcileSecret(cr *sonarsourcev1alpha1.SonarQube) (*corev1.Secret, error)
- func (r *ReconcileSonarQube) ReconcileService(cr *sonarsourcev1alpha1.SonarQube) (*corev1.Service, error)
- func (r *ReconcileSonarQube) ReconcileServiceAccount(cr *sonarsourcev1alpha1.SonarQube) (*corev1.ServiceAccount, error)
- func (r *ReconcileSonarQube) ReconcileSonarQubeServers(cr *sonarsourcev1alpha1.SonarQube) (map[sonarsourcev1alpha1.ServerType][]*sonarsourcev1alpha1.SonarQubeServer, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileSonarQube ¶
type ReconcileSonarQube struct {
// contains filtered or unexported fields
}
ReconcileSonarQube reconciles a SonarQube object
func (*ReconcileSonarQube) Labels ¶
func (r *ReconcileSonarQube) Labels(cr *sonarsourcev1alpha1.SonarQube) map[string]string
func (*ReconcileSonarQube) Reconcile ¶
Reconcile reads that state of the cluster for a SonarQube object and makes changes based on the state read and what is in the SonarQube.Spec
func (*ReconcileSonarQube) ReconcileSecret ¶
func (r *ReconcileSonarQube) ReconcileSecret(cr *sonarsourcev1alpha1.SonarQube) (*corev1.Secret, error)
Reconciles Secret for SonarQube Returns: Secret, Error If Error is non-nil, Service is not in expected state Errors:
ErrorReasonSpecUpdate: returned when spec does not have secret name ErrorReasonResourceCreate: returned when secret does not exists ErrorReasonResourceUpdate: returned when secret was updated to meet expected state ErrorReasonUnknown: returned when unhandled error from client occurs
func (*ReconcileSonarQube) ReconcileService ¶
func (r *ReconcileSonarQube) ReconcileService(cr *sonarsourcev1alpha1.SonarQube) (*corev1.Service, error)
Reconciles Service for SonarQube Returns: Service, Error If Error is non-nil, Service is not in expected state Errors:
ErrorReasonResourceCreate: returned when Service does not exists ErrorReasonResourceUpdate: returned when Service was updated to meet expected state ErrorReasonUnknown: returned when unhandled error from client occurs
func (*ReconcileSonarQube) ReconcileServiceAccount ¶
func (r *ReconcileSonarQube) ReconcileServiceAccount(cr *sonarsourcev1alpha1.SonarQube) (*corev1.ServiceAccount, error)
Reconciles Service for SonarQube Returns: Service, Error If Error is non-nil, Service is not in expected state Errors:
ErrorReasonResourceCreate: returned when Service does not exists ErrorReasonResourceUpdate: returned when Service was updated to meet expected state ErrorReasonUnknown: returned when unhandled error from client occurs
func (*ReconcileSonarQube) ReconcileSonarQubeServers ¶
func (r *ReconcileSonarQube) ReconcileSonarQubeServers(cr *sonarsourcev1alpha1.SonarQube) (map[sonarsourcev1alpha1.ServerType][]*sonarsourcev1alpha1.SonarQubeServer, error)
Reconciles Service for SonarQube Returns: Service, Error If Error is non-nil, Service is not in expected state Errors:
ErrorReasonResourceCreate: returned when Service does not exists ErrorReasonResourceUpdate: returned when Service was updated to meet expected state ErrorReasonUnknown: returned when unhandled error from client occurs