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
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: nop.example.org/v1alpha1
kind: NopResource
metadata:
annotations:
crossplane.io/composition-resource-name: only
name: standalone-xr-only
spec:
forProvider:
configData: standalone-value
status:
conditions:
- type: Synced
status: "True"
reason: ReconcileSuccess
lastTransitionTime: "2026-01-01T00:00:00Z"
- type: Ready
status: "True"
reason: Available
lastTransitionTime: "2026-01-01T00:00:00Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# The Configuration's current revision. The test creates it a second after
# packages.yaml's inactive one: revisions sort by creationTimestamp, which has
# one-second resolution.
apiVersion: pkg.crossplane.io/v1
kind: ConfigurationRevision
metadata:
name: platform-2222
labels:
pkg.crossplane.io/package: platform
spec:
desiredState: Active
image: xpkg.example.org/acme/platform:v1.0.0
revision: 2
status:
conditions:
- type: Healthy
status: "True"
reason: HealthyPackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
145 changes: 145 additions & 0 deletions cmd/crossplane/trace/testdata/integration/packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# A Configuration depending on a Provider and a Function, the Provider also
# depending on the Function, with their revisions and the Lock, as the package
# manager leaves them. The API server drops status on create, so the test
# writes each object's status, and points each revision's controller reference
# at its package, after Start.
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
metadata:
name: default
---
apiVersion: pkg.crossplane.io/v1
kind: Configuration
metadata:
name: platform
spec:
package: xpkg.example.org/acme/platform:v1.0.0
status:
currentRevision: platform-2222
conditions:
- type: Installed
status: "True"
reason: ActivePackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
- type: Healthy
status: "True"
reason: HealthyPackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
---
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-nop
spec:
package: xpkg.example.org/acme/provider-nop:v0.5.0
status:
currentRevision: provider-nop-aaaa
conditions:
- type: Installed
status: "True"
reason: ActivePackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
- type: Healthy
status: "False"
reason: UnhealthyPackageRevision
message: runtime is not ready
lastTransitionTime: "2026-01-01T00:00:00Z"
---
apiVersion: pkg.crossplane.io/v1
kind: Function
metadata:
name: function-dummy
spec:
package: xpkg.example.org/acme/function-dummy:v0.3.0
status:
currentRevision: function-dummy-bbbb
conditions:
- type: Installed
status: "True"
reason: ActivePackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
- type: Healthy
status: "True"
reason: HealthyPackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
---
apiVersion: pkg.crossplane.io/v1
kind: ConfigurationRevision
metadata:
name: platform-1111
labels:
pkg.crossplane.io/package: platform
spec:
desiredState: Inactive
image: xpkg.example.org/acme/platform:v0.9.0
revision: 1
status:
conditions:
- type: Healthy
status: "True"
reason: HealthyPackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
---
apiVersion: pkg.crossplane.io/v1
kind: ProviderRevision
metadata:
name: provider-nop-aaaa
labels:
pkg.crossplane.io/package: provider-nop
spec:
desiredState: Active
image: xpkg.example.org/acme/provider-nop:v0.5.0
revision: 1
status:
conditions:
- type: Healthy
status: "True"
reason: HealthyPackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
---
apiVersion: pkg.crossplane.io/v1
kind: FunctionRevision
metadata:
name: function-dummy-bbbb
labels:
pkg.crossplane.io/package: function-dummy
spec:
desiredState: Active
image: xpkg.example.org/acme/function-dummy:v0.3.0
revision: 1
status:
conditions:
- type: Healthy
status: "True"
reason: HealthyPackageRevision
lastTransitionTime: "2026-01-01T00:00:00Z"
---
apiVersion: pkg.crossplane.io/v1beta1
kind: Lock
metadata:
name: lock
packages:
- name: platform-2222
type: Configuration
source: xpkg.example.org/acme/platform
version: v1.0.0
dependencies:
- package: xpkg.example.org/acme/provider-nop
type: Provider
constraints: ">=v0.5.0"
- package: xpkg.example.org/acme/function-dummy
type: Function
constraints: ">=v0.3.0"
- name: provider-nop-aaaa
type: Provider
source: xpkg.example.org/acme/provider-nop
version: v0.5.0
dependencies:
- package: xpkg.example.org/acme/function-dummy
type: Function
constraints: ">=v0.3.0"
- name: function-dummy-bbbb
type: Function
source: xpkg.example.org/acme/function-dummy
version: v0.3.0
dependencies: []
15 changes: 15 additions & 0 deletions cmd/crossplane/trace/testdata/integration/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,24 @@ metadata:
namespace: test-namespace
spec:
coolField: claim-value
writeConnectionSecretToRef:
name: test-claim-conn
compositionRef:
name: xnops.trace.example.org
resourceRef:
apiVersion: trace.example.org/v1alpha1
kind: XNop
name: test-claim-xr
---
# The connection secrets the claim and its XR write.
apiVersion: v1
kind: Secret
metadata:
name: test-claim-conn
namespace: test-namespace
---
apiVersion: v1
kind: Secret
metadata:
name: test-claim-xr-conn
namespace: test-namespace
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# A cluster-scoped XR no claim binds.
apiVersion: trace.example.org/v1alpha1
kind: XNop
metadata:
name: standalone-xr
spec:
coolField: standalone-value
compositionRef:
name: xnops.trace.example.org
3 changes: 3 additions & 0 deletions cmd/crossplane/trace/testdata/integration/xr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ spec:
name: test-claim
namespace: test-namespace
coolField: claim-value
writeConnectionSecretToRef:
name: test-claim-xr-conn
namespace: test-namespace
compositionRef:
name: xnops.trace.example.org
Loading
Loading