add info.yaml files for k8s images
This commit is contained in:
parent
6235bdb955
commit
dd9866702e
58
README.md
58
README.md
@ -26,6 +26,64 @@ the organization `<ORGANIZATION>`, run:
|
||||
```
|
||||
If you push to the users repository, then organiztion is your username.
|
||||
|
||||
## info.yaml format
|
||||
|
||||
- `is_versioned`: **bool** (REQUIRED)
|
||||
|
||||
Whether to use package version as a tag for this image
|
||||
|
||||
- `source_packages`: **list of strings** (REQUIRED)
|
||||
|
||||
List of source packages (src.rpm) this image depends on.
|
||||
If contains jinja2 template syntax, `--package-version`
|
||||
CLI option must be specified.
|
||||
|
||||
- `version_template`: **string** (OPTIONAL)
|
||||
|
||||
template to apply when construction the tag,
|
||||
`version` string variable is available in the template
|
||||
|
||||
### examples
|
||||
|
||||
|
||||
#### org/k8s/flannel-cni-plugin
|
||||
|
||||
```yaml
|
||||
is_versioned: true
|
||||
version_template: v{{ version.rsplit('.', 1) | first }}-flannel{{ version.rsplit('.', 1) | last }}
|
||||
source_packages:
|
||||
- cni-plugin-flannel
|
||||
```
|
||||
|
||||
```bash
|
||||
./build.py -i k8s/flannel-cni-plugin
|
||||
```
|
||||
|
||||
#### org/k8s/kube-apiserver
|
||||
|
||||
```yaml
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- kubernetes{{ version }}
|
||||
```
|
||||
|
||||
```bash
|
||||
./build.py -i k8s/kube-apiserver --package-version 1.31
|
||||
```
|
||||
|
||||
#### org/k8s/pause
|
||||
|
||||
```yaml
|
||||
is_versioned: true
|
||||
source_packages:
|
||||
- kubernetes-pause
|
||||
```
|
||||
|
||||
```bash
|
||||
./build.py -i k8s/pause
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
On x86_64 machine using p10 branch you need:
|
||||
- `python3-module-tomli`
|
||||
|
6
org/k8s/cert-manager-acmesolver/info.yaml
Normal file
6
org/k8s/cert-manager-acmesolver/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- cert-manager
|
||||
...
|
6
org/k8s/cert-manager-cainjector/info.yaml
Normal file
6
org/k8s/cert-manager-cainjector/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- cert-manager
|
||||
...
|
6
org/k8s/cert-manager-controller/info.yaml
Normal file
6
org/k8s/cert-manager-controller/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- cert-manager
|
||||
...
|
6
org/k8s/cert-manager-startupapicheck/info.yaml
Normal file
6
org/k8s/cert-manager-startupapicheck/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- cert-manager
|
||||
...
|
6
org/k8s/cert-manager-webhook/info.yaml
Normal file
6
org/k8s/cert-manager-webhook/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- cert-manager
|
||||
...
|
6
org/k8s/coredns/info.yaml
Normal file
6
org/k8s/coredns/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- coredns{{ version }}
|
||||
...
|
12
org/k8s/etcd/info.yaml
Normal file
12
org/k8s/etcd/info.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: >
|
||||
{% set version_patch = version.split(".")[2] | int %}
|
||||
{% if version_patch < 16 %}
|
||||
{{ version }}-0
|
||||
{% else %}
|
||||
v{{ version }}
|
||||
{% endif %}
|
||||
source_packages:
|
||||
- etcd
|
||||
...
|
4
org/k8s/flannel/info.yaml
Normal file
4
org/k8s/flannel/info.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- flannel
|
6
org/k8s/kube-controller-manager/info.yaml
Normal file
6
org/k8s/kube-controller-manager/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- kubernetes{{ version }}
|
||||
...
|
6
org/k8s/kube-proxy/info.yaml
Normal file
6
org/k8s/kube-proxy/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- kubernetes{{ version }}
|
||||
...
|
6
org/k8s/kube-scheduler/info.yaml
Normal file
6
org/k8s/kube-scheduler/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- kubernetes{{ version }}
|
||||
...
|
6
org/k8s/kubelet/info.yaml
Normal file
6
org/k8s/kubelet/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- kubernetes{{ version }}
|
||||
...
|
5
org/k8s/pause/info.yaml
Normal file
5
org/k8s/pause/info.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
is_versioned: true
|
||||
source_packages:
|
||||
- kubernetes-pause
|
||||
...
|
6
org/k8s/trivy-node-collector/info.yaml
Normal file
6
org/k8s/trivy-node-collector/info.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
is_versioned: true
|
||||
version_template: v{{ version }}
|
||||
source_packages:
|
||||
- kubernetes{{ version }}
|
||||
...
|
Loading…
Reference in New Issue
Block a user