Skip to content

Commit 3082e3d

Browse files
committed
tests: simplify ci testing template
1 parent 64ef016 commit 3082e3d

1 file changed

Lines changed: 31 additions & 243 deletions

File tree

Lines changed: 31 additions & 243 deletions
Original file line numberDiff line numberDiff line change
@@ -1,293 +1,81 @@
1-
# All features enabled values for CI testing
2-
# This file tests all configuration options and features of the Tinyauth Helm chart
1+
# CI testing values for tinyauth Helm chart
2+
# Minimal setup designed to run fast and reliably on a kind cluster
33

4-
replicaCount: 2
4+
replicaCount: 1
55

66
image:
77
repository: ghcr.io/steveiliop56/tinyauth
8-
pullPolicy: Always
8+
pullPolicy: IfNotPresent
99
tag: "latest"
1010

11-
imagePullSecrets:
12-
- name: regcred
13-
14-
nameOverride: "tinyauth-test"
15-
fullnameOverride: "tinyauth-full-test"
16-
1711
serviceAccount:
1812
create: true
1913
automount: true
2014
annotations:
21-
example.com/annotation: "test-value"
15+
example.com/annotation: "ci-test"
2216
name: "tinyauth-sa"
2317

2418
podAnnotations:
25-
example.com/pod-annotation: "test-pod"
19+
example.com/pod-annotation: "ci-test"
2620

2721
podLabels:
2822
environment: "ci"
29-
team: "platform"
30-
31-
podSecurityContext:
32-
fsGroup: 2000
33-
runAsNonRoot: true
34-
runAsUser: 1000
35-
36-
securityContext:
37-
capabilities:
38-
drop:
39-
- ALL
40-
readOnlyRootFilesystem: false
41-
runAsNonRoot: true
42-
runAsUser: 1000
4323

4424
service:
4525
type: ClusterIP
4626
port: 80
4727

48-
# Tinyauth Configuration - All options enabled
28+
# Tinyauth Configuration
4929
tinyauth:
50-
general:
51-
address: "0.0.0.0"
52-
appTitle: "Tinyauth CI Test"
53-
appUrl: "https://tinyauth.example.com"
54-
backgroundImage: "/custom-background.jpg"
55-
databasePath: "/data/tinyauth.db"
56-
disableAnalytics: true
57-
disableResources: false
58-
disableUiWarnings: true
59-
forgotPasswordMessage: "Contact admin@example.com for password reset"
60-
logLevel: "debug"
61-
loginMaxRetries: 3
62-
loginTimeout: 600
63-
oauthAutoRedirect: "github"
64-
oauthWhitelist: "user1@example.com,user2@example.com,admin@example.com"
30+
appUrl: "https://tinyauth.example.com"
31+
disableAnalytics: true
32+
33+
server:
6534
port: 3000
66-
resourcesDir: "/data/resources"
67-
secureCookie: true
68-
sessionExpiry: 43200
69-
socketPath: ""
70-
trustedProxies: "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
71-
users: "admin:$2a$10$abcdefghijklmnopqrstuvwxyz,user:$2a$10$1234567890abcdefghijklmn"
72-
usersFile: "/data/users.txt"
35+
address: "0.0.0.0"
36+
37+
auth:
38+
users: "admin:$$2a$$10$$abcdefghijklmnopqrstuvwxyz"
7339

74-
# OAuth Providers - Testing multiple providers
75-
providers:
76-
- id: "github"
77-
clientId: "github-client-id"
78-
clientSecret: "github-client-secret"
79-
authUrl: "https://github.com/login/oauth/authorize"
80-
tokenUrl: "https://github.com/login/oauth/access_token"
81-
userInfoUrl: "https://api.github.com/user"
82-
scopes: "user:email"
83-
name: "GitHub"
84-
insecureSkipVerify: false
85-
- id: "google"
86-
clientId: "google-client-id"
87-
clientSecretSecretRef:
88-
name: "google-oauth-secret"
89-
key: "client-secret"
90-
authUrl: "https://accounts.google.com/o/oauth2/auth"
91-
tokenUrl: "https://oauth2.googleapis.com/token"
92-
userInfoUrl: "https://www.googleapis.com/oauth2/v2/userinfo"
93-
scopes: "openid email profile"
94-
name: "Google"
95-
insecureSkipVerify: false
96-
- id: "custom"
97-
clientId: "custom-client-id"
98-
clientSecret: "custom-client-secret"
99-
clientSecretFile: "/secrets/custom-secret"
100-
authUrl: "https://auth.example.com/oauth/authorize"
101-
tokenUrl: "https://auth.example.com/oauth/token"
102-
userInfoUrl: "https://auth.example.com/oauth/userinfo"
103-
scopes: "openid profile email"
104-
name: "Custom OAuth"
105-
insecureSkipVerify: true
40+
ui:
41+
title: "Tinyauth CI"
10642

107-
# LDAP Configuration - Fully configured
108-
ldap:
109-
address: "ldaps://ldap.example.com:636"
110-
bindDn: "cn=admin,dc=example,dc=com"
111-
bindPassword: "admin-password"
112-
bindPasswordSecretRef:
113-
name: "ldap-secret"
114-
key: "bind-password"
115-
baseDn: "dc=example,dc=com"
116-
insecure: false
117-
searchFilter: "(uid=%s)"
43+
log:
44+
level: "info"
11845

119-
# Ingress - Fully configured
12046
ingress:
12147
enabled: true
122-
className: "nginx"
123-
annotations:
124-
kubernetes.io/ingress.class: nginx
125-
kubernetes.io/tls-acme: "true"
126-
nginx.ingress.kubernetes.io/ssl-redirect: "true"
127-
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
128-
cert-manager.io/cluster-issuer: "letsencrypt-prod"
48+
className: ""
49+
annotations: {}
12950
hosts:
13051
- host: tinyauth-ci.example.com
13152
paths:
13253
- path: /
13354
pathType: ImplementationSpecific
134-
- host: auth.example.com
135-
paths:
136-
- path: /auth
137-
pathType: Prefix
138-
tls:
139-
- secretName: tinyauth-tls
140-
hosts:
141-
- tinyauth-ci.example.com
142-
- auth.example.com
143-
144-
# Resource limits and requests
145-
resources:
146-
limits:
147-
cpu: 500m
148-
memory: 512Mi
149-
requests:
150-
cpu: 250m
151-
memory: 256Mi
55+
tls: []
15256

153-
# Health checks with custom configuration
15457
livenessProbe:
15558
httpGet:
15659
path: /api/healthz
15760
port: http
158-
initialDelaySeconds: 30
159-
periodSeconds: 10
160-
timeoutSeconds: 5
161-
failureThreshold: 3
16261

16362
readinessProbe:
16463
httpGet:
16564
path: /api/healthz
16665
port: http
167-
initialDelaySeconds: 5
168-
periodSeconds: 5
169-
timeoutSeconds: 3
170-
failureThreshold: 3
17166

172-
# Autoscaling enabled
17367
autoscaling:
174-
enabled: true
175-
minReplicas: 2
176-
maxReplicas: 10
177-
targetCPUUtilizationPercentage: 70
178-
targetMemoryUtilizationPercentage: 80
179-
180-
# Additional volumes for testing
181-
volumes:
182-
- name: config-volume
183-
configMap:
184-
name: tinyauth-config
185-
- name: secret-volume
186-
secret:
187-
secretName: tinyauth-secrets
188-
optional: false
189-
190-
# Additional volume mounts
191-
volumeMounts:
192-
- name: config-volume
193-
mountPath: "/etc/config"
194-
readOnly: true
195-
- name: secret-volume
196-
mountPath: "/etc/secrets"
197-
readOnly: true
198-
199-
# Node selection and scheduling
200-
nodeSelector:
201-
kubernetes.io/arch: amd64
202-
node-type: compute
203-
204-
tolerations:
205-
- key: "dedicated"
206-
operator: "Equal"
207-
value: "tinyauth"
208-
effect: "NoSchedule"
209-
- key: "node.kubernetes.io/not-ready"
210-
operator: "Exists"
211-
effect: "NoExecute"
212-
tolerationSeconds: 300
68+
enabled: false
21369

214-
affinity:
215-
nodeAffinity:
216-
requiredDuringSchedulingIgnoredDuringExecution:
217-
nodeSelectorTerms:
218-
- matchExpressions:
219-
- key: kubernetes.io/arch
220-
operator: In
221-
values:
222-
- amd64
223-
podAntiAffinity:
224-
preferredDuringSchedulingIgnoredDuringExecution:
225-
- weight: 100
226-
podAffinityTerm:
227-
labelSelector:
228-
matchExpressions:
229-
- key: app.kubernetes.io/name
230-
operator: In
231-
values:
232-
- tinyauth
233-
topologyKey: kubernetes.io/hostname
70+
persistence:
71+
enabled: false
23472

235-
# Gateway API HTTPRoute configuration
23673
httpRoute:
23774
enabled: false
238-
annotations:
239-
example.com/route-annotation: "test-value"
240-
parentRefs:
241-
- name: my-gateway
242-
namespace: gateway-system
243-
- name: secondary-gateway
244-
hostnames:
245-
- tinyauth-gateway.example.com
246-
- auth-gateway.example.com
247-
rules:
248-
- matches:
249-
- path:
250-
type: Prefix
251-
value: /
252-
- matches:
253-
- path:
254-
type: Exact
255-
value: /auth
256-
- headers:
257-
- name: x-auth-required
258-
value: "true"
259-
260-
# Additional environment variables
261-
env:
262-
- name: CUSTOM_VAR
263-
value: "custom_value"
264-
- name: SECRET_VAR
265-
valueFrom:
266-
secretKeyRef:
267-
name: my-secret
268-
key: secret-key
269-
- name: CONFIGMAP_VAR
270-
valueFrom:
271-
configMapKeyRef:
272-
name: my-config
273-
key: config-key
274-
- name: NODE_NAME
275-
valueFrom:
276-
fieldRef:
277-
fieldPath: spec.nodeName
278-
- name: POD_IP
279-
valueFrom:
280-
fieldRef:
281-
fieldPath: status.podIP
28275

283-
# Persistent storage enabled
284-
persistence:
285-
enabled: true
286-
existingClaim: ""
287-
storageClass: "fast-ssd"
288-
accessMode: ReadWriteOnce
289-
size: 5Gi
290-
mountPath: /data
291-
annotations:
292-
volume.beta.kubernetes.io/storage-class: "fast-ssd"
293-
example.com/backup: "enabled"
76+
volumes: []
77+
volumeMounts: []
78+
nodeSelector: {}
79+
tolerations: []
80+
affinity: {}
81+
env: []

0 commit comments

Comments
 (0)