Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
serviceAccount:
|
||||
additionalLabels:
|
||||
test: "true"
|
||||
7
charts/alloy/ci/clustering-values.yaml
Normal file
7
charts/alloy/ci/clustering-values.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
alloy:
|
||||
clustering:
|
||||
enabled: true
|
||||
|
||||
controller:
|
||||
type: 'statefulset'
|
||||
replicas: 3
|
||||
@@ -0,0 +1,5 @@
|
||||
controller:
|
||||
type: deployment
|
||||
podDisruptionBudget:
|
||||
enabled: true
|
||||
maxUnavailable: 1
|
||||
@@ -0,0 +1,5 @@
|
||||
controller:
|
||||
type: deployment
|
||||
podDisruptionBudget:
|
||||
enabled: true
|
||||
minAvailable: 1
|
||||
@@ -0,0 +1,5 @@
|
||||
controller:
|
||||
type: statefulset
|
||||
podDisruptionBudget:
|
||||
enabled: true
|
||||
maxUnavailable: 1
|
||||
@@ -0,0 +1,5 @@
|
||||
controller:
|
||||
type: statefulset
|
||||
podDisruptionBudget:
|
||||
enabled: true
|
||||
minAvailable: 1
|
||||
12
charts/alloy/ci/controller-volumes-extra-values.yaml
Normal file
12
charts/alloy/ci/controller-volumes-extra-values.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
controller:
|
||||
volumes:
|
||||
extra:
|
||||
- name: cache-volume
|
||||
emptyDir:
|
||||
sizeLimit: 500Mi
|
||||
|
||||
alloy:
|
||||
mounts:
|
||||
extra:
|
||||
- mountPath: /cache
|
||||
name: cache-volume
|
||||
5
charts/alloy/ci/create-daemonset-hostnetwork-values.yaml
Normal file
5
charts/alloy/ci/create-daemonset-hostnetwork-values.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
# Test rendering of the chart with the controller explicitly set to DaemonSet.
|
||||
controller:
|
||||
type: daemonset
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
3
charts/alloy/ci/create-daemonset-values.yaml
Normal file
3
charts/alloy/ci/create-daemonset-values.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
# Test rendering of the chart with the controller explicitly set to DaemonSet.
|
||||
controller:
|
||||
type: daemonset
|
||||
26
charts/alloy/ci/create-deployment-autoscaling-values.yaml
Normal file
26
charts/alloy/ci/create-deployment-autoscaling-values.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
# Test rendering of the chart with the controller explicitly set to Deployment and autoscaling enabled.
|
||||
controller:
|
||||
type: deployment
|
||||
autoscaling:
|
||||
horizontal:
|
||||
enabled: true
|
||||
scaleDown:
|
||||
policies:
|
||||
- type: Pods
|
||||
value: 4
|
||||
periodSeconds: 60
|
||||
selectPolicy: Min
|
||||
stabilizationWindowSeconds: 100
|
||||
scaleUp:
|
||||
policies:
|
||||
- type: Pods
|
||||
value: 4
|
||||
periodSeconds: 60
|
||||
- type: Percent
|
||||
value: 100
|
||||
periodSeconds: 15
|
||||
stabilizationWindowSeconds: 80
|
||||
alloy:
|
||||
resources:
|
||||
requests:
|
||||
memory: 100Mi
|
||||
3
charts/alloy/ci/create-deployment-values.yaml
Normal file
3
charts/alloy/ci/create-deployment-values.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
# Test rendering of the chart with the controller explicitly set to Deployment.
|
||||
controller:
|
||||
type: deployment
|
||||
26
charts/alloy/ci/create-statefulset-autoscaling-values.yaml
Normal file
26
charts/alloy/ci/create-statefulset-autoscaling-values.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
# Test rendering of the chart with the controller explicitly set to StatefulSet and autoscaling the old way enabled.
|
||||
controller:
|
||||
type: statefulset
|
||||
autoscaling:
|
||||
enabled: true
|
||||
scaleDown:
|
||||
policies:
|
||||
- type: Pods
|
||||
value: 4
|
||||
periodSeconds: 60
|
||||
selectPolicy: Min
|
||||
stabilizationWindowSeconds: 100
|
||||
scaleUp:
|
||||
policies:
|
||||
- type: Pods
|
||||
value: 4
|
||||
periodSeconds: 60
|
||||
- type: Percent
|
||||
value: 100
|
||||
periodSeconds: 15
|
||||
stabilizationWindowSeconds: 80
|
||||
enableStatefulSetAutoDeletePVC: true
|
||||
alloy:
|
||||
resources:
|
||||
requests:
|
||||
memory: 100Mi
|
||||
3
charts/alloy/ci/create-statefulset-values.yaml
Normal file
3
charts/alloy/ci/create-statefulset-values.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
# Test rendering of the chart with the controller explicitly set to StatefulSet.
|
||||
controller:
|
||||
type: statefulset
|
||||
10
charts/alloy/ci/custom-config-values.yaml
Normal file
10
charts/alloy/ci/custom-config-values.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
alloy:
|
||||
configMap:
|
||||
content: |-
|
||||
logging {
|
||||
level = "warn"
|
||||
format = "logfmt"
|
||||
}
|
||||
discovery.kubernetes "custom_pods" {
|
||||
role = "pod"
|
||||
}
|
||||
1
charts/alloy/ci/default-values-values.yaml
Normal file
1
charts/alloy/ci/default-values-values.yaml
Normal file
@@ -0,0 +1 @@
|
||||
# Test rendering of the chart with everything set to the default values.
|
||||
9
charts/alloy/ci/enable-servicemonitor-tls-values.yaml
Normal file
9
charts/alloy/ci/enable-servicemonitor-tls-values.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
# Test rendering of the chart with the service monitor enabled
|
||||
alloy:
|
||||
listenScheme: HTTPS
|
||||
service:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
tlsConfig:
|
||||
insecureSkipVerify: true
|
||||
5
charts/alloy/ci/enable-servicemonitor-values.yaml
Normal file
5
charts/alloy/ci/enable-servicemonitor-values.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
# Test rendering of the chart with the service monitor enabled
|
||||
service:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
5
charts/alloy/ci/envFrom-values.yaml
Normal file
5
charts/alloy/ci/envFrom-values.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
# Specify extra ports for verifying rendering the template works
|
||||
alloy:
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: special-config
|
||||
5
charts/alloy/ci/existing-config-values.yaml
Normal file
5
charts/alloy/ci/existing-config-values.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
alloy:
|
||||
configMap:
|
||||
create: false
|
||||
name: existing-config
|
||||
key: my-config.alloy
|
||||
9
charts/alloy/ci/extra-env-values.yaml
Normal file
9
charts/alloy/ci/extra-env-values.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
# Specify extra ports for verifying rendering the template works
|
||||
alloy:
|
||||
extraEnv:
|
||||
- name: GREETING
|
||||
value: "Warm greetings to"
|
||||
- name: HONORIFIC
|
||||
value: "The Most Honorable"
|
||||
- name: NAME
|
||||
value: "Kubernetes"
|
||||
8
charts/alloy/ci/extra-manifests-values.yaml
Normal file
8
charts/alloy/ci/extra-manifests-values.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
extraObjects:
|
||||
- apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: grafana-cloud
|
||||
stringData:
|
||||
PROMETHEUS_HOST: 'https://prometheus-us-central1.grafana.net/api/prom/push'
|
||||
PROMETHEUS_USERNAME: '123456'
|
||||
7
charts/alloy/ci/extra-ports-values.yaml
Normal file
7
charts/alloy/ci/extra-ports-values.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
# Specify extra ports for verifying rendering the template works
|
||||
alloy:
|
||||
extraPorts:
|
||||
- name: jaeger-thrift
|
||||
port: 14268
|
||||
targetPort: 14268
|
||||
protocol: TCP
|
||||
9
charts/alloy/ci/faro-ingress-values.yaml
Normal file
9
charts/alloy/ci/faro-ingress-values.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
alloy:
|
||||
extraPorts:
|
||||
- name: "faro"
|
||||
port: 12347
|
||||
targetPort: 12347
|
||||
protocol: "TCP"
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
13
charts/alloy/ci/global-image-pullsecrets-values.yaml
Normal file
13
charts/alloy/ci/global-image-pullsecrets-values.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Test rendering of the chart with the global image pull secret explicitly set.
|
||||
global:
|
||||
image:
|
||||
pullSecrets:
|
||||
- name: global-cred
|
||||
|
||||
podSecurityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
|
||||
image:
|
||||
pullSecrets:
|
||||
- name: local-cred
|
||||
11
charts/alloy/ci/global-image-registry-values.yaml
Normal file
11
charts/alloy/ci/global-image-registry-values.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
# Test rendering of the chart with the global image registry explicitly set to another value.
|
||||
global:
|
||||
image:
|
||||
registry: quay.io
|
||||
|
||||
image:
|
||||
registry: docker.com # Invalid value by default
|
||||
|
||||
configReloader:
|
||||
image:
|
||||
registry: docker.com
|
||||
5
charts/alloy/ci/host-alias-values.yaml
Normal file
5
charts/alloy/ci/host-alias-values.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
alloy:
|
||||
hostAliases:
|
||||
- ip: "20.21.22.23"
|
||||
hostnames:
|
||||
- "grafana.company.net"
|
||||
29
charts/alloy/ci/initcontainers-values.yaml
Normal file
29
charts/alloy/ci/initcontainers-values.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
controller:
|
||||
initContainers:
|
||||
- name: geo-ip
|
||||
image: ghcr.io/maxmind/geoipupdate:v6.0
|
||||
volumeMounts:
|
||||
- name: geoip
|
||||
mountPath: /etc/geoip
|
||||
volumes:
|
||||
- name: geoip
|
||||
emptyDir: {}
|
||||
env:
|
||||
- name: GEOIPUPDATE_ACCOUNT_ID
|
||||
value: "geoipupdate_account_id"
|
||||
- name: GEOIPUPDATE_LICENSE_KEY
|
||||
value: "geoipupdate_license_key"
|
||||
- name: GEOIPUPDATE_EDITION_IDS
|
||||
value: "GeoLite2-ASN GeoLite2-City GeoLite2-Country"
|
||||
- name: GEOIPUPDATE_DB_DIR
|
||||
value: "/etc/geoip"
|
||||
volumes:
|
||||
extra:
|
||||
- name: geoip
|
||||
mountPath: /etc/geoip
|
||||
|
||||
alloy:
|
||||
mounts:
|
||||
extra:
|
||||
- name: geoip
|
||||
mountPath: /etc/geoip
|
||||
8
charts/alloy/ci/lifecycle-hooks-values.yaml
Normal file
8
charts/alloy/ci/lifecycle-hooks-values.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
controller:
|
||||
type: deployment
|
||||
|
||||
alloy:
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command: ["/bin/sh", "-c", "sleep 1"]
|
||||
11
charts/alloy/ci/livinessprobe-values.yaml
Normal file
11
charts/alloy/ci/livinessprobe-values.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
alloy:
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /metrics
|
||||
port: 12345
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 30
|
||||
timeoutSeconds: 2
|
||||
periodSeconds: 30
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
4
charts/alloy/ci/local-image-pullsecrets-values.yaml
Normal file
4
charts/alloy/ci/local-image-pullsecrets-values.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
# Test rendering of the chart with the image pull secret explicitly set.
|
||||
image:
|
||||
pullSecrets:
|
||||
- name: local-cred
|
||||
7
charts/alloy/ci/local-image-registry-values.yaml
Normal file
7
charts/alloy/ci/local-image-registry-values.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
# Test rendering of the chart with the individual image registries explicitly set to another value.
|
||||
image:
|
||||
registry: quay.io
|
||||
|
||||
configReloader:
|
||||
image:
|
||||
registry: quay.io
|
||||
11
charts/alloy/ci/nodeselectors-and-tolerations-values.yaml
Normal file
11
charts/alloy/ci/nodeselectors-and-tolerations-values.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
controller:
|
||||
nodeSelector:
|
||||
key1: "value1"
|
||||
tolerations:
|
||||
- key: "key1"
|
||||
operator: "Equal"
|
||||
value: "value1"
|
||||
effect: "NoSchedule"
|
||||
- key: "key2"
|
||||
operator: "Exists"
|
||||
effect: "NoSchedule"
|
||||
7
charts/alloy/ci/nonroot-values.yaml
Normal file
7
charts/alloy/ci/nonroot-values.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
global:
|
||||
podSecurityContext:
|
||||
fsGroup: 473
|
||||
alloy:
|
||||
securityContext:
|
||||
runAsUser: 473
|
||||
runAsGroup: 473
|
||||
4
charts/alloy/ci/pod_annotations-values.yaml
Normal file
4
charts/alloy/ci/pod_annotations-values.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
# Test correct rendering of the pod annotations
|
||||
controller:
|
||||
podAnnotations:
|
||||
testAnnotationKey: testAnnotationValue
|
||||
29
charts/alloy/ci/sidecars-values.yaml
Normal file
29
charts/alloy/ci/sidecars-values.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
controller:
|
||||
extraContainers:
|
||||
- name: geo-ip
|
||||
image: ghcr.io/maxmind/geoipupdate:v6.0
|
||||
volumeMounts:
|
||||
- name: geoip
|
||||
mountPath: /etc/geoip
|
||||
volumes:
|
||||
- name: geoip
|
||||
emptyDir: {}
|
||||
env:
|
||||
- name: GEOIPUPDATE_ACCOUNT_ID
|
||||
value: "geoipupdate_account_id"
|
||||
- name: GEOIPUPDATE_LICENSE_KEY
|
||||
value: "geoipupdate_license_key"
|
||||
- name: GEOIPUPDATE_EDITION_IDS
|
||||
value: "GeoLite2-ASN GeoLite2-City GeoLite2-Country"
|
||||
- name: GEOIPUPDATE_DB_DIR
|
||||
value: "/etc/geoip"
|
||||
volumes:
|
||||
extra:
|
||||
- name: geoip
|
||||
mountPath: /etc/geoip
|
||||
|
||||
alloy:
|
||||
mounts:
|
||||
extra:
|
||||
- name: geoip
|
||||
mountPath: /etc/geoip
|
||||
3
charts/alloy/ci/termination-grace-period-values.yaml
Normal file
3
charts/alloy/ci/termination-grace-period-values.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
controller:
|
||||
type: deployment
|
||||
terminationGracePeriodSeconds: 20
|
||||
10
charts/alloy/ci/topologyspreadconstraints-values.yaml
Normal file
10
charts/alloy/ci/topologyspreadconstraints-values.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
controller:
|
||||
type: deployment
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: topology.kubernetes.io/zone
|
||||
whenUnsatisfiable: ScheduleAnyway
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: alloy
|
||||
app.kubernetes.io/instance: alloy
|
||||
10
charts/alloy/ci/with-digests-values.yaml
Normal file
10
charts/alloy/ci/with-digests-values.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
image:
|
||||
registry: "docker.io"
|
||||
repository: "grafana/agent"
|
||||
digest: "sha256:82575a7be3e4770e53f620298e58bcc4cdb0fd0338e01c4b206cae9e3ca46ebf"
|
||||
|
||||
configReloader:
|
||||
image:
|
||||
registry: "docker.io"
|
||||
repository: "jimmidyson/configmap-reload"
|
||||
digest: "sha256:5af9d3041d12a3e63f115125f89b66d2ba981fe82e64302ac370c5496055059c"
|
||||
Reference in New Issue
Block a user