This is an automated email from the ASF dual-hosted git repository.
squakez pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
from d1d907d1c chore: nightly automatic updates
new 9a30911d4 Fix #5857: Add cert-manager auto-discovery to the Ingress
trait
new 40b3b082c Fix #5857: Add cert-manager auto-discovery to the Ingress
trait
new eac9b2b28 refactor: refactored according to the advices, received made
seperation of concerns clear among configure and apply
new fd2b535b6 refactor: added types to prevent unstructured, ingress_test
made it enabled by default and added a function to disable it
new dd88ebad6 refactor: Default cert-manager discovery to enabled in the
shared fake test client, matching the Knative default, and exclude cert-manager
duck types from the generic fake Kubernetes clientset (they are only ever
accessed via the typed controller-runtime client).added types to prevent
unstructured, ingress_test made it enabled by default and added a function to
disable it
new a7c820f0f Document cert-manager auto-discovery install-order caveat
new bb73e8d3a added error handling
new 044667342 pushed formatted fix
new e6c5cc086 Fix lint: reduce nestif complexity and drop named returns
Split the forced-issuer branch of resolveCertManagerIssuer() into its own
resolveForcedCertManagerIssuer() method to bring nesting complexity under
golangci-lint's nestif threshold, and switch to plain (unnamed) return values
to satisfy nonamedreturns.
The 9 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/{kafka.yml => cert-manager.yml} | 10 +-
docs/modules/ROOT/nav.adoc | 1 +
.../ROOT/pages/installation/cert-manager.adoc | 12 +
docs/modules/ROOT/partials/apis/camel-k-crds.adoc | 26 +++
docs/modules/traits/pages/ingress.adoc | 17 ++
e2e/cert-manager/certmanager_test.go | 85 +++++++
.../files/PlatformHttpServer.java | 0
.../cert-manager/setup/cluster-issuer.yaml | 9 +-
e2e/{gateway => cert-manager}/setup/setup.sh | 12 +-
helm/camel-k/crds/camel-k-crds.yaml | 136 +++++++++++
helm/camel-k/templates/rbacs-descoped.yaml | 32 +++
helm/camel-k/templates/rbacs-namespaced.yaml | 31 +++
...ck_v1.go => addtoscheme_certmanager_duck_v1.go} | 2 +-
pkg/apis/camel/v1/trait/ingress.go | 11 +
pkg/apis/camel/v1/trait/zz_generated.deepcopy.go | 5 +
pkg/apis/duck/{strimzi => certmanager}/v1/doc.go | 4 +-
pkg/apis/duck/certmanager/v1/duck_types.go | 65 ++++++
.../duck/{strimzi => certmanager}/v1/register.go | 10 +-
.../duck/certmanager/v1/zz_generated.deepcopy.go | 123 ++++++++++
pkg/cmd/operator/operator.go | 4 +
pkg/internal/client.go | 24 +-
pkg/platform/operator.go | 4 +
.../camel.apache.org_integrationplatforms.yaml | 34 +++
.../camel.apache.org_integrationprofiles.yaml | 34 +++
.../crd/bases/camel.apache.org_integrations.yaml | 34 +++
.../config/crd/bases/camel.apache.org_pipes.yaml | 34 +++
.../config/rbac/descoped/kustomization.yaml | 2 +
...operator-cluster-role-binding-certmanager.yaml} | 4 +-
...yaml => operator-cluster-role-certmanager.yaml} | 10 +-
.../config/rbac/namespaced/kustomization.yaml | 2 +
...yaml => operator-role-binding-certmanager.yaml} | 4 +-
...strimzi.yaml => operator-role-certmanager.yaml} | 10 +-
pkg/trait/ingress.go | 118 +++++++++-
pkg/trait/ingress_test.go | 160 +++++++++++++
pkg/util/certmanager/enabled.go | 113 ++++++++++
pkg/util/certmanager/enabled_test.go | 248 +++++++++++++++++++++
script/Makefile | 6 +
37 files changed, 1395 insertions(+), 41 deletions(-)
copy .github/workflows/{kafka.yml => cert-manager.yml} (94%)
create mode 100644 docs/modules/ROOT/pages/installation/cert-manager.adoc
create mode 100644 e2e/cert-manager/certmanager_test.go
copy e2e/{common/traits => cert-manager}/files/PlatformHttpServer.java (100%)
copy pkg/resources/config/samples/bases/camel_v1_integrationplatform.yaml =>
e2e/cert-manager/setup/cluster-issuer.yaml (90%)
copy e2e/{gateway => cert-manager}/setup/setup.sh (64%)
copy pkg/apis/{addtoscheme_strimzi_duck_v1.go =>
addtoscheme_certmanager_duck_v1.go} (93%)
copy pkg/apis/duck/{strimzi => certmanager}/v1/doc.go (89%)
create mode 100644 pkg/apis/duck/certmanager/v1/duck_types.go
copy pkg/apis/duck/{strimzi => certmanager}/v1/register.go (89%)
create mode 100644 pkg/apis/duck/certmanager/v1/zz_generated.deepcopy.go
copy
pkg/resources/config/rbac/descoped/{operator-cluster-role-binding-keda.yaml =>
operator-cluster-role-binding-certmanager.yaml} (94%)
copy pkg/resources/config/rbac/descoped/{operator-cluster-role-strimzi.yaml =>
operator-cluster-role-certmanager.yaml} (91%)
copy pkg/resources/config/rbac/namespaced/{operator-role-binding-knative.yaml
=> operator-role-binding-certmanager.yaml} (93%)
copy pkg/resources/config/rbac/namespaced/{operator-role-strimzi.yaml =>
operator-role-certmanager.yaml} (91%)
create mode 100644 pkg/util/certmanager/enabled.go
create mode 100644 pkg/util/certmanager/enabled_test.go