Skip to content

Commit f68a0d6

Browse files
authored
Merge pull request #92 from ytsarev/quickstart-fixes
Fixes for `xpkg init` generation recommendations and CI workflow for uppercase github org names
2 parents 5fc63ba + 66012af commit f68a0d6

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,6 @@ jobs:
164164

165165
- name: Push Multi-Platform Package to Upbound
166166
if: env.XPKG_ACCESS_ID != ''
167-
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${{ env.XPKG }}:${{ env.XPKG_VERSION }}"
167+
# XPKG repo name can't contain uppercase characters like UpboundCare, we need to lowercase if the GithubOrg contains them.
168+
# See https://github.com/orgs/community/discussions/25768#discussioncomment-8057564 for XPKG@L lowercase explanation
169+
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${XPKG@L}:${{ env.XPKG_VERSION }}"

NOTES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ To get started:
33
1. Replace `function-template-go` with your function in `go.mod`,
44
`package/crossplane.yaml`, and any Go imports. (You can also do this
55
automatically by running the `./init.sh <function-name>` script.)
6-
2. Update `input/v1beta1/` to reflect your desired input (and run `go generate`)
6+
2. Update `input/v1beta1/` to reflect your desired input (and run `go generate ./...`)
77
3. Add your logic to `RunFunction` in `fn.go`
88
4. Add tests for your logic in `fn_test.go`
9-
5. Update `README.md`, to be about your function!
9+
5. Update `README.md`, to be about your function!

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you just want to jump in and get started:
1414
1. Replace `function-template-go` with your function in `go.mod`,
1515
`package/crossplane.yaml`, and any Go imports. (You can also do this
1616
automatically by running the `./init.sh <function-name>` script.)
17-
1. Update `input/v1beta1/` to reflect your desired input (and run `go generate`)
17+
1. Update `input/v1beta1/` to reflect your desired input (and run `go generate ./...`)
1818
1. Add your logic to `RunFunction` in `fn.go`
1919
1. Add tests for your logic in `fn_test.go`
2020
1. Update this file, `README.md`, to be about your function!
@@ -41,4 +41,4 @@ $ crossplane xpkg build -f package --embed-runtime-image=runtime
4141
[function guide]: https://docs.crossplane.io/knowledge-base/guides/write-a-composition-function-in-go
4242
[package docs]: https://pkg.go.dev/github.com/crossplane/function-sdk-go
4343
[docker]: https://www.docker.com
44-
[cli]: https://docs.crossplane.io/latest/cli
44+
[cli]: https://docs.crossplane.io/latest/cli

0 commit comments

Comments
 (0)