Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcileSonarQubeServer
- func (r *ReconcileSonarQubeServer) Labels(cr *sonarsourcev1alpha1.SonarQubeServer) map[string]string
- func (r *ReconcileSonarQubeServer) PodLabels(cr *sonarsourcev1alpha1.SonarQubeServer) map[string]string
- func (r *ReconcileSonarQubeServer) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileSonarQubeServer) ReconcileDeployment(cr *sonarsourcev1alpha1.SonarQubeServer) (*appsv1.Deployment, error)
- func (r *ReconcileSonarQubeServer) ReconcilePVC(cr *sonarsourcev1alpha1.SonarQubeServer) (*corev1.PersistentVolumeClaim, error)
- func (r *ReconcileSonarQubeServer) ReconcileSecret(cr *sonarsourcev1alpha1.SonarQubeServer) (*corev1.Secret, error)
- func (r *ReconcileSonarQubeServer) ReconcileServer(cr *sonarsourcev1alpha1.SonarQubeServer) error
- func (r *ReconcileSonarQubeServer) ReconcileService(cr *sonarsourcev1alpha1.SonarQubeServer) (*corev1.Service, error)
- func (r *ReconcileSonarQubeServer) ReconcileServiceAccount(cr *sonarsourcev1alpha1.SonarQubeServer) (*corev1.ServiceAccount, error)
- type Volume
Constants ¶
const ( PodGracePeriod int64 = 3600 VolumePathData string = "/opt/sonarqube/data" VolumePathLogs string = "/opt/sonarqube/logs" VolumePathTemp string = "/opt/sonarqube/temp" VolumePathExtensions string = "/opt/sonarqube/extensions" )
const (
DefaultVolumeSize = "1Gi"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileSonarQubeServer ¶
type ReconcileSonarQubeServer struct {
// contains filtered or unexported fields
}
ReconcileSonarQubeServer reconciles a SonarQubeServer object
func (*ReconcileSonarQubeServer) Labels ¶
func (r *ReconcileSonarQubeServer) Labels(cr *sonarsourcev1alpha1.SonarQubeServer) map[string]string
func (*ReconcileSonarQubeServer) PodLabels ¶
func (r *ReconcileSonarQubeServer) PodLabels(cr *sonarsourcev1alpha1.SonarQubeServer) map[string]string
func (*ReconcileSonarQubeServer) Reconcile ¶
Reconcile reads that state of the cluster for a SonarQubeServer object and makes changes based on the state read and what is in the SonarQubeServer.Spec
func (*ReconcileSonarQubeServer) ReconcileDeployment ¶
func (r *ReconcileSonarQubeServer) ReconcileDeployment(cr *sonarsourcev1alpha1.SonarQubeServer) (*appsv1.Deployment, error)
Reconciles Deployment for SonarQubeServer Returns: Deployment, Error If Error is non-nil, Deployment is not in expected state Errors:
ErrorReasonResourceCreate: returned when Deployment does not exists ErrorReasonResourceUpdate: returned when Deployment was updated to meet expected state ErrorReasonUnknown: returned when unhandled error from client occurs
func (*ReconcileSonarQubeServer) ReconcilePVC ¶
func (r *ReconcileSonarQubeServer) ReconcilePVC(cr *sonarsourcev1alpha1.SonarQubeServer) (*corev1.PersistentVolumeClaim, error)
Reconciles map[Volume]*PersistentVolumeClaim for SonarQubeServer Returns: map[Volume]*PersistentVolumeClaim, Error If Error is non-nil, map[Volume]*PersistentVolumeClaim is not in expected state Errors:
ErrorReasonResourceCreate: returned when any PersistentVolumeClaim does not exists ErrorReasonResourceUpdate: returned when any PersistentVolumeClaim was updated to meet expected state ErrorReasonUnknown: returned when unhandled error from client occurs
func (*ReconcileSonarQubeServer) ReconcileSecret ¶
func (r *ReconcileSonarQubeServer) ReconcileSecret(cr *sonarsourcev1alpha1.SonarQubeServer) (*corev1.Secret, error)
Reconciles Secret for SonarQubeServer 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 (*ReconcileSonarQubeServer) ReconcileServer ¶
func (r *ReconcileSonarQubeServer) ReconcileServer(cr *sonarsourcev1alpha1.SonarQubeServer) error
func (*ReconcileSonarQubeServer) ReconcileService ¶
func (r *ReconcileSonarQubeServer) ReconcileService(cr *sonarsourcev1alpha1.SonarQubeServer) (*corev1.Service, error)
Reconciles Service for SonarQubeServer 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 (*ReconcileSonarQubeServer) ReconcileServiceAccount ¶
func (r *ReconcileSonarQubeServer) ReconcileServiceAccount(cr *sonarsourcev1alpha1.SonarQubeServer) (*corev1.ServiceAccount, error)
Reconciles Service for SonarQubeServer 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