Skip to content

Commit 3a9e131

Browse files
chore: backport 20260318 (#1274)
2 parents f17e50f + 4661bb8 commit 3a9e131

File tree

27 files changed

+240
-165
lines changed

27 files changed

+240
-165
lines changed

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,33 @@ updates:
66
interval: "weekly"
77
commit-message:
88
prefix: "chore"
9+
10+
- package-ecosystem: "gomod"
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"
14+
commit-message:
15+
prefix: "chore"
16+
labels:
17+
- "dependencies"
18+
open-pull-requests-limit: 10
19+
ignore:
20+
- dependency-name: "*"
21+
update-types: ["version-update:semver-major"]
22+
groups:
23+
kubernetes:
24+
patterns:
25+
- "k8s.io/*"
26+
- "sigs.k8s.io/*"
27+
azure-sdk:
28+
patterns:
29+
- "github.com/Azure/*"
30+
- "github.com/AzureAD/*"
31+
all-others:
32+
patterns:
33+
- "*"
34+
exclude-patterns:
35+
- "k8s.io/*"
36+
- "sigs.k8s.io/*"
37+
- "github.com/Azure/*"
38+
- "github.com/AzureAD/*"

.github/workflows/chart.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,19 @@ jobs:
5757
run: |
5858
set -euo pipefail
5959
60-
RELEASE_VERSION="${{ needs.export-registry.outputs.version }}"
61-
60+
RELEASE_TAG="${{ needs.export-registry.outputs.tag }}"
61+
CHART_VERSION="${{ needs.export-registry.outputs.version }}"
6262
OCI_REGISTRY="${{ needs.export-registry.outputs.registry }}/charts"
63-
make helm-push REGISTRY="${OCI_REGISTRY}" TAG="${RELEASE_VERSION}"
63+
64+
make helm-push REGISTRY="${OCI_REGISTRY}" TAG="${RELEASE_TAG}" CHART_VERSION="${CHART_VERSION}"
6465
6566
- name: Verify chart appVersion matches release tag
6667
run: |
6768
set -euo pipefail
6869
69-
RELEASE_VERSION="${{ needs.export-registry.outputs.version }}"
70-
CHART_VERSION="${RELEASE_VERSION}"
71-
EXPECTED_APP_VERSION="${RELEASE_VERSION}"
70+
RELEASE_TAG="${{ needs.export-registry.outputs.tag }}"
71+
CHART_VERSION="${{ needs.export-registry.outputs.version }}"
72+
EXPECTED_APP_VERSION="${RELEASE_TAG}"
7273
7374
rm -rf .helm-verify
7475
mkdir -p .helm-verify

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184

185185
- name: Upload logs
186186
if: always()
187-
uses: actions/upload-artifact@v6
187+
uses: actions/upload-artifact@v7
188188
with:
189189
name: e2e-logs-${{ matrix.customized-settings }}
190190
path: test/e2e/logs-${{ matrix.customized-settings }}/

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Harden Runner
15-
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
15+
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
1616
with:
1717
egress-policy: audit
1818

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ STATICCHECK_VER := v0.6.1
6666
STATICCHECK_BIN := staticcheck
6767
STATICCHECK := $(abspath $(TOOLS_BIN_DIR)/$(STATICCHECK_BIN)-$(STATICCHECK_VER))
6868

69-
GOIMPORTS_VER := latest
69+
GOIMPORTS_VER := v0.42.0
7070
GOIMPORTS_BIN := goimports
7171
GOIMPORTS := $(abspath $(TOOLS_BIN_DIR)/$(GOIMPORTS_BIN)-$(GOIMPORTS_VER))
7272

@@ -290,10 +290,10 @@ push: ## Build and push all Docker images
290290

291291
.PHONY: helm-push
292292
helm-push: ## Package and push Helm charts to OCI registry
293-
helm package charts/hub-agent --version $(TAG) --app-version $(TAG) --destination .helm-packages
294-
helm package charts/member-agent --version $(TAG) --app-version $(TAG) --destination .helm-packages
295-
helm push .helm-packages/hub-agent-$(TAG).tgz oci://$(REGISTRY)
296-
helm push .helm-packages/member-agent-$(TAG).tgz oci://$(REGISTRY)
293+
helm package charts/hub-agent --version $(CHART_VERSION) --app-version $(TAG) --destination .helm-packages
294+
helm package charts/member-agent --version $(CHART_VERSION) --app-version $(TAG) --destination .helm-packages
295+
helm push .helm-packages/hub-agent-$(CHART_VERSION).tgz oci://$(REGISTRY)
296+
helm push .helm-packages/member-agent-$(CHART_VERSION).tgz oci://$(REGISTRY)
297297
rm -rf .helm-packages
298298

299299
# By default, docker buildx create will pull image moby/buildkit:buildx-stable-1 and hit the too many requests error

charts/hub-agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ version: 0.1.0
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "0.1.0"
24+
appVersion: "v0.1.0"

charts/hub-agent/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ _See [helm install](https://helm.sh/docs/helm/helm_install/) for command documen
103103
| `webhookClientConnectionType` | Connection type for webhook client (service or url) | `service` |
104104
| `useCertManager` | Use cert-manager for webhook certificate management (requires `enableWorkload=true`) | `false` |
105105
| `webhookCertSecretName` | Name of the Secret where cert-manager stores the certificate (required when enabled) | `unset` |
106-
| `enableV1Beta1APIs` | Watch for v1beta1 APIs | `true` |
107106
| `enableClusterInventoryAPI` | Enable cluster inventory APIs | `true` |
108107
| `enableStagedUpdateRunAPIs` | Enable staged update run APIs | `true` |
109108
| `enableEvictionAPIs` | Enable eviction APIs | `true` |
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
{{- $files := .Files }}
2-
{{- if .Values.enableV1Beta1APIs }}
32
{{ $files.Get "crdbases/placement.kubernetes-fleet.io_clusterresourceplacements.yaml" }}
4-
{{- end }}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
{{- $files := .Files }}
2-
{{- if .Values.enableV1Beta1APIs }}
32
{{ $files.Get "crdbases/cluster.kubernetes-fleet.io_internalmemberclusters.yaml" }}
4-
{{- end }}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
{{- $files := .Files }}
2-
{{- if .Values.enableV1Beta1APIs }}
32
{{ $files.Get "crdbases/cluster.kubernetes-fleet.io_memberclusters.yaml" }}
4-
{{- end }}

0 commit comments

Comments
 (0)