Skip to content

Commit

Permalink
Merge pull request #7 from factory24/tasks/update-chart-for-pv-and-pvc
Browse files Browse the repository at this point in the history
feat: updated chart for persistent volume
  • Loading branch information
samtoya authored Aug 27, 2024
2 parents 8fb43ea + f69fe6b commit 6304ddb
Show file tree
Hide file tree
Showing 9 changed files with 448 additions and 38 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added flow-helm-chart-0.1.13.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion flow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.12
version: 0.1.13

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
146 changes: 146 additions & 0 deletions flow/argocd-values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
argocd:
name: 'flow'
enabled: false
namespace: 'default'
projectName: ''
sources: [ ]
sync:
automated:
prune: 'true'
selfHeal: 'true'
options:
- RespectIgnoreDifferences=true
- PruneLast=true
- Validate=false
- ServerSideApply=true
- ApplyOutOfSyncOnly=true
- CreateNamespace=true
retry:
limit: '2'
backoffDuration: '5s'
backOffMaxDuration: '3m0s'
backOffFactor: '2'
destination:
name: 'william'
namespace: 'default'
server: 'https://kubernetes.default.svc'
repository:
url: 'https://factory24.github.io/flow-helm-chart/'
path: ''
targetRevision: '0.1.12'
chart: 'flow-helm-chart'
valueFiles:
- values.yaml
- values.yaml
- values.yaml
- values.yaml
- values.yaml
- values.yaml
- values.yaml
- values.yaml
values: |
deployment:
name: billing-service
namespace: default
replicaCount: 1
restartPolicy: Always
args: []
image:
repository: athari/billing-service
tag: latest
pullPolicy: Never
ports:
- name: http
containerPort: 8080
protocol: TCP
service:
name: billing-service
type: ClusterIP
namespace: default
protocol: TCP
port: 8080
targetPort: 8080
resources:
enabled: true
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 10
configMap:
enabled: true
name: billing-service
namespace: default
data: { }
secrets:
enabled: false
namespace: default
name: flow
data: { }
certificate:
enabled: false
name: "flow"
namespace: istio-system
secretName: "flow"
issuerRef: letsencrypt
commonName: dev.everyflow.org
dnsNames: { }
gateway:
enabled: false # Enable the Gateway deployment
name: my-istio-gateway # Name for the Gateway resource
namespace: istio-ingress # Namespace where the Gateway will be deployed
specSelector: ingressgateway
servers:
- port:
number: 80
name: http
protocol: http
hosts:
- "1flow.org"
- port:
number: 443
name: https
protocol: https
hosts:
- "1flow.org"
tls:
mode: SIMPLE
credentialName: keycloak-tls
virtualService:
enabled: true
name: billing-service
host: api.hydrate.local
namespace: default
gateway: api-gateway
routeDefinitions:
- /v1/billing
destinationHost: billing-service.default.svc.cluster.local
destinationPort: 8080
healthCheckPath: /health
allowOrigins:
exact: "*"
allowHeaders:
- Content-Type
- Authorization
allowMethods:
- GET
- POST
- PUT
- PATCH
39 changes: 39 additions & 0 deletions flow/templates/argocd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{{ if .Values.argocd.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .Values.argocd.name }}
namespace: {{ .Values.argocd.namespace }}
spec:
destination:
name: {{ .Values.argocd.destination.name }}
namespace: {{ .Values.argocd.destination.namespace }}
server: {{ .Values.argocd.destination.server }}
source:
path: {{ .Values.argocd.repository.path }}
repoURL: {{ .Values.argocd.repository.url }}
targetRevision: {{ .Values.argocd.repository.targetRevision }}
chart: {{ .Values.argocd.repository.chart }}
helm:
valueFiles:
{{- range .Values.argocd.repository.valueFiles }}
- {{ . }}
{{- end }}
values: {{ .Values.argocd.values | toYaml | indent 8 }}
sources: {{ .Values.argocd.sources }}
project: {{ .Values.argocd.projectName }}
syncPolicy:
automated:
prune: {{ .Values.argocd.sync.automated.prune }}
selfHeal: {{ .Values.argocd.sync.automated.selfHeal }}
syncOptions:
{{- range .Values.argocd.sync.options }}
- {{ . }}
{{- end }}
retry:
limit: {{ .Values.argocd.sync.retry.limit }}
backoff:
duration: {{ .Values.argocd.sync.retry.backoffDuration }}
maxDuration: {{ .Values.argocd.sync.retry.backOffMaxDuration }}
factor: {{ .Values.argocd.sync.retry.backOffFactor }}
{{ end }}
19 changes: 19 additions & 0 deletions flow/templates/persistentvolume.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ if .Values.persistentVolume.enabled }}
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ .Values.persistentVolume.name}}
namespace: {{ .Values.persistentVolume.namespace }}
labels:
type: {{ .Values.persistentVolume.labelType}}
spec:
storageClassName: {{ .Values.persistentVolume.storage.className}}
capacity:
storage: {{ .Values.persistentVolume.storage.capacity}}
accessModes:
{{- range .Values.persistentVolume.accessModes }}
- {{ . }}
{{- end }}
hostPath:
path: {{ .Values.persistentVolume.hostPath}}
{{- end }}
15 changes: 15 additions & 0 deletions flow/templates/persistentvolumeclaim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ if .Values.persistentVolumeClaim.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.persistentVolumeClaim.name }}
namespace: {{ .Values.persistentVolumeClaim.namespace }}
spec:
accessModes:
{{- range .Values.persistentVolumeClaim.accessModes }}
- {{ . }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistentVolumeClaim.storage }}
{{ end }}
Loading

0 comments on commit 6304ddb

Please sign in to comment.