From 5ccba36ed288f32976914b2ae527cbb7ba342e90 Mon Sep 17 00:00:00 2001 From: FrancescoL96 Date: Fri, 12 Sep 2025 11:33:42 +0200 Subject: [PATCH] refactor: moved CRDs to external chart as dependency --- chart/Chart.yaml | 5 ++++ crd-chart/Chart.yaml | 24 +++++++++++++++++++ .../basic.authn.krateo.io_users.yaml | 0 .../ldap.authn.krateo.io_ldapconfigs.yaml | 0 .../oauth.authn.krateo.io_oauthconfigs.yaml | 0 .../oidc.authn.krateo.io_oidcconfigs.yaml | 0 crd-chart/values.yaml | 0 7 files changed, 29 insertions(+) create mode 100644 crd-chart/Chart.yaml rename {chart/crds => crd-chart/templates}/basic.authn.krateo.io_users.yaml (100%) rename {chart/crds => crd-chart/templates}/ldap.authn.krateo.io_ldapconfigs.yaml (100%) rename {chart/crds => crd-chart/templates}/oauth.authn.krateo.io_oauthconfigs.yaml (100%) rename {chart/crds => crd-chart/templates}/oidc.authn.krateo.io_oidcconfigs.yaml (100%) create mode 100644 crd-chart/values.yaml diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 0c96f72..ba7e554 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -22,3 +22,8 @@ version: CHART_VERSION # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. appVersion: APP_VERSION + +dependencies: + - name: authn-crd + version: 0.0.1 + repository: file://../crd-chart \ No newline at end of file diff --git a/crd-chart/Chart.yaml b/crd-chart/Chart.yaml new file mode 100644 index 0000000..6f40fbf --- /dev/null +++ b/crd-chart/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: authn-crd +description: Krateo PlatformOps AuthN Service CRDs + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.0.1 + +home: https://krateo.io +icon: "https://github.com/krateoplatformops/krateo/blob/main/docs/media/logo.svg" + +sources: + - https://github.com/krateoplatformops/authn \ No newline at end of file diff --git a/chart/crds/basic.authn.krateo.io_users.yaml b/crd-chart/templates/basic.authn.krateo.io_users.yaml similarity index 100% rename from chart/crds/basic.authn.krateo.io_users.yaml rename to crd-chart/templates/basic.authn.krateo.io_users.yaml diff --git a/chart/crds/ldap.authn.krateo.io_ldapconfigs.yaml b/crd-chart/templates/ldap.authn.krateo.io_ldapconfigs.yaml similarity index 100% rename from chart/crds/ldap.authn.krateo.io_ldapconfigs.yaml rename to crd-chart/templates/ldap.authn.krateo.io_ldapconfigs.yaml diff --git a/chart/crds/oauth.authn.krateo.io_oauthconfigs.yaml b/crd-chart/templates/oauth.authn.krateo.io_oauthconfigs.yaml similarity index 100% rename from chart/crds/oauth.authn.krateo.io_oauthconfigs.yaml rename to crd-chart/templates/oauth.authn.krateo.io_oauthconfigs.yaml diff --git a/chart/crds/oidc.authn.krateo.io_oidcconfigs.yaml b/crd-chart/templates/oidc.authn.krateo.io_oidcconfigs.yaml similarity index 100% rename from chart/crds/oidc.authn.krateo.io_oidcconfigs.yaml rename to crd-chart/templates/oidc.authn.krateo.io_oidcconfigs.yaml diff --git a/crd-chart/values.yaml b/crd-chart/values.yaml new file mode 100644 index 0000000..e69de29