Skip to content

Commit

Permalink
refactor: merge configs
Browse files Browse the repository at this point in the history
  • Loading branch information
sergelogvinov committed Dec 18, 2024
1 parent 5c7bb78 commit aff9c8a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
31 changes: 30 additions & 1 deletion apps/cicd/teamcity/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: teamcity
spec:
interval: 60m
timeout: 30m

maxHistory: 2
driftDetection:
Expand All @@ -13,7 +14,7 @@ spec:
chart:
spec:
chart: teamcity
version: 0.7.4
version: 0.8.0
sourceRef:
kind: HelmRepository
name: sergelogvinov
Expand All @@ -32,3 +33,31 @@ spec:
- kind: Secret
name: teamcity-helm-values
optional: true

values:
server:
resources:
limits:
cpu: 2
memory: 4Gi
requests:
cpu: 500m
memory: 2Gi

agent:
resources:
limits:
cpu: 2
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi

dind:
resources:
limits:
cpu: 2
memory: 16Gi
requests:
cpu: 500m
memory: 2Gi
4 changes: 0 additions & 4 deletions apps/cicd/teamcity/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ generatorOptions:
disableNameSuffixHash: true
resources:
- ./helmrelease.yaml
configMapGenerator:
- name: teamcity-helm-values
files:
- values.yaml=./helmvalues.yaml
5 changes: 1 addition & 4 deletions apps/cicd/teamcity/fluxcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ metadata:
namespace: flux-system
spec:
targetNamespace: cicd
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./apps/cicd/teamcity/app
prune: true
sourceRef:
kind: GitRepository
name: gitops-clusters
wait: true
wait: false
interval: 30m
retryInterval: 5m
1 change: 0 additions & 1 deletion apps/cicd/teamcity/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./fluxcd.yaml
# - ./namespace.yaml

0 comments on commit aff9c8a

Please sign in to comment.