Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
53525f6
ci push
stevendborrelli Nov 7, 2023
d69a029
update ci
stevendborrelli May 20, 2024
7255558
Update module google.golang.org/protobuf to v1.33.0 [SECURITY]
renovate[bot] May 20, 2024
f01a51c
Update dependency go to v1.22.3
renovate[bot] May 20, 2024
1f1e13a
Merge pull request #1 from crossplane-contrib/renovate/go-google.gola…
stevendborrelli May 20, 2024
691e8ae
Merge pull request #2 from crossplane-contrib/renovate/go-1.x
stevendborrelli May 20, 2024
b8a0c42
Update module github.com/alecthomas/kong to v0.9.0
renovate[bot] May 20, 2024
956ee24
update go to 1.22.3
stevendborrelli May 20, 2024
0dd2eb7
Update module github.com/google/cel-go to v0.20.1
renovate[bot] May 20, 2024
7e41e81
Update module google.golang.org/protobuf to v1.34.1
renovate[bot] May 21, 2024
86e3562
Merge pull request #4 from crossplane-contrib/renovate/github.com-ale…
stevendborrelli May 21, 2024
57735f3
Merge pull request #7 from crossplane-contrib/renovate/github.com-goo…
stevendborrelli May 21, 2024
8fd4c72
Merge pull request #8 from crossplane-contrib/renovate/google.golang.…
stevendborrelli May 21, 2024
743d3d5
Update module sigs.k8s.io/controller-tools to v0.15.0
renovate[bot] May 21, 2024
19f6d61
Merge pull request #10 from crossplane-contrib/renovate/sigs.k8s.io-c…
stevendborrelli May 21, 2024
a0d0611
Update actions/setup-go action to v5
renovate[bot] May 21, 2024
1a591d9
Update golangci/golangci-lint-action action to v6
renovate[bot] May 21, 2024
6fe1431
Merge pull request #12 from crossplane-contrib/renovate/actions-setup…
stevendborrelli May 21, 2024
e77a275
Merge pull request #13 from crossplane-contrib/renovate/golangci-gola…
stevendborrelli May 21, 2024
11bc082
Update GitHub Artifact Actions to v4
renovate[bot] May 21, 2024
1dd238b
Merge pull request #11 from crossplane-contrib/renovate/major-github-…
stevendborrelli May 24, 2024
14f788f
Update module k8s.io/apimachinery to v0.30.1
renovate[bot] May 24, 2024
122fd4f
Merge pull request #14 from crossplane-contrib/renovate/kubernetes-go
stevendborrelli May 24, 2024
0134872
update to crossplane-runtime 1.16
stevendborrelli May 24, 2024
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
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:

env:
# Common versions
GO_VERSION: '1.21.3'
GOLANGCI_VERSION: 'v1.54.2'
GO_VERSION: '1.22.3'
GOLANGCI_VERSION: 'v1.55.2'
DOCKER_BUILDX_VERSION: 'v0.11.2'

# These environment variables are important to the Crossplane CLI install.sh
Expand Down Expand Up @@ -43,13 +43,13 @@ jobs:
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: false # The golangci-lint action does its own caching.

- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GOLANGCI_VERSION }}

Expand All @@ -60,7 +60,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
run: ./crossplane xpkg build --package-file=${{ matrix.arch }}.xpkg --package-root=package/ --embed-runtime-image-tarball=runtime-${{ matrix.arch }}.tar

- name: Upload Single-Platform Package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages
path: "*.xpkg"
Expand All @@ -135,19 +135,19 @@ jobs:
uses: actions/checkout@v4

- name: Download Single-Platform Packages
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: packages
path: .

- name: Setup the Crossplane CLI
run: "curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh"

- name: Login to Upbound
- name: Login to Dockerhub
uses: docker/login-action@v3
if: env.XPKG_ACCESS_ID != ''
with:
registry: xpkg.upbound.io
#registry: index.docker.io
username: ${{ secrets.XPKG_ACCESS_ID }}
password: ${{ secrets.XPKG_TOKEN }}

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# function-unit-test

<!--
[![CI](https://github.com/crossplane/function-template-go/actions/workflows/ci.yml/badge.svg)](https://github.com/crossplane/function-template-go/actions/workflows/ci.yml)
[![CI](https://github.com/crossplane-contrib/function-unit-test/actions/workflows/ci.yml/badge.svg)](https://github.com/crossplane-contrib/function-unit-test/actions/workflows/ci.yml)

-->
This function can run CEL expressions against your desired state.
`function-unit-test` is a Crossplane function that can run CEL expressions against your desired state.
This allows you to test the results of a Composition pipeline.

## Installing

Expand Down Expand Up @@ -76,4 +75,4 @@ $ crossplane xpkg build -f package --embed-runtime-image=function-unit-test-runt
[function guide]: https://docs.crossplane.io/knowledge-base/guides/write-a-composition-function-in-go
[package docs]: https://pkg.go.dev/github.com/crossplane/function-sdk-go
[docker]: https://www.docker.com
[cli]: https://docs.crossplane.io/latest/cli
[cli]: https://docs.crossplane.io/latest/cli
88 changes: 44 additions & 44 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,80 +1,80 @@
module github.com/stevendborrelli/function-unit-test

go 1.21
go 1.22.0

toolchain go1.21.3
toolchain go1.22.3

require (
github.com/alecthomas/kong v0.8.1
github.com/crossplane/crossplane-runtime v1.14.1
github.com/crossplane/function-sdk-go v0.1.0
github.com/google/cel-go v0.16.1
github.com/alecthomas/kong v0.9.0
github.com/crossplane/crossplane-runtime v1.16.0
github.com/crossplane/function-sdk-go v0.3.0-rc.0.0.20240521211021-11b59ad46986
github.com/google/cel-go v0.20.1
github.com/google/go-cmp v0.6.0
google.golang.org/protobuf v1.31.0
k8s.io/apimachinery v0.28.3
sigs.k8s.io/controller-tools v0.13.0
google.golang.org/protobuf v1.34.1
k8s.io/apimachinery v0.30.1
sigs.k8s.io/controller-tools v0.15.0
)

require (
dario.cat/mergo v1.0.0 // indirect
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/go-json-experiment/json v0.0.0-20231013223334-54c864be5b8d // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/zapr v1.2.4 // indirect
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/go-json-experiment/json v0.0.0-20231102232822-2e55bd4e08b0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/zapr v1.3.0 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/gobuffalo/flect v1.0.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/spf13/afero v1.10.0 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stoewer/go-strcase v1.2.0 // indirect
github.com/stretchr/testify v1.8.4 // indirect
github.com/stoewer/go-strcase v1.3.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/mod v0.13.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.14.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/grpc v1.59.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/oauth2 v0.18.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/term v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.20.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240521202816-d264139d666e // indirect
google.golang.org/grpc v1.64.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.28.3 // indirect
k8s.io/apiextensions-apiserver v0.28.3 // indirect
k8s.io/client-go v0.28.3 // indirect
k8s.io/klog/v2 v2.100.1 // indirect
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
sigs.k8s.io/controller-runtime v0.16.3 // indirect
k8s.io/api v0.30.0 // indirect
k8s.io/apiextensions-apiserver v0.30.0 // indirect
k8s.io/client-go v0.30.0 // indirect
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
k8s.io/utils v0.0.0-20240102154912-e7106e64919e // indirect
sigs.k8s.io/controller-runtime v0.17.0 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
Loading