This commit is contained in:
@ -8,7 +8,7 @@ trigger:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: release
|
- name: release
|
||||||
image: cr.grachevko.ru/drone/helm:RELEASE.2023-03-01T13-46-55Z
|
image: cr.grachevko.ru/drone/helm:RELEASE.2023-03-01T13-46-55Z
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
2
.github/workflows/main.yaml
vendored
2
.github/workflows/main.yaml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: [push]
|
on: [ push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
12
README.md
12
README.md
@ -19,7 +19,8 @@ dependencies:
|
|||||||
repository: https://harbor.grachevko.ru/chartrepo/helm
|
repository: https://harbor.grachevko.ru/chartrepo/helm
|
||||||
```
|
```
|
||||||
|
|
||||||
Once you have defined dependencies, you should run the following command to download this chart into your `charts/` directory:
|
Once you have defined dependencies, you should run the following command to download this chart into your `charts/`
|
||||||
|
directory:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ helm dep build
|
$ helm dep build
|
||||||
@ -61,13 +62,15 @@ helm.sh/chart: foo-1.2.3-beta.55_1234
|
|||||||
|
|
||||||
### `common.fullname`
|
### `common.fullname`
|
||||||
|
|
||||||
The `common.fullname` template generates a name suitable for the `name:` field in Kubernetes metadata. It is used like this:
|
The `common.fullname` template generates a name suitable for the `name:` field in Kubernetes metadata. It is used like
|
||||||
|
this:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: { { include "common.fullname" . } }
|
name: { { include "common.fullname" . } }
|
||||||
```
|
```
|
||||||
|
|
||||||
This prints the value of `{{ .Release.Name }}-{{ .Chart.Name }}` by default, but can be overridden with `.Values. fullnameOverride`:
|
This prints the value of `{{ .Release.Name }}-{{ .Chart.Name }}` by default, but can be overridden
|
||||||
|
with `.Values. fullnameOverride`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
fullnameOverride: some-name
|
fullnameOverride: some-name
|
||||||
@ -142,7 +145,8 @@ metadata:
|
|||||||
name: release-name-mychart
|
name: release-name-mychart
|
||||||
```
|
```
|
||||||
|
|
||||||
Most of the common templates that define a resource type (e.g. `common.configMap` or `common.cronJob`) use this to generate the metadata, which means they inherit the same `labels` and `name` fields.
|
Most of the common templates that define a resource type (e.g. `common.configMap` or `common.cronJob`) use this to
|
||||||
|
generate the metadata, which means they inherit the same `labels` and `name` fields.
|
||||||
|
|
||||||
### `common.name`
|
### `common.name`
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: wget
|
- name: wget
|
||||||
image: busybox
|
image: busybox
|
||||||
command: ['wget']
|
command: [ 'wget' ]
|
||||||
args: ['{{ include "common.fullname" . }}:{{ .Values.service.port }}']
|
args: [ '{{ include "common.fullname" . }}:{{ .Values.service.port }}' ]
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
Reference in New Issue
Block a user