refac: remove obsolete directory athens-proxy
All checks were successful
Helm / helm-lint (push) Successful in 6s
Helm / helm-unittest (push) Successful in 15s

This commit is contained in:
2025-10-12 17:05:51 +02:00
parent 59b43aac79
commit 307660c767
41 changed files with 75 additions and 83 deletions

View File

@@ -6,22 +6,22 @@ release:
name: athens-proxy-unittest
namespace: testing
templates:
- templates/athens-proxy/deployment.yaml
- templates/deployment.yaml
tests:
- it: Rendering default
asserts:
- hasDocuments:
count: 1
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- containsDocument:
apiVersion: apps/v1
kind: Deployment
name: athens-proxy-unittest
namespace: testing
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: metadata.annotations
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: metadata.labels
value:
@@ -30,11 +30,11 @@ tests:
app.kubernetes.io/name: athens-proxy
app.kubernetes.io/version: 0.1.0
helm.sh/chart: athens-proxy-0.1.0
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.replicas
value: 1
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.template.metadata.labels
value:
@@ -43,74 +43,74 @@ tests:
app.kubernetes.io/name: athens-proxy
app.kubernetes.io/version: 0.1.0
helm.sh/chart: athens-proxy-0.1.0
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.affinity
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.containers[0].args
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.containers[0].command
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.containers[0].envFrom
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.containers[0].volumeMounts
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.template.spec.containers[0].image
value: docker.io/gomods/athens:0.1.0
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.template.spec.containers[0].imagePullPolicy
value: IfNotPresent
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.containers[0].resources
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.containers[0].securityContext
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.dnsConfig
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.dnsPolicy
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.hostname
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.template.spec.hostNetwork
value: false
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.imagePullSecrets
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.nodeSelector
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.priorityClassName
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.restartPolicy
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.subdomain
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.template.spec.terminationGracePeriodSeconds
value: 60
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.tolerations
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- notExists:
path: spec.template.spec.topologySpreadConstraints
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.strategy
value:
@@ -118,7 +118,7 @@ tests:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test custom replicas
set:
@@ -130,7 +130,7 @@ tests:
- equal:
path: spec.replicas
value: 3
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test custom affinity
set:
@@ -160,7 +160,7 @@ tests:
values:
- antarctica-east1
- antarctica-west1
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test additional arguments
set:
@@ -176,7 +176,7 @@ tests:
value:
- --foo=bar
- --bar=foo
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test additional command
set:
@@ -194,7 +194,7 @@ tests:
- "/bin/sh"
- "-c"
- "echo hello"
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test custom imageRegistry and imageRepository
set:
@@ -207,7 +207,7 @@ tests:
- equal:
path: spec.template.spec.containers[0].image
value: registry.example.local/path/special/athens-proxy:0.1.0
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test custom imagePullPolicy
set:
@@ -219,7 +219,7 @@ tests:
- equal:
path: spec.template.spec.containers[0].imagePullPolicy
value: Always
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test custom resource limits and requests
set:
@@ -242,7 +242,7 @@ tests:
resourceFieldRef:
divisor: "1"
resource: limits.cpu
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.template.spec.containers[0].resources
value:
@@ -252,7 +252,7 @@ tests:
requests:
cpu: 25m
memory: 100MB
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test custom securityContext
set:
@@ -282,7 +282,7 @@ tests:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test dnsConfig
set:
@@ -300,7 +300,7 @@ tests:
nameservers:
- "8.8.8.8"
- "8.8.4.4"
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test dnsPolicy
set:
@@ -312,7 +312,7 @@ tests:
- equal:
path: spec.template.spec.dnsPolicy
value: ClusterFirst
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test hostNetwork, hostname, subdomain
set:
@@ -326,15 +326,15 @@ tests:
- equal:
path: spec.template.spec.hostNetwork
value: true
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.template.spec.hostname
value: pg-exporter
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- equal:
path: spec.template.spec.subdomain
value: exporters.internal
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test imagePullSecrets
set:
@@ -350,7 +350,7 @@ tests:
value:
- name: my-pull-secret
- name: my-special-secret
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test nodeSelector
set:
@@ -364,7 +364,7 @@ tests:
path: spec.template.spec.nodeSelector
value:
foo: bar
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test priorityClassName
set:
@@ -376,7 +376,7 @@ tests:
- equal:
path: spec.template.spec.priorityClassName
value: my-priority
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test restartPolicy
set:
@@ -388,7 +388,7 @@ tests:
- equal:
path: spec.template.spec.restartPolicy
value: Always
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test terminationGracePeriodSeconds
set:
@@ -400,7 +400,7 @@ tests:
- equal:
path: spec.template.spec.terminationGracePeriodSeconds
value: 120
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test tolerations
set:
@@ -420,7 +420,7 @@ tests:
operator: Equal
value: postgres
effect: NoSchedule
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test topologySpreadConstraints
set:
@@ -442,7 +442,7 @@ tests:
labelSelector:
matchLabels:
app.kubernetes.io/instance: athens-proxy
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml
- it: Test additional volumeMounts and volumes
set:
@@ -462,4 +462,4 @@ tests:
value:
- name: data
mountPath: /usr/lib/athens-proxy/data
template: templates/athens-proxy/deployment.yaml
template: templates/deployment.yaml