Skip to content

Commit

Permalink
Publish Helm charts as OCI artifacts (#359)
Browse files Browse the repository at this point in the history
* Publish Helm charts as OCI artifacts

* fix DNSEntry ref

---------

Co-authored-by: Martin Weindel <[email protected]>
  • Loading branch information
oliver-goetz and MartinWeindel authored Jul 25, 2024
1 parent ac53ea1 commit 4f42de2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .ci/pipeline_definitions
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
gardener-extension-shoot-dns-service:
templates:
helmcharts:
- &shoot-dns-service
name: shoot-dns-service
dir: charts/gardener-extension-shoot-dns-service
registry: europe-docker.pkg.dev/gardener-project/snapshots/charts/gardener/extensions
mappings:
- ref: ocm-resource:gardener-extension-shoot-dns-service.repository
attribute: image.repository
- ref: ocm-resource:gardener-extension-shoot-dns-service.tag
attribute: image.tag
- &shoot-dns-service-admission
name: admission-shoot-dns-service
dir: charts/gardener-extension-admission-shoot-dns-service
registry: europe-docker.pkg.dev/gardener-project/snapshots/charts/gardener/extensions
mappings:
- ref: ocm-resource:gardener-extension-admission-shoot-dns-service.repository
attribute: global.image.repository
- ref: ocm-resource:gardener-extension-admission-shoot-dns-service.tag
attribute: global.image.tag

base_definition:
traits:
version:
Expand All @@ -24,6 +45,10 @@ gardener-extension-shoot-dns-service:
draft_release: ~
options:
public_build_logs: true
publish:
helmcharts:
- *shoot-dns-service
- *shoot-dns-service-admission
pull-request:
traits:
pull-request: ~
Expand All @@ -32,6 +57,10 @@ gardener-extension-shoot-dns-service:
- repository: europe-docker.pkg.dev/gardener-project/releases
options:
public_build_logs: true
publish:
helmcharts:
- *shoot-dns-service
- *shoot-dns-service-admission
release:
traits:
version:
Expand All @@ -56,3 +85,8 @@ gardener-extension-shoot-dns-service:
gardener-extension-admission-shoot-dns-service:
image: europe-docker.pkg.dev/gardener-project/releases/gardener/extensions/admission-shoot-dns-service
tag_as_latest: true
helmcharts:
- <<: *shoot-dns-service
registry: europe-docker.pkg.dev/gardener-project/releases/charts/gardener/extensions
- <<: *shoot-dns-service-admission
registry: europe-docker.pkg.dev/gardener-project/releases/charts/gardener/extensions
4 changes: 2 additions & 2 deletions hack/api-reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ string
<td>
<code>entries</code></br>
<em>
<a href="#dns.extensions.gardener.cloud/v1alpha1.*github.com/gardener/gardener-extension-shoot-dns-service/pkg/apis/v1alpha1.DNSEntry">
[]*github.com/gardener/gardener-extension-shoot-dns-service/pkg/apis/v1alpha1.DNSEntry
<a href="#dns.extensions.gardener.cloud/v1alpha1.*..DNSEntry">
[]*..DNSEntry
</a>
</em>
</td>
Expand Down

0 comments on commit 4f42de2

Please sign in to comment.