Documentation ¶
Index ¶
Constants ¶
View Source
const ( NexusCommunityImage = "docker.io/sonatype/nexus3" NexusCertifiedImage = "registry.connect.redhat.com/sonatype/nexus-repository-manager" DefaultVolumeSize = "10Gi" )
Variables ¶
View Source
var ( DefaultResources = corev1.ResourceRequirements{ Limits: corev1.ResourceList{ corev1.ResourceCPU: k8sres.MustParse("2"), corev1.ResourceMemory: k8sres.MustParse("2Gi"), }, Requests: corev1.ResourceList{ corev1.ResourceCPU: k8sres.MustParse("1"), corev1.ResourceMemory: k8sres.MustParse("2Gi"), }, } DefaultProbe = &v1alpha1.NexusProbe{ InitialDelaySeconds: probeDefaultInitialDelaySeconds, TimeoutSeconds: probeDefaultTimeoutSeconds, PeriodSeconds: probeDefaultPeriodSeconds, SuccessThreshold: probeDefaultSuccessThreshold, FailureThreshold: probeDefaultFailureThreshold, } DefaultPersistence = v1alpha1.NexusPersistence{ Persistent: false, VolumeSize: DefaultVolumeSize, StorageClass: "", } DefaultNetworking = v1alpha1.NexusNetworking{ Expose: false, TLS: DefaultTLS, } DefaultTLS = v1alpha1.NexusNetworkingTLS{ Mandatory: false, SecretName: "", } DefaultUpdate = v1alpha1.NexusAutomaticUpdate{ Disabled: true, } AllDefaultsCommunityNexus = v1alpha1.Nexus{ ObjectMeta: metav1.ObjectMeta{Name: "default-community-nexus", Namespace: "default"}, Spec: v1alpha1.NexusSpec{ Replicas: 0, Image: NexusCommunityImage, ImagePullPolicy: "", AutomaticUpdate: DefaultUpdate, Resources: DefaultResources, Persistence: DefaultPersistence, UseRedHatImage: false, GenerateRandomAdminPassword: false, Networking: DefaultNetworking, ServiceAccountName: "default-community-nexus", LivenessProbe: DefaultProbe.DeepCopy(), ReadinessProbe: DefaultProbe.DeepCopy(), }, } )
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
NewValidator creates a new validator to set defaults, validate and update the Nexus CR
Click to show internal directories.
Click to hide internal directories.