Skip to content

Commit bfaecf4

Browse files
Migrate from frigate to sphinx-helm (#924)
* Migrate from frigate to sphinx-helm * Bump sphinx-helm to 0.2.1
1 parent ac5a3ce commit bfaecf4

File tree

6 files changed

+9
-73
lines changed

6 files changed

+9
-73
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ repos:
1010
- id: black
1111
language_version: python3
1212
exclude: versioneer.py
13-
- repo: https://github.com/rapidsai/frigate/
14-
rev: v0.4.0 # pre-commit autoupdate - to keep the version up to date
15-
hooks:
16-
- id: frigate
1713
- repo: local
1814
hooks:
1915
- id: check-crd-updates
@@ -50,4 +46,4 @@ repos:
5046
|go\.sum
5147
|dask_kubernetes/operator/go_client/.*\.go
5248
)$
53-
pass_filenames: false
49+
pass_filenames: false

dask_kubernetes/operator/deployment/helm/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Dask Operator Helm Chart
2+
3+
See the [documentation](https://kubernetes.dask.org/en/latest/installing.html#operator) for installation information.
Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,3 @@
1+
# Dask Operator Helm Chart
12

2-
Dask-kubernetes-operator
3-
===========
4-
5-
A helm chart for managing the deployment of the dask kubernetes operator and CRDs
6-
7-
8-
## Configuration
9-
10-
The following table lists the configurable parameters of the Dask-kubernetes-operator chart and their default values.
11-
12-
| Parameter | Description | Default |
13-
| ------------------------ | ----------------------- | -------------- |
14-
| `image.name` | Docker image for the operator | `"ghcr.io/dask/dask-kubernetes-operator"` |
15-
| `image.tag` | Release version | `"set-by-chartpress"` |
16-
| `image.pullPolicy` | Pull policy | `"IfNotPresent"` |
17-
| `imagePullSecrets` | Image pull secrets for private registries | `[]` |
18-
| `nameOverride` | Override release name (not including random UUID) | `""` |
19-
| `fullnameOverride` | Override full release name | `""` |
20-
| `serviceAccount.create` | Create a service account for the operator to use | `true` |
21-
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |
22-
| `serviceAccount.name` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. | `""` |
23-
| `rbac.create` | Create a Role/ClusterRole needed by the operator and bind it to the service account | `true` |
24-
| `rbac.cluster` | Creates a ClusterRole if true, else create a namespaced Role | `true` |
25-
| `podAnnotations` | Extra annotations for the operator pod | `{}` |
26-
| `podSecurityContext` | Security context for the operator pod | `{}` |
27-
| `securityContext.capabilities.drop` | | `["ALL"]` |
28-
| `securityContext.runAsNonRoot` | | `true` |
29-
| `securityContext.runAsUser` | | `1000` |
30-
| `securityContext.allowPrivilegeEscalation` | | `false` |
31-
| `securityContext.readOnlyRootFilesystem` | | `true` |
32-
| `resources` | Resources for the operator pod | `{}` |
33-
| `volumes` | Volumes for the operator pod | `[]` |
34-
| `volumeMounts` | Volume mounts for the operator container | `[]` |
35-
| `nodeSelector` | Node selector | `{}` |
36-
| `tolerations` | Tolerations | `[]` |
37-
| `affinity` | Affinity | `{}` |
38-
| `priorityClassName` | Priority class | `null` |
39-
| `livenessProbe.timeoutSeconds` | | `5` |
40-
| `kopfArgs` | Command line flags to pass to kopf on start up | `["--all-namespaces"]` |
41-
| `metrics.scheduler.enabled` | Enable scheduler metrics. Pip package [prometheus-client](https://pypi.org/project/prometheus-client/) should be present on scheduler. | `false` |
42-
| `metrics.scheduler.serviceMonitor.enabled` | Enable scheduler servicemonitor. | `false` |
43-
| `metrics.scheduler.serviceMonitor.namespace` | Deploy servicemonitor in different namespace, e.g. monitoring. | `""` |
44-
| `metrics.scheduler.serviceMonitor.namespaceSelector` | Selector to select which namespaces the Endpoints objects are discovered from. | `{}` |
45-
| `metrics.scheduler.serviceMonitor.additionalLabels` | Additional labels to add to the ServiceMonitor metadata. | `{}` |
46-
| `metrics.scheduler.serviceMonitor.interval` | Interval at which metrics should be scraped. | `"15s"` |
47-
| `metrics.scheduler.serviceMonitor.jobLabel` | The label to use to retrieve the job name from. | `""` |
48-
| `metrics.scheduler.serviceMonitor.targetLabels` | TargetLabels transfers labels on the Kubernetes Service onto the target. | `["dask.org/cluster-name"]` |
49-
| `metrics.scheduler.serviceMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples before ingestion. | `[]` |
50-
| `metrics.worker.enabled` | Enable workers metrics. Pip package [prometheus-client](https://pypi.org/project/prometheus-client/) should be present on workers. | `false` |
51-
| `metrics.worker.podMonitor.enabled` | Enable workers podmonitor | `false` |
52-
| `metrics.worker.podMonitor.namespace` | Deploy podmonitor in different namespace, e.g. monitoring. | `""` |
53-
| `metrics.worker.podMonitor.namespaceSelector` | Selector to select which namespaces the Endpoints objects are discovered from. | `{}` |
54-
| `metrics.worker.podMonitor.additionalLabels` | Additional labels to add to the PodMonitor metadata. | `{}` |
55-
| `metrics.worker.podMonitor.interval` | Interval at which metrics should be scraped. | `"15s"` |
56-
| `metrics.worker.podMonitor.jobLabel` | The label to use to retrieve the job name from. | `""` |
57-
| `metrics.worker.podMonitor.podTargetLabels` | PodTargetLabels transfers labels on the Kubernetes Pod onto the target. | `["dask.org/cluster-name", "dask.org/workergroup-name"]` |
58-
| `metrics.worker.podMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples before ingestion. | `[]` |
59-
| `workerAllocation.size` | | `null` |
60-
| `workerAllocation.delay` | | `null` |
61-
62-
63-
64-
---
65-
_Documentation generated by [Frigate](https://frigate.readthedocs.io)._
3+
See the [documentation](https://kubernetes.dask.org/en/latest/installing.html#operator) for installation information.

docs/requirements-docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sphinx
33
sphinx-reredirects
44
sphinxcontrib-mermaid
55
dask-sphinx-theme>=3.0.0
6-
frigate>=0.7.0
6+
sphinx-helm>=0.2.1
77

88
# FIXME: This workaround is required until we have sphinx>=5, as enabled by
99
# dask-sphinx-theme no longer pinning sphinx-book-theme==0.2.0. This is

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"numpydoc",
4444
"sphinx_reredirects",
4545
"sphinxcontrib.mermaid",
46-
"frigate.sphinx.ext",
46+
"sphinx_helm.ext",
4747
]
4848

4949
# Add any paths that contain templates here, relative to this directory.

docs/source/installing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ If you're using the official Dask images you can install this at runtime.
147147
Chart Configuration Reference
148148
"""""""""""""""""""""""""""""
149149

150-
.. frigate:: ../../dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator
150+
.. helm:: ../../dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator
151151

152152
Installing with Manifests
153153
^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)