Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@ gomock_reflect_*/
# Cache
.cache

# Local development data volumes
.pipecd-data/

# hack
hack/*
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,8 @@ gomock_reflect_*/
# Cache
.cache

# Local development data volumes
.pipecd-data/

# hack
hack/oidc/realm.local.json
5 changes: 5 additions & 0 deletions hack/create-kind-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ REG_CONFIG_DIR="/etc/containerd/certs.d"
cat <<EOF | kind create cluster --name ${CLUSTER} --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraMounts:
- hostPath: $(pwd)/.pipecd-data
containerPath: /tmp/pipecd-data
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry]
Expand Down
37 changes: 37 additions & 0 deletions manifests/pipecd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,22 @@ spec:
- name: redis
containerPort: 6379
protocol: TCP
{{- if .Values.localStorageVolumes.enabled }}
volumeMounts:
- name: redis-data
mountPath: /data
{{- end }}
{{- if .Values.cache.resources }}
resources:
{{- toYaml .Values.cache.resources | nindent 12 }}
{{- end }}
{{- if .Values.localStorageVolumes.enabled }}
volumes:
- name: redis-data
hostPath:
path: /tmp/pipecd-data/redis
type: DirectoryOrCreate
{{- end }}

---
# Single ops pod.
Expand Down Expand Up @@ -367,10 +379,22 @@ spec:
- name: mysql
containerPort: {{ .Values.mysql.port }}
protocol: TCP
{{- if .Values.localStorageVolumes.enabled }}
volumeMounts:
- name: mysql-data
mountPath: /var/lib/mysql
{{- end }}
{{- if .Values.mysql.resources }}
resources:
{{- toYaml .Values.mysql.resources | nindent 12 }}
{{- end }}
{{- if .Values.localStorageVolumes.enabled }}
volumes:
- name: mysql-data
hostPath:
path: /tmp/pipecd-data/mysql
type: DirectoryOrCreate
{{- end }}

---
# MinIO File Store
Expand Down Expand Up @@ -417,8 +441,21 @@ spec:
- name: minio
containerPort: {{ .Values.minio.port }}
protocol: TCP
{{- if .Values.localStorageVolumes.enabled }}
volumeMounts:
- name: minio-data
mountPath: /data
{{- end }}
{{- if .Values.minio.resources }}
resources:
{{- toYaml .Values.minio.resources | nindent 12 }}
{{- end }}
{{- if .Values.localStorageVolumes.enabled }}
volumes:
- name: minio-data
hostPath:
path: /tmp/pipecd-data/minio
type: DirectoryOrCreate
{{- end }}

{{- end }}
4 changes: 4 additions & 0 deletions manifests/pipecd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ cors:
quickstart:
enabled: false

# Local development storage volumes
localStorageVolumes:
enabled: false

monitoring:
# If true, prometheus and grafana sub-charts will be installed
enabled: false
Expand Down
3 changes: 3 additions & 0 deletions quickstart/control-plane-values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
quickstart:
enabled: true

localStorageVolumes:
enabled: true

config:
data: |
apiVersion: "pipecd.dev/v1beta1"
Expand Down