Skip to content

Commit 8234a91

Browse files
committed
Merge remote-tracking branch 'origin/main' into yuval-k/helm+jwt
# Conflicts: # cmd/ateapi/main.go # internal/controllers/gen.go # manifests/ate-install/ate-api-server.yaml # manifests/ate-install/ate-controller.yaml # manifests/ate-install/atelet.yaml
2 parents da05c27 + a6d1403 commit 8234a91

8,470 files changed

Lines changed: 2575109 additions & 3167 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.

.agents/skills/agents-md/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The AGENTS.md file at the root of the project may include the following sections
1717
- Testing instructions
1818
- Security considerations
1919

20-
AGENTS.md files in subfolders may be even more concise and specific to those subfolders.
20+
AGENTS.md files in subfolders may be even more concise and specific to those subfolders.
2121

2222
## Maximize AGENTS.md Performance
2323

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,23 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
name: govulncheck
16+
on:
17+
push:
18+
branches:
19+
- main
20+
schedule:
21+
- cron: "37 4 * * 1"
22+
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
govulncheck:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- id: govulncheck
31+
uses: golang/govulncheck-action@v1
32+
with:
33+
go-version-file: go.mod
34+
go-package: ./...

.github/workflows/pr-workflow.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Copyright 2026 Google LLC
1+
# Copyright 2026 Google LLC
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
66
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
7+
# http://www.apache.org/licenses/LICENSE-2.0
88
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
1414

1515
name: pr-workflow
1616
on:
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v5
2626
- name: Setup Go
2727
uses: actions/setup-go@v5
2828
with:
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v5
3838
- name: Setup Go
3939
uses: actions/setup-go@v5
4040
with:

.github/workflows/release.yaml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: release
16+
17+
on:
18+
workflow_dispatch:
19+
inputs:
20+
tag:
21+
description: 'Image tag (e.g. v1.2.3-rc1). Leave blank to auto-generate from branch+SHA.'
22+
required: false
23+
create_release:
24+
description: 'Create a GitHub release'
25+
type: boolean
26+
default: false
27+
28+
permissions:
29+
contents: write
30+
packages: write
31+
32+
jobs:
33+
release:
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
40+
- name: Validate and resolve tag
41+
id: tag
42+
run: |
43+
TAG="${{ inputs.tag }}"
44+
if [[ -z "${TAG}" ]]; then
45+
BRANCH="${GITHUB_REF_NAME//\//-}"
46+
SHA="$(git rev-parse --short HEAD)"
47+
TAG="${BRANCH}-${SHA}"
48+
fi
49+
if [[ "${{ inputs.create_release }}" == "true" ]]; then
50+
if [[ ! "${TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9._-]+)?$ ]]; then
51+
echo "::error::Tag '${TAG}' must match vMAJOR.MINOR.PATCH[-prerelease] when creating a release (e.g. v1.2.3 or v1.2.3-rc1)"
52+
exit 1
53+
fi
54+
fi
55+
echo "value=${TAG}" >> "$GITHUB_OUTPUT"
56+
if [[ "${{ inputs.create_release }}" == "true" ]]; then
57+
echo "tags=${TAG},latest" >> "$GITHUB_OUTPUT"
58+
else
59+
echo "tags=${TAG}" >> "$GITHUB_OUTPUT"
60+
fi
61+
62+
- name: Setup Go
63+
uses: actions/setup-go@v5
64+
with:
65+
go-version-file: 'go.mod'
66+
67+
- name: Install ko
68+
uses: ko-build/setup-ko@v0.7
69+
70+
- name: Log in to GHCR
71+
uses: docker/login-action@v3
72+
with:
73+
registry: ghcr.io
74+
username: ${{ github.actor }}
75+
password: ${{ secrets.GITHUB_TOKEN }}
76+
77+
- name: Set up QEMU (multi-arch)
78+
uses: docker/setup-qemu-action@v3
79+
80+
- name: Build and push images
81+
env:
82+
# ghcr.io/<owner>/<repo> — resolves correctly in forks
83+
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
84+
run: |
85+
./hack/run-tool.sh ko build \
86+
--tags "${{ steps.tag.outputs.tags }}" \
87+
--platform linux/amd64,linux/arm64 \
88+
--bare \
89+
./cmd/ateapi \
90+
./cmd/atelet \
91+
./cmd/podcertcontroller \
92+
./cmd/atenet
93+
94+
- name: Create GitHub Release
95+
if: inputs.create_release
96+
uses: softprops/action-gh-release@v2
97+
with:
98+
tag_name: ${{ steps.tag.outputs.value }}
99+
generate_release_notes: true

.gitignore

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,38 @@ __pycache__/
1212
*.pyc
1313

1414
# Local environment variables
15-
.ate-dev-env.sh
15+
.ate-dev-env.sh
16+
17+
# Developers can store local stuff in dirs named __something
18+
__*
19+
20+
# OS artifacts
21+
.DS_Store
22+
Thumbs.db
23+
24+
# Editors and IDEs
25+
.idea/
26+
.vscode/
27+
*.swp
28+
*.swo
29+
*~
30+
31+
# AI IDEs and CLIs
32+
.aider*
33+
.claude/
34+
.cline/
35+
.codex/
36+
.continue/
37+
.copilot/
38+
.cursor/
39+
.gemini/
40+
.goose/
41+
.kiro/
42+
.opencode/
43+
.qwen/
44+
.roo/
45+
.trae/
46+
.windsurf/
47+
48+
# Local worktrees
49+
/.worktrees/

.ko.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Copyright 2026 Google LLC
1+
# Copyright 2026 Google LLC
22
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
66
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
7+
# http://www.apache.org/licenses/LICENSE-2.0
88
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
1414

1515
defaultBaseImage: gcr.io/distroless/static-debian13
1616

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2017 The Go Authors. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above
10+
copyright notice, this list of conditions and the following disclaimer
11+
in the documentation and/or other materials provided with the
12+
distribution.
13+
* Neither the name of Google Inc. nor the names of its
14+
contributors may be used to endorse or promote products derived from
15+
this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

LICENSES/github.com/hashicorp/go-reap/reap_stub_test.go

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)