| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- Copyright 2026 LocoStack.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- */
- package neo4j
- import (
- "github.com/LocoStack/loco-operator/api/v1alpha1"
- corev1 "k8s.io/api/core/v1"
- )
- const (
- NEO4J_DATA_PATH = "/data"
- )
- var Neo4jTemplate = v1alpha1.Template{
- Name: "neo4j",
- Spec: v1alpha1.TemplateSpec{
- Runtime: v1alpha1.RuntimeSpec{
- Name: "neo4j",
- Image: "neo4j:5.26-community",
- Env: []corev1.EnvVar{
- {Name: "NEO4J_AUTH", Value: "none"},
- },
- VolumeMounts: []corev1.VolumeMount{
- {Name: "data", MountPath: NEO4J_DATA_PATH},
- },
- Port: 7687,
- },
- Volumes: []corev1.Volume{
- {
- Name: "data",
- VolumeSource: corev1.VolumeSource{
- PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{
- ClaimName: "$(metadata.name)-neo4j",
- },
- },
- },
- },
- },
- }
|