Skip to content

Commit 3917414

Browse files
committed
add memcached sample
1 parent 731b34a commit 3917414

2 files changed

Lines changed: 46 additions & 117 deletions

File tree

bundle/manifests/kubero-operator.clusterserviceversion.yaml

Lines changed: 14 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -360,70 +360,19 @@ metadata:
360360
"name": "kuberoaddonmemcached-sample"
361361
},
362362
"spec": {
363-
"affinity": {},
364-
"autoscaling": {
365-
"enabled": false,
366-
"maxReplicas": 100,
367-
"minReplicas": 1,
368-
"targetCPUUtilizationPercentage": 80
369-
},
370-
"fullnameOverride": "",
371-
"image": {
372-
"pullPolicy": "IfNotPresent",
373-
"repository": "nginx",
374-
"tag": ""
375-
},
376-
"imagePullSecrets": [],
377-
"ingress": {
378-
"annotations": {},
379-
"className": "",
380-
"enabled": false,
381-
"hosts": [
382-
{
383-
"host": "chart-example.local",
384-
"paths": [
385-
{
386-
"path": "/",
387-
"pathType": "ImplementationSpecific"
388-
}
389-
]
390-
}
391-
],
392-
"tls": []
393-
},
394-
"livenessProbe": {
395-
"httpGet": {
396-
"path": "/",
397-
"port": "http"
398-
}
399-
},
400-
"nameOverride": "",
401-
"nodeSelector": {},
402-
"podAnnotations": {},
403-
"podLabels": {},
404-
"podSecurityContext": {},
405-
"readinessProbe": {
406-
"httpGet": {
407-
"path": "/",
408-
"port": "http"
409-
}
410-
},
411-
"replicaCount": 1,
412-
"resources": {},
413-
"securityContext": {},
414-
"service": {
415-
"port": 80,
416-
"type": "ClusterIP"
417-
},
418-
"serviceAccount": {
419-
"annotations": {},
420-
"automount": true,
421-
"create": true,
422-
"name": ""
423-
},
424-
"tolerations": [],
425-
"volumeMounts": [],
426-
"volumes": []
363+
"memcached": {
364+
"config": {
365+
"extraArgs": [],
366+
"maxConnections": 1024,
367+
"memoryLimit": 64,
368+
"verbosity": 0
369+
},
370+
"image": {
371+
"tag": "1.6.39"
372+
},
373+
"replicaCount": 1,
374+
"resources": {}
375+
}
427376
}
428377
},
429378
{
@@ -1433,7 +1382,7 @@ metadata:
14331382
categories: Integration & Delivery
14341383
certified: "false"
14351384
containerImage: ghcr.io/kubero-dev/kubero-operator/kuberoapp:v0.2.1-rc.2
1436-
createdAt: "2025-08-30T11:07:43Z"
1385+
createdAt: "2025-08-31T20:35:42Z"
14371386
description: Kubero is a GitOps continuous delivery tool for Kubernetes.
14381387
operators.operatorframework.io/builder: operator-sdk-v1.41.1
14391388
operators.operatorframework.io/project_layout: helm.sdk.operatorframework.io/v1

config/samples/application_v1alpha1_kuberoaddonmemcached.yaml

Lines changed: 32 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,35 @@ kind: KuberoAddonMemcached
33
metadata:
44
name: kuberoaddonmemcached-sample
55
spec:
6-
# Default values copied from <project_dir>/helm-charts/kuberoaddonmemcached/values.yaml
7-
affinity: {}
8-
autoscaling:
9-
enabled: false
10-
maxReplicas: 100
11-
minReplicas: 1
12-
targetCPUUtilizationPercentage: 80
13-
fullnameOverride: ""
14-
image:
15-
pullPolicy: IfNotPresent
16-
repository: nginx
17-
tag: ""
18-
imagePullSecrets: []
19-
ingress:
20-
annotations: {}
21-
className: ""
22-
enabled: false
23-
hosts:
24-
- host: chart-example.local
25-
paths:
26-
- path: /
27-
pathType: ImplementationSpecific
28-
tls: []
29-
livenessProbe:
30-
httpGet:
31-
path: /
32-
port: http
33-
nameOverride: ""
34-
nodeSelector: {}
35-
podAnnotations: {}
36-
podLabels: {}
37-
podSecurityContext: {}
38-
readinessProbe:
39-
httpGet:
40-
path: /
41-
port: http
42-
replicaCount: 1
43-
resources: {}
44-
securityContext: {}
45-
service:
46-
port: 80
47-
type: ClusterIP
48-
serviceAccount:
49-
annotations: {}
50-
automount: true
51-
create: true
52-
name: ""
53-
tolerations: []
54-
volumeMounts: []
55-
volumes: []
56-
57-
6+
memcached:
7+
## @section Memcached image parameters
8+
image:
9+
## @param image.tag Memcached image tag
10+
tag: "1.6.39"
11+
12+
## @param replicaCount Number of Memcached replicas to deploy
13+
replicaCount: 1
14+
15+
16+
## @section Memcached configuration options
17+
config:
18+
## @param config.memoryLimit Maximum amount of memory to use for cache (in MB)
19+
memoryLimit: 64
20+
## @param config.maxConnections Maximum number of simultaneous connections
21+
maxConnections: 1024
22+
## @param config.extraArgs Additional command-line arguments
23+
extraArgs: []
24+
## @param config.verbosity Verbosity level (0-2)
25+
verbosity: 0
26+
27+
## @param resources Resource limits and requests for Memcached pod
28+
resources: {}
29+
## We usually recommend not to specify default resources and to leave this as a conscious
30+
## choice for the user. This also increases chances charts run on environments with little
31+
## resources, such as Minikube. If you do want to specify resources, uncomment the following
32+
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
33+
# limits:
34+
# memory: 128Mi
35+
# requests:
36+
# cpu: 50m
37+
# memory: 64Mi

0 commit comments

Comments
 (0)