-
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.
Merge pull request #17 from Avarei/better-pipeline
version of pkl packages is now inferred from env variables
- Loading branch information
Showing
9 changed files
with
67 additions
and
28 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
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 |
---|---|---|
|
@@ -64,10 +64,15 @@ $ crossplane xpkg build -f package --embed-runtime-image=runtime | |
$ crossplane xpkg push -f function-pkl*.xpkg ghcr.io/crossplane-contrib/function-pkl | ||
|
||
# Resolve Pkl Project Dependencies | ||
$ pkl project resolve ./pkl/*/ | ||
$ make pkl-resolve | ||
|
||
# Package the Pkl Project | ||
$ pkl project package ./pkl/*/ | ||
$ make pkl-package | ||
|
||
# Release a Pkl Project | ||
$ git tag [email protected] | ||
$ git push --tags | ||
$ make pkl-release [email protected] | ||
|
||
# Debugging this function | ||
# While a Debugging session is running run on the same host: | ||
|
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