Skip to content

Commit

Permalink
fixing download paths
Browse files Browse the repository at this point in the history
Signed-off-by: Tim <[email protected]>
  • Loading branch information
Avarei committed Jun 29, 2024
1 parent 815b402 commit 4c3f437
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ spec:
kind: Pkl
spec:
type: uri
# This pkl file is at `pkl/crossplane-example/full.pkl` in this repo
uri: "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane-[email protected]#/full.pkl"
# This pkl file is at `pkl/crossplane.contrib.example/full.pkl` in this repo
uri: "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane.contrib.[email protected]#/full.pkl"
```
### Example
Expand Down
4 changes: 2 additions & 2 deletions example/full/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
kind: Pkl
spec:
type: uri
# This pkl file is at `pkl/crossplane-example/full.pkl` in this repo
uri: "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane-[email protected]#/full.pkl"
# This pkl file is at `pkl/crossplane.contrib.example/full.pkl` in this repo
uri: "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane.contrib.[email protected]#/full.pkl"
13 changes: 6 additions & 7 deletions example/inline/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ spec:
kind: Pkl
spec:
type: inline
# This pkl file is at `pkl/crossplane-example/full.pkl` in this repo
# This pkl file is at `pkl/crossplane.contrib.example/full.pkl` in this repo
inline: |
amends "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/[email protected]#/CompositionResponse.pkl"
import "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/[email protected]#/Resource.pkl"
import "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/[email protected]#/Crossplane.pkl"
amends "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane.contrib@1.0.0#/CompositionResponse.pkl"
import "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane.contrib@1.0.0#/Resource.pkl"
import "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane.contrib@1.0.0#/Crossplane.pkl"
import "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane-[email protected]#/crds/XR.pkl"
import "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane-[email protected]#/crds/Object.pkl"
import "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane.contrib.[email protected]#/crds/XR.pkl"
import "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/crossplane.contrib.[email protected]#/crds/Object.pkl"
import "package://pkg.pkl-lang.org/pkl-k8s/[email protected]#/api/core/v1/ConfigMap.pkl"
Expand Down Expand Up @@ -101,6 +101,5 @@ spec:
}
meta = if (request.meta != null) new ResponseMeta {
tag = request.meta.tag
ttl = 60.s
} else null
2 changes: 1 addition & 1 deletion pkl/crossplane.contrib.example/xrds/ExampleXR.pkl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
amends "@crossplane.contrib.xrd/CompositeResourceDefinition.pkl"

metadata {
name = "XRD"
name = spec.names.plural + "." + spec.group
}

spec {
Expand Down

0 comments on commit 4c3f437

Please sign in to comment.