Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flux/component-constructor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ components:
# install via helm install
- name: flux-chart
type: helmChart
version: v2.18.3
version: "2.18.3"
relation: external
access:
type: ociArtifact
imageReference: ghcr.io/fluxcd-community/charts/flux2:2.18.3

- name: flux-chart-values-template
type: yaml
version: v2.18.3
version: "2.18.3"
labels:
- name: opendefense.cloud/helm/values-for
value: flux-chart
Expand Down
16 changes: 8 additions & 8 deletions flux/values.yaml.tpl
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{{- $cli := index .OCIResources "cli-image" }}
cli:
image: {{ $cli.Host }}/{{ $cli.Repository }}
tag: {{ $cli.Tag }}
tag: "{{ $cli.Tag }}"

{{- $helmController := index .OCIResources "helm-controller-image" }}
helmController:
image: {{ $helmController.Host }}/{{ $helmController.Repository }}
tag: {{ $helmController.Tag }}
tag: "{{ $helmController.Tag }}"

{{- $imageAutomationController := index .OCIResources "image-automation-controller-image" }}
imageAutomationController:
image: {{ $imageAutomationController.Host }}/{{ $imageAutomationController.Repository }}
tag: {{ $imageAutomationController.Tag }}
tag: "{{ $imageAutomationController.Tag }}"

{{- $imageReflectionController := index .OCIResources "image-reflector-controller-image" }}
imageReflectionController:
image: {{ $imageReflectionController.Host }}/{{ $imageReflectionController.Repository }}
tag: {{ $imageReflectionController.Tag }}
tag: "{{ $imageReflectionController.Tag }}"

{{- $kustomizeController := index .OCIResources "kustomize-controller-image" }}
kustomizeController:
image: {{ $kustomizeController.Host }}/{{ $kustomizeController.Repository }}
tag: {{ $kustomizeController.Tag }}
tag: "{{ $kustomizeController.Tag }}"

{{- $notificationController := index .OCIResources "notification-controller-image" }}
notificationController:
image: {{ $notificationController.Host }}/{{ $notificationController.Repository }}
tag: {{ $notificationController.Tag }}
tag: "{{ $notificationController.Tag }}"

{{- $sourceController := index .OCIResources "source-controller-image" }}
sourceController:
image: {{ $sourceController.Host }}/{{ $sourceController.Repository }}
tag: {{ $sourceController.Tag }}
tag: "{{ $sourceController.Tag }}"

{{- $sourceWatcher := index .OCIResources "source-watcher-image" }}
sourceWatcher:
image: {{ $sourceWatcher.Host }}/{{ $sourceWatcher.Repository }}
tag: {{ $sourceWatcher.Tag }}
tag: "{{ $sourceWatcher.Tag }}"
11 changes: 11 additions & 0 deletions zot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# zot OCM Component

This directory contains the OCM (Open Component Model) packaging for [zot](https://zotregistry.dev)

## Component structure

```text
zot/
├── component-constructor.yaml # OCM component descriptor
├── values.yaml.tpl # values.yaml template for ocm-kit
```
46 changes: 46 additions & 0 deletions zot/component-constructor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
components:
- name: opendefense.cloud/zot
provider:
name: opendefense.cloud
labels:
- name: app.kubernetes.io/name
value: zot
- name: app.kubernetes.io/component
value: zot
- name: app.kubernetes.io/part-of
value: zot
resources:
- name: zot-chart
type: helmChart
version: "0.1.116"
relation: external
access:
type: ociArtifact
imageReference: ghcr.io/project-zot/helm-charts/zot:0.1.116

- name: flux-chart-values-template
type: yaml
version: "0.1.116"
labels:
- name: opendefense.cloud/helm/values-for
value: zot-chart
relation: local
input:
type: file
path: values.yaml.tpl

- name: zot-image
type: ociImage
version: v2.1.17
relation: external
access:
type: ociArtifact
imageReference: ghcr.io/project-zot/zot:v2.1.17

- name: alpine-image
type: ociImage
version: "3.18"
relation: external
access:
type: ociArtifact
imageReference: docker.io/library/alpine:3.18
10 changes: 10 additions & 0 deletions zot/values.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- $zot := index .OCIResources "zot-image" }}
image:
repository: {{ $zot.Host }}/{{ $zot.Repository }}
tag: "{{ $zot.Tag }}"

{{- $alpine := index .OCIResources "alpine-image" }}
test:
image:
repository: {{ $alpine.Host }}/{{ $alpine.Repository }}
tag: "{{ $alpine.Tag }}"