Skip to content

Commit

Permalink
charts: honor redoc.enabled=false
Browse files Browse the repository at this point in the history
also use correct nodeSelector and fix doc

Signed-off-by: Felix Ruess <[email protected]>
  • Loading branch information
flixr committed Jun 11, 2024
1 parent 25c3596 commit 90ba18a
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 61 deletions.
18 changes: 9 additions & 9 deletions charts/flyte-deps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,19 @@ helm upgrade -f values.yaml flyte .
| postgres.service | object | `{"annotations":{},"type":"NodePort"}` | Service settings for Postgres |
| postgres.tolerations | list | `[]` | tolerations for Postgres deployment |
| redis.enabled | bool | `false` | - enable or disable Redis Statefulset installation |
| redoc.affinity | object | `{}` | affinity for Minio deployment |
| redoc.enabled | bool | `false` | - enable or disable Minio deployment installation |
| redoc.affinity | object | `{}` | affinity for redoc deployment |
| redoc.enabled | bool | `false` | - enable or disable redoc deployment installation |
| redoc.image.pullPolicy | string | `"IfNotPresent"` | Docker image pull policy |
| redoc.image.repository | string | `"docker.io/redocly/redoc"` | Docker image for Minio deployment |
| redoc.image.repository | string | `"docker.io/redocly/redoc"` | Docker image for redoc deployment |
| redoc.image.tag | string | `"latest"` | Docker image tag |
| redoc.nodeSelector | object | `{}` | nodeSelector for Minio deployment |
| redoc.podAnnotations | object | `{}` | Annotations for Minio pods |
| redoc.replicaCount | int | `1` | Replicas count for Minio deployment |
| redoc.resources | object | `{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"10m","memory":"128Mi"}}` | Default resources requests and limits for Minio deployment |
| redoc.nodeSelector | object | `{}` | nodeSelector for redoc deployment |
| redoc.podAnnotations | object | `{}` | Annotations for redoc pods |
| redoc.replicaCount | int | `1` | Replicas count for redoc deployment |
| redoc.resources | object | `{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"10m","memory":"128Mi"}}` | Default resources requests and limits for redoc deployment |
| redoc.resources.limits | object | `{"cpu":"200m","memory":"512Mi"}` | Limits are the maximum set of resources needed for this pod |
| redoc.resources.requests | object | `{"cpu":"10m","memory":"128Mi"}` | Requests are the minimum set of resources needed for this pod |
| redoc.service | object | `{"type":"ClusterIP"}` | Service settings for Minio |
| redoc.tolerations | list | `[]` | tolerations for Minio deployment |
| redoc.service | object | `{"type":"ClusterIP"}` | Service settings for redoc |
| redoc.tolerations | list | `[]` | tolerations for redoc deployment |
| sparkoperator | object | `{"enabled":false}` | Optional: Spark Plugin using the Spark Operator |
| sparkoperator.enabled | bool | `false` | - enable or disable Sparkoperator deployment installation |
| webhook.enabled | bool | `true` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/flyte-deps/templates/redoc/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
ports:
- containerPort: 8087
resources: {{ toYaml .Values.redoc.resources | nindent 10 }}
{{- with .Values.minio.nodeSelector }}
{{- with .Values.redoc.nodeSelector }}
nodeSelector: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.redoc.affinity }}
Expand Down
2 changes: 2 additions & 0 deletions charts/flyte-deps/templates/redoc/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.redoc.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -17,3 +18,4 @@ spec:
port: 87
targetPort: 8087
selector: {{ include "redoc.selectorLabels" . | nindent 4 }}
{{- end }}
18 changes: 9 additions & 9 deletions charts/flyte-deps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,18 @@ minio:
affinity: {}

redoc:
# --- enable or disable Minio deployment installation
# --- enable or disable redoc deployment installation
enabled: false
# -- Replicas count for Minio deployment
# -- Replicas count for redoc deployment
replicaCount: 1
image:
# -- Docker image for Minio deployment
# -- Docker image for redoc deployment
repository: docker.io/redocly/redoc
# -- Docker image tag
tag: latest
# -- Docker image pull policy
pullPolicy: IfNotPresent
# -- Default resources requests and limits for Minio deployment
# -- Default resources requests and limits for redoc deployment
resources:
# -- Requests are the minimum set of resources needed for this pod
requests:
Expand All @@ -108,16 +108,16 @@ redoc:
limits:
cpu: 200m
memory: 512Mi
# -- Service settings for Minio
# -- Service settings for redoc
service:
type: ClusterIP
# -- Annotations for Minio pods
# -- Annotations for redoc pods
podAnnotations: {}
# -- nodeSelector for Minio deployment
# -- nodeSelector for redoc deployment
nodeSelector: {}
# -- tolerations for Minio deployment
# -- tolerations for redoc deployment
tolerations: []
# -- affinity for Minio deployment
# -- affinity for redoc deployment
affinity: {}

#
Expand Down
18 changes: 9 additions & 9 deletions charts/flyte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,18 +235,18 @@ helm upgrade -f values-sandbox.yaml flyte .
| postgres.tolerations | list | `[]` | tolerations for Postgres deployment |
| redis | object | `{"enabled":false}` | --------------------------------------------- REDIS SETTINGS |
| redis.enabled | bool | `false` | - enable or disable Redis Statefulset installation |
| redoc.affinity | object | `{}` | affinity for Minio deployment |
| redoc.enabled | bool | `true` | - enable or disable Minio deployment installation |
| redoc.affinity | object | `{}` | affinity for redoc deployment |
| redoc.enabled | bool | `true` | - enable or disable redoc deployment installation |
| redoc.image.pullPolicy | string | `"IfNotPresent"` | Docker image pull policy |
| redoc.image.repository | string | `"docker.io/redocly/redoc"` | Docker image for Minio deployment |
| redoc.image.repository | string | `"docker.io/redocly/redoc"` | Docker image for redoc deployment |
| redoc.image.tag | string | `"latest"` | Docker image tag |
| redoc.nodeSelector | object | `{}` | nodeSelector for Minio deployment |
| redoc.podAnnotations | object | `{}` | Annotations for Minio pods |
| redoc.replicaCount | int | `1` | Replicas count for Minio deployment |
| redoc.resources | object | `{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"10m","memory":"128Mi"}}` | Default resources requests and limits for Minio deployment |
| redoc.nodeSelector | object | `{}` | nodeSelector for redoc deployment |
| redoc.podAnnotations | object | `{}` | Annotations for redoc pods |
| redoc.replicaCount | int | `1` | Replicas count for redoc deployment |
| redoc.resources | object | `{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"10m","memory":"128Mi"}}` | Default resources requests and limits for redoc deployment |
| redoc.resources.limits | object | `{"cpu":"200m","memory":"512Mi"}` | Limits are the maximum set of resources needed for this pod |
| redoc.resources.requests | object | `{"cpu":"10m","memory":"128Mi"}` | Requests are the minimum set of resources needed for this pod |
| redoc.service | object | `{"type":"ClusterIP"}` | Service settings for Minio |
| redoc.tolerations | list | `[]` | tolerations for Minio deployment |
| redoc.service | object | `{"type":"ClusterIP"}` | Service settings for redoc |
| redoc.tolerations | list | `[]` | tolerations for redoc deployment |
| sparkoperator | object | `{"enabled":false}` | Optional: Spark Plugin using the Spark Operator |
| sparkoperator.enabled | bool | `false` | - enable or disable Sparkoperator deployment installation |
5 changes: 3 additions & 2 deletions charts/flyte/templates/redoc/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.redoc.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -33,7 +34,7 @@ spec:
ports:
- containerPort: 8087
resources: {{ toYaml .Values.redoc.resources | nindent 10 }}
{{- with .Values.minio.nodeSelector }}
{{- with .Values.redoc.nodeSelector }}
nodeSelector: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.redoc.affinity }}
Expand All @@ -42,4 +43,4 @@ spec:
{{- with .Values.redoc.tolerations }}
tolerations: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}

{{- end }}
2 changes: 2 additions & 0 deletions charts/flyte/templates/redoc/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.redoc.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -17,3 +18,4 @@ spec:
port: 87
targetPort: 8087
selector: {{ include "redoc.selectorLabels" . | nindent 4 }}
{{- end }}
18 changes: 9 additions & 9 deletions charts/flyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -751,18 +751,18 @@ minio:
affinity: {}

redoc:
# --- enable or disable Minio deployment installation
# --- enable or disable redoc deployment installation
enabled: true
# -- Replicas count for Minio deployment
# -- Replicas count for redoc deployment
replicaCount: 1
image:
# -- Docker image for Minio deployment
# -- Docker image for redoc deployment
repository: docker.io/redocly/redoc
# -- Docker image tag
tag: latest
# -- Docker image pull policy
pullPolicy: IfNotPresent
# -- Default resources requests and limits for Minio deployment
# -- Default resources requests and limits for redoc deployment
resources:
# -- Requests are the minimum set of resources needed for this pod
requests:
Expand All @@ -772,16 +772,16 @@ redoc:
limits:
cpu: 200m
memory: 512Mi
# -- Service settings for Minio
# -- Service settings for redoc
service:
type: ClusterIP
# -- Annotations for Minio pods
# -- Annotations for redoc pods
podAnnotations: {}
# -- nodeSelector for Minio deployment
# -- nodeSelector for redoc deployment
nodeSelector: {}
# -- tolerations for Minio deployment
# -- tolerations for redoc deployment
tolerations: []
# -- affinity for Minio deployment
# -- affinity for redoc deployment
affinity: {}

#
Expand Down
22 changes: 0 additions & 22 deletions deployment/sandbox/flyte_sandbox_deps_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -527,28 +527,6 @@ spec:
app.kubernetes.io/name: postgres
app.kubernetes.io/instance: flyte
---
# Source: flyte-deps/templates/redoc/service.yaml
apiVersion: v1
kind: Service
metadata:
name: redoc
namespace: flyte
labels:
app.kubernetes.io/name: redoc
app.kubernetes.io/instance: flyte
helm.sh/chart: flyte-deps-v0.1.10
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- name: redoc
protocol: TCP
port: 87
targetPort: 8087
selector:
app.kubernetes.io/name: redoc
app.kubernetes.io/instance: flyte
---
# Source: flyte-deps/templates/webhook/service.yaml
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 90ba18a

Please sign in to comment.