Skip to content

Commit

Permalink
Merge pull request #277 from achaikou/test_environment
Browse files Browse the repository at this point in the history
Enable test environment
  • Loading branch information
achaikou authored Aug 12, 2024
2 parents 032b717 + 3d9da2a commit c2803fe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ func FormattedLogger() gin.HandlerFunc {
request = fmt.Sprintf("%s\n", request)
}

return fmt.Sprintf("[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %#v\n%s%s",
return fmt.Sprintf("[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %#v\nUser-Agent: %s\n%s%s",
param.TimeStamp.Format(time.RFC1123),
statusColor, param.StatusCode, resetColor,
param.Latency,
param.ClientIP,
methodColor, param.Method, resetColor,
path,
param.Request.UserAgent(),
request,
param.ErrorMessage,
)
Expand Down
31 changes: 30 additions & 1 deletion radixconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,40 @@ spec:
minReplicas: 1
maxReplicas: 1
- environment: test
variables:
VDSSLICE_PORT: 8080
VDSSLICE_CACHE_SIZE: 128 # MB
VDSSLICE_METRICS: false
VDSSLICE_METRICS_PORT: 8081
VDSSLICE_TRUSTED_PROXIES: ""
secretRefs:
azureKeyVaults:
- name: S067-RadixKeyvault
useAzureIdentity: true
items:
- name: test-allowlist
envVar: VDSSLICE_STORAGE_ACCOUNTS
monitoring: true
resources:
requests:
memory: "512Mi"
cpu: "100m"
horizontalScaling:
minReplicas: 0
maxReplicas: 1
triggers:
- name: cron
cron:
timezone: Europe/Oslo
start: 0 7 * * 1-5 # 07:00 Monday - Friday
end: 0 21 * * 1-5 # 21:00 Monday - Friday
desiredReplicas: 1
- environment: test_large
replicas: 0
variables:
VDSSLICE_PORT: 8080
VDSSLICE_CACHE_SIZE: 0 # MB
VDSSLICE_METRICS: true
VDSSLICE_METRICS: false
VDSSLICE_METRICS_PORT: 8081
VDSSLICE_TRUSTED_PROXIES: ""
secretRefs:
Expand Down

0 comments on commit c2803fe

Please sign in to comment.