-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version of pkl packages is now inferred from env variables
make pkl-resolve and make pkl-release now read the latest git tag for each package to determine the version without being stored in the PklProject files update Kubernetes Dependencies Signed-off-by: Tim <[email protected]>
- Loading branch information
Showing
7 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,15 +17,18 @@ | |
/// Templates for configuring [Kubernetes](https://kubernetes.io). | ||
amends "pkl:Project" | ||
|
||
local repo = read?("env:REPOSITORY") ?? "github.com/crossplane-contrib/function-pkl" | ||
local packageVersion: String = read?("env:CROSSPLANE_CONTRIB_EXAMPLE_VERSION") ?? "0.0.0" | ||
|
||
package { | ||
name = "crossplane.contrib.example" | ||
authors { | ||
"Tim Geimer <[email protected]>" | ||
} | ||
version = "1.0.0" | ||
baseUri = "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/\(name)" | ||
packageZipUrl = "https://github.com/crossplane-contrib/function-pkl/releases/download/\(name)@\(version)/\(name)@\(version).zip" | ||
sourceCode = "https://github.com/crossplane-contrib/function-pkl" | ||
version = packageVersion | ||
baseUri = "package://pkg.pkl-lang.org/\(repo)/\(name)" | ||
packageZipUrl = "https://\(repo)/releases/download/\(name)@\(version)/\(name)@\(version).zip" | ||
sourceCode = "https://\(repo)" | ||
license = "Apache-2.0" | ||
description = """ | ||
Example for using the [Composition Functions](https://docs.crossplane.io/latest/concepts/composition-functions/). | ||
|
@@ -36,7 +39,7 @@ dependencies { | |
["crossplane.contrib.xrd"] = import("../crossplane.contrib.xrd/PklProject") | ||
|
||
["k8s"] { | ||
uri = "package://pkg.pkl-lang.org/pkl-k8s/k8s@1.0.1" | ||
uri = "package://pkg.pkl-lang.org/pkl-k8s/k8s@1.1.0" | ||
} | ||
["k8s.contrib.crd"] { | ||
uri = "package://pkg.pkl-lang.org/pkl-pantry/[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,15 @@ | |
/// Templates for configuring [Kubernetes](https://kubernetes.io). | ||
amends "pkl:Project" | ||
|
||
local repo = "github.com/crossplane-contrib/function-pkl" | ||
local repo = read?("env:REPOSITORY") ?? "github.com/crossplane-contrib/function-pkl" | ||
local packageVersion: String = read?("env:CROSSPLANE_CONTRIB_XRD_VERSION") ?? "0.0.0" | ||
|
||
package { | ||
name = "crossplane.contrib.xrd" | ||
authors { | ||
"Tim Geimer <[email protected]>" | ||
} | ||
version = "1.0.0" | ||
version = packageVersion | ||
baseUri = "package://pkg.pkl-lang.org/\(repo)/\(name)" | ||
packageZipUrl = "https://\(repo)/releases/download/\(name)@\(version)/\(name)@\(version).zip" | ||
sourceCode = "https://\(repo)" | ||
|
@@ -43,5 +44,5 @@ dependencies { | |
["syntax"] { uri = "package://pkg.pkl-lang.org/pkl-pantry/[email protected]" } | ||
["openapiv3"] { uri = "package://pkg.pkl-lang.org/pkl-pantry/[email protected]" } | ||
|
||
["k8s"] { uri = "package://pkg.pkl-lang.org/pkl-k8s/k8s@1.0.1" } | ||
["k8s"] { uri = "package://pkg.pkl-lang.org/pkl-k8s/k8s@1.1.0" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,22 +17,25 @@ | |
/// Templates for configuring [Kubernetes](https://kubernetes.io). | ||
amends "pkl:Project" | ||
|
||
local repo = read?("env:REPOSITORY") ?? "github.com/crossplane-contrib/function-pkl" | ||
local packageVersion: String = read?("env:CROSSPLANE_CONTRIB_VERSION") ?? "0.0.0" | ||
|
||
package { | ||
name = "crossplane.contrib" | ||
authors { | ||
"Tim Geimer <[email protected]>" | ||
} | ||
version = "1.0.0" | ||
baseUri = "package://pkg.pkl-lang.org/github.com/crossplane-contrib/function-pkl/\(name)" | ||
packageZipUrl = "https://github.com/crossplane-contrib/function-pkl/releases/download/\(name)@\(version)/\(name)@\(version).zip" | ||
sourceCode = "https://github.com/crossplane-contrib/function-pkl" | ||
version = packageVersion | ||
baseUri = "package://pkg.pkl-lang.org/\(repo)/\(name)" | ||
packageZipUrl = "https://\(repo)/releases/download/\(name)@\(version)/\(name)@\(version).zip" | ||
sourceCode = "https://\(repo)" | ||
license = "Apache-2.0" | ||
description = """ | ||
Templates for reading and configuring [Composition Functions](https://docs.crossplane.io/latest/concepts/composition-functions/). | ||
""" | ||
} | ||
dependencies { | ||
["k8s"] { | ||
uri = "package://pkg.pkl-lang.org/pkl-k8s/k8s@1.0.1" | ||
uri = "package://pkg.pkl-lang.org/pkl-k8s/k8s@1.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters