File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,25 @@ Helm Chart containing our common functions
7
7
8
8
## Usage
9
9
10
+ ### How to install
11
+
12
+ Add this chart to your chart dependencies.
13
+
14
+ ```
15
+ apiVersion: v2
16
+ name: my-chart
17
+ description: Your Helm chart description
18
+ icon: https://huggingface.co/front/assets/huggingface_logo-noborder.svg
19
+ type: application
20
+ version: 1.0.0
21
+ appVersion: "latest"
22
+
23
+ dependencies:
24
+ - name: common
25
+ version: x.x.x
26
+ repository: https://registry.internal.huggingface.tech/chartrepo/charts
27
+ ```
28
+
10
29
### Docker images management
11
30
12
31
#### Use a public docker image
@@ -213,6 +232,25 @@ spec:
213
232
...
214
233
` ` `
215
234
235
+ # ## Labels management
236
+
237
+ Use the common function to generate your resource labels.
238
+
239
+ **`_helpers.yaml`**
240
+ ` ` ` yaml
241
+ {{- define "yourComp.selectorLabels" -}}
242
+ {{ include "hf.labels.commons" . }}
243
+ app.kubernetes.io/component: your-component-name
244
+ {{- end }}
245
+ ` ` `
246
+
247
+ **`deployment.yaml`**
248
+ ` ` ` yaml
249
+ apiVersion: apps/v1
250
+ kind: Deployment
251
+ metadata:
252
+ labels: {{- include "yourComp.selectorLabels" . | nindent 4 }}
253
+ ` ` `
216
254
217
255
# # Credits
218
256
You can’t perform that action at this time.
0 commit comments