Skip to content

Commit 8f8c125

Browse files
Merge pull request #1058 from openziti/v2.0
zrok v2.0
2 parents 1d73643 + 12ae5ac commit 8f8c125

1,582 files changed

Lines changed: 80366 additions & 34289 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-wheels.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
6363
- uses: actions/upload-artifact@v4
6464
with:
65-
name: zrok_sdk_distributions
65+
name: zrok2_sdk_distributions
6666
path: sdk/python/src/dist/*
6767

6868
publish_testpypi:
@@ -77,7 +77,7 @@ jobs:
7777
with:
7878
path: sdk/python/src/dist
7979
merge-multiple: true
80-
pattern: zrok_sdk_distributions
80+
pattern: zrok2_sdk_distributions
8181

8282
- name: Publish Distributions to TestPyPI
8383
uses: pypa/gh-action-pypi-publish@release/v1
@@ -99,7 +99,7 @@ jobs:
9999
with:
100100
path: sdk/python/src/dist
101101
merge-multiple: true
102-
pattern: zrok_sdk_distributions
102+
pattern: zrok2_sdk_distributions
103103

104104
- name: Publish Distributions to PyPI
105105
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/ci-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: setup-node
3030
uses: actions/setup-node@v4
3131
with:
32-
node-version: 20.x
32+
node-version: 22.x
3333

3434
- name: install ui node modules
3535
shell: bash
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: go install
5757
shell: bash
58-
run: go install -ldflags "-X github.com/openziti/zrok/build.Version=${{ github.ref }} -X github.com/openziti/zrok/build.Hash=${{ github.sha }}" ./...
58+
run: go install -ldflags "-X github.com/openziti/zrok/v2/build.Version=${{ github.ref }} -X github.com/openziti/zrok/v2/build.Hash=${{ github.sha }}" ./...
5959

6060
- name: go test
6161
shell: bash
@@ -72,7 +72,7 @@ jobs:
7272
uses: actions/upload-artifact@v4
7373
with:
7474
name: linux-amd64
75-
path: ${{ steps.solve_go_bin.outputs.go_bin }}/zrok
75+
path: ${{ steps.solve_go_bin.outputs.go_bin }}/zrok2
7676
if-no-files-found: error
7777

7878
windows-build:
@@ -122,7 +122,7 @@ jobs:
122122
- uses: actions/upload-artifact@v4
123123
with:
124124
name: windows-amd64
125-
path: ./dist/**/zrok.exe
125+
path: ./dist/**/zrok2.exe
126126
if-no-files-found: error
127127

128128
pytest:
@@ -213,7 +213,7 @@ jobs:
213213

214214
- name: Set Up Container Image Tags for zrok CLI Container
215215
env:
216-
ZROK_CONTAINER_IMAGE_REPO: ${{ vars.ZROK_CONTAINER_IMAGE_REPO || 'openziti/zrok' }}
216+
ZROK_CONTAINER_IMAGE_REPO: ${{ vars.ZROK_CONTAINER_IMAGE_REPO || 'openziti/zrok2' }}
217217
ZROK_CONTAINER_IMAGE_TAG: ${{ steps.slug.outputs.branch_tag }}
218218
id: tagprep_cli
219219
shell: bash

.github/workflows/deploy-doc-site.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111

1212
jobs:
1313
build:
14+
if: github.repository_owner == 'openziti'
1415
runs-on: ubuntu-latest
1516

1617
steps:
@@ -19,7 +20,7 @@ jobs:
1920
- uses: actions/setup-node@v4
2021
name: setup npm
2122
with:
22-
node-version: 18
23+
node-version: 22
2324
check-latest: true
2425
cache: "npm"
2526
cache-dependency-path: website/package-lock.json

.github/workflows/homebrew.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
enforce_stable_semver:
99
name: Require Stable Release Semver
1010
runs-on: ubuntu-24.04
11+
if: vars.ZROK_SKIP_HOMEBREW != 'true'
1112
outputs:
1213
version: ${{ steps.parse.outputs.version }}
1314
steps:
@@ -25,7 +26,7 @@ jobs:
2526
2627
brew_formula:
2728
needs: enforce_stable_semver
28-
if: github.repository_owner == 'openziti' || github.repository_owner == 'openziti-test-kitchen'
29+
if: (github.repository_owner == 'openziti' || github.repository_owner == 'openziti-test-kitchen') && vars.ZROK_SKIP_HOMEBREW != 'true'
2930
runs-on: ubuntu-24.04
3031
steps:
3132

@@ -56,8 +57,8 @@ jobs:
5657
- name: Upload Release Source Archive to Homebrew
5758
uses: mislav/bump-homebrew-formula-action@v3.2
5859
with:
59-
formula-name: zrok
60-
formula-path: Formula/z/zrok.rb
60+
formula-name: zrok2
61+
formula-path: Formula/z/zrok2.rb
6162
download-url: https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/source-${{ github.ref_name }}.tar.gz
6263
download-sha256: ${{ steps.source.outputs.sha256 }}
6364
homebrew-tap: ${{ vars.ZROK_BREW_TAP || 'Homebrew/homebrew-core' }}

.github/workflows/node-sdk.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
enforce_stable_semver:
1212
name: Require Stable Release Semver
13-
if: github.event.action == 'released'
13+
if: github.event.action == 'released' && vars.ZROK_SKIP_NODEJS != 'true'
1414
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Parse Release Version
@@ -27,7 +27,10 @@ jobs:
2727
2828
build:
2929
needs: enforce_stable_semver
30-
if: always()
30+
# rationale: run this job for merges to main and releases, but only if the ZROK_SKIP_NODEJS env var is not set to
31+
# 'true' (e.g. for forks), and only perform the publishing steps in this job if the release event activity type is
32+
# 'released' (i.e., stable, not a GH prerelease)
33+
if: always() && vars.ZROK_SKIP_NODEJS != 'true'
3134
name: Build for Node-${{ matrix.node_ver }} ${{ matrix.config.target }}/${{ matrix.config.arch }}
3235
runs-on: ${{ matrix.config.os }}
3336
env:
@@ -38,7 +41,7 @@ jobs:
3841
matrix:
3942
config:
4043
- { os: ubuntu-24.04, target: "linux", arch: "x64" }
41-
node_ver: [ 20 ]
44+
node_ver: [ 22 ]
4245
fail-fast: false
4346

4447
steps:

.github/workflows/promote-downstreams.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
fail-fast: true
4040
matrix:
4141
image:
42-
- repo: ${{ vars.ZROK_CONTAINER_IMAGE_REPO || 'docker.io/openziti/zrok' }}
42+
- repo: ${{ vars.ZROK_CONTAINER_IMAGE_REPO || 'docker.io/openziti/zrok2' }}
4343
steps:
4444
- name: Login to Docker Hub
4545
uses: docker/login-action@v3
@@ -61,9 +61,8 @@ jobs:
6161
fail-fast: true
6262
matrix:
6363
package_name:
64-
- zrok
65-
- zrok-share
66-
- zrok-agent
64+
- zrok2
65+
- zrok2-agent
6766
arch:
6867
- deb: amd64
6968
rpm: x86_64

.github/workflows/publish-docker-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666

6767
- name: Set Up Container Image Tags for zrok CLI Container
6868
env:
69-
ZROK_CONTAINER_IMAGE_REPO: ${{ vars.ZROK_CONTAINER_IMAGE_REPO || 'openziti/zrok' }}
69+
ZROK_CONTAINER_IMAGE_REPO: ${{ vars.ZROK_CONTAINER_IMAGE_REPO || 'openziti/zrok2' }}
7070
ZROK_CONTAINER_IMAGE_TAG: ${{ steps.semver.outputs.zrok_semver }}
7171
id: tagprep_cli
7272
shell: bash
@@ -93,7 +93,7 @@ jobs:
9393
- name: Publish Attestations to GitHub
9494
uses: actions/attest-build-provenance@v1
9595
env:
96-
IMAGE_REPO: ${{ vars.ZROK_CONTAINER_IMAGE_REPO || 'openziti/zrok' }}
96+
IMAGE_REPO: ${{ vars.ZROK_CONTAINER_IMAGE_REPO || 'openziti/zrok2' }}
9797
with:
9898
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_REPO }}
9999
subject-digest: ${{ steps.push.outputs.digest }}

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- uses: actions/setup-node@v4
4747
with:
48-
node-version: 20.x
48+
node-version: 22.x
4949

5050
- run: npm install
5151
working-directory: ui
@@ -97,7 +97,8 @@ jobs:
9797
else
9898
SEMVER_PRE=${SEMVER#*-}
9999
fi
100-
for PAX in zrok{,-share,-agent}; do
100+
# for PAX in zrok2{,-agent,-controller,-frontend,-metrics}; do
101+
for PAX in zrok2{,-agent}; do
101102
_pattern="./dist/${PAX}-${SEMVER_CORE}${SEMVER_PRE:+~${SEMVER_PRE}}*.${ARCH}.rpm"
102103
if ! compgen -G "$_pattern" > /dev/null; then
103104
echo "ERROR: No RPM files found matching pattern '${_pattern}'" >&2
@@ -133,7 +134,8 @@ jobs:
133134
else
134135
SEMVER_PRE=${SEMVER#*-}
135136
fi
136-
for PAX in zrok{,-share,-agent}; do
137+
# for PAX in zrok2{,-agent,-controller,-frontend,-metrics}; do
138+
for PAX in zrok2{,-agent}; do
137139
_pattern="./dist/${PAX}_${SEMVER_CORE}${SEMVER_PRE:+~${SEMVER_PRE}}*_${ARCH}.deb"
138140
if ! compgen -G "$_pattern" > /dev/null; then
139141
echo "ERROR: No DEB files found matching pattern '${_pattern}'" >&2
@@ -179,7 +181,7 @@ jobs:
179181

180182
- uses: actions/setup-node@v4
181183
with:
182-
node-version: 20.x
184+
node-version: 22.x
183185

184186
- run: npm install
185187
working-directory: ui
@@ -232,7 +234,7 @@ jobs:
232234

233235
- uses: actions/setup-node@v4
234236
with:
235-
node-version: 20.x
237+
node-version: 22.x
236238

237239
- run: npm install
238240
working-directory: ui

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
CLAUDE.md
77
*.db
88
/automated-release-build/
9-
etc/dev.yml
10-
etc/dev-*
9+
etc/dev*
1110
etc/*.pem
1211

1312
# Dependencies

.goreleaser-darwin.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2
22
builds:
33
- id: zrok-amd64
4-
main: ./cmd/zrok
5-
binary: zrok
6-
ldflags: "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}"
4+
main: ./cmd/zrok2
5+
binary: zrok2
6+
ldflags: "-s -w -X github.com/openziti/zrok/v2/build.Version={{.Tag}} -X github.com/openziti/zrok/v2/build.Hash={{.ShortCommit}}"
77
env:
88
- CGO_ENABLED=1
99
goos:
@@ -12,16 +12,16 @@ builds:
1212
- amd64
1313
hooks:
1414
post:
15-
- cmd: 'codesign -s "Developer ID Application: NetFoundry Inc" -v dist/zrok-amd64_darwin_amd64_v1/zrok --options=runtime'
15+
- cmd: 'codesign -s "Developer ID Application: NetFoundry Inc" -v dist/zrok-amd64_darwin_amd64_v1/zrok2 --options=runtime'
1616
output: true
17-
- cmd: zip "dist/zrok-amd64_darwin_amd64_v1/zrok.zip" dist/zrok-amd64_darwin_amd64_v1/zrok
18-
- cmd: xcrun notarytool submit "dist/zrok-amd64_darwin_amd64_v1/zrok.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id MN5S649TXM --wait
17+
- cmd: zip "dist/zrok-amd64_darwin_amd64_v1/zrok2.zip" dist/zrok-amd64_darwin_amd64_v1/zrok2
18+
- cmd: xcrun notarytool submit "dist/zrok-amd64_darwin_amd64_v1/zrok2.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id MN5S649TXM --wait
1919
output: true
2020

2121
- id: zrok-arm64
22-
main: ./cmd/zrok
23-
binary: zrok
24-
ldflags: "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}"
22+
main: ./cmd/zrok2
23+
binary: zrok2
24+
ldflags: "-s -w -X github.com/openziti/zrok/v2/build.Version={{.Tag}} -X github.com/openziti/zrok/v2/build.Hash={{.ShortCommit}}"
2525
env:
2626
- CGO_ENABLED=1
2727
goos:
@@ -30,8 +30,8 @@ builds:
3030
- arm64
3131
hooks:
3232
post:
33-
- cmd: 'codesign -s "Developer ID Application: NetFoundry Inc" -v dist/zrok-arm64_darwin_arm64_v8.0/zrok --options=runtime'
33+
- cmd: 'codesign -s "Developer ID Application: NetFoundry Inc" -v dist/zrok-arm64_darwin_arm64_v8.0/zrok2 --options=runtime'
3434
output: true
35-
- cmd: zip "dist/zrok-arm64_darwin_arm64_v8.0/zrok.zip" dist/zrok-arm64_darwin_arm64_v8.0/zrok
36-
- cmd: xcrun notarytool submit "dist/zrok-arm64_darwin_arm64_v8.0/zrok.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id MN5S649TXM --wait
35+
- cmd: zip "dist/zrok-arm64_darwin_arm64_v8.0/zrok2.zip" dist/zrok-arm64_darwin_arm64_v8.0/zrok2
36+
- cmd: xcrun notarytool submit "dist/zrok-arm64_darwin_arm64_v8.0/zrok2.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id MN5S649TXM --wait
3737
output: true

0 commit comments

Comments
 (0)