Skip to content

Implement namespaced resources and upgrade crossplane runtime#148

Merged
arielsepton merged 3 commits intocrossplane-contrib:mainfrom
ricCap:add-namespaced-resources-and-upgrade-runtime
Nov 19, 2025
Merged

Implement namespaced resources and upgrade crossplane runtime#148
arielsepton merged 3 commits intocrossplane-contrib:mainfrom
ricCap:add-namespaced-resources-and-upgrade-runtime

Conversation

@ricCap
Copy link
Copy Markdown
Contributor

@ricCap ricCap commented Nov 18, 2025

Description of your changes

This PR contains the changes from #139 and #141, and implements namespaced MRs #128.

This PR includes:

  • bump up the crossplane runtime to v2
  • use chainsaw for e2e tests
  • ⚠️ External Secret Store support is removed from ALL MRs (spec.publishConnectionDetailsTo is removed). This feature was alpha and it was decided to be removed from crossplane.
  • all other changes are backwards-compatible
  • adding namespaced resources and moving v1 resources to a different subfolder (cluster)
  • new resources are in the api group http.m.crossplane.io
  • adds e2e tests for new resources and adds to the Github Actions workflow jobs for running e2e tests with both crossplane v1 and v2
  • similar changes to crossplane v2: Generate namespace-scoped MRs provider-upjet-azure#1019 (comment)
  • skip secret injection during deletion of resources (fixes deletion, all namespaced e2e tests can now be deleted using foreground deletion). You can test this using the example application below

The aim of this PR is to avoid any breaking changes to the existing resources

The changes are based on the following examples:

Warning Not sure how to modify the hack folder, I left it as it was

Fixes #128

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • e2e tests in the pipeline
  • deployed with argocd (foreground delete in ArgoCD works now as well)
image

Test in ArgoCD

Install using helm and use this application

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: provider-http-namespaced-examples
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/ricCap/provider-http
    targetRevision: upgrade-crossplane-runtime-and-add-namespaced-resources
    path: examples/namespaced
  destination:
    server: https://kubernetes.default.svc
    namespace: default
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
    - CreateNamespace=true

Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
@arielsepton arielsepton merged commit c9f65a1 into crossplane-contrib:main Nov 19, 2025
8 checks passed
@sk4mi sk4mi mentioned this pull request Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Crossplane v2 and namespaced resources

2 participants