Skip to content

Commit 0fc1f15

Browse files
authored
Merge pull request #52 from joebowbeer/namespace
fix: add namespace to schema
2 parents ed87229 + f140044 commit 0fc1f15

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# Dependency directories (remove the comment below to include it)
1818
# vendor/
19+
package/*.xpkg
1920

2021
# Go workspace file
2122
go.work

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Example manifests
22

3-
You can run your function locally and test it using `crossplane beta render`
3+
You can run your function locally and test it using `crossplane render`
44
with these example manifests.
55

66
```shell
@@ -10,7 +10,7 @@ $ go run . --insecure --debug
1010

1111
```shell
1212
# Then, in another terminal, call it with these example manifests
13-
$ crossplane beta render xr.yaml composition.yaml functions.yaml -r
13+
$ crossplane render xr.yaml composition.yaml functions.yaml -r
1414
---
1515
apiVersion: example.crossplane.io/v1
1616
kind: XR

example/functions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: Function
44
metadata:
55
name: function-extra-resources
66
annotations:
7-
# This tells crossplane beta render to connect to the function locally.
7+
# This tells crossplane render to connect to the function locally.
88
#render.crossplane.io/runtime: Development
99
spec:
1010
# This is ignored when using the Development runtime.

input/v1beta1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package/input/extra-resources.fn.crossplane.io_inputs.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.0
77
name: inputs.extra-resources.fn.crossplane.io
88
spec:
99
group: extra-resources.fn.crossplane.io
@@ -61,6 +61,11 @@ spec:
6161
description: Kind is the kubernetes kind of the target extra
6262
resource(s).
6363
type: string
64+
namespace:
65+
description: |-
66+
Namespace is the namespace in which to look for the ExtraResource.
67+
If not set, the resource is assumed to be cluster-scoped.
68+
type: string
6469
ref:
6570
description: |-
6671
Ref is a named reference to a single ExtraResource.

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# It seems extra-resources must be in only one file.
33
# Supplying the argument a second time excludes any input from the
44
# first --extra-resources argument
5-
crossplane beta render \
5+
crossplane render \
66
--extra-resources example/extraResources.yaml \
77
--include-context \
88
example/xr.yaml example/composition.yaml example/functions.yaml

0 commit comments

Comments
 (0)