Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from openkruise:master #9

Open
wants to merge 164 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
63bc96e
optimize imagepulljob code (#1514)
zmberg Mar 1, 2024
6bb78c4
fix: upgrade minimum dockerapi version (#1510)
hantmac Mar 1, 2024
04254fb
add: Support the deletion protection of service and ingress (#1269)
kevin1689-cloud Mar 7, 2024
c7e1daa
chores: use golang standard errors (#1518)
dongjiang1989 Mar 8, 2024
209d476
fix: validate update AdvancedDaemonSet (#1505)
hantmac Mar 8, 2024
861818e
Sidecar terminator ignore the exit code of the sidecar container (#1303)
diannaowa Mar 13, 2024
c33088b
update 1.26 v2 (#1511)
BH4AWS Mar 13, 2024
5de32b7
changelog 1.6.0 (#1522)
zmberg Mar 15, 2024
dad39bc
reduce github action permissions (#1523)
furykerry Mar 18, 2024
7270f40
add_enhanced_livenessProbe_webhook (#1467)
BH4AWS Mar 20, 2024
fd7e86e
PodWebhook=false will not disable ResourcesDeletionProtection (#1526)
zmberg Mar 20, 2024
d3cae3d
update go mod, remove dep replace (#1527)
BH4AWS Mar 20, 2024
f843b85
Fix when statefulset reserveOrdinals exist, scale down pvc failed (#1…
zmberg Mar 21, 2024
912de49
changelog 1.6.1 and 1.5.3 (#1532)
zmberg Mar 21, 2024
014b824
fix:setup-envtest ut err, ref: https://github.com/janus-idp/operator/…
BH4AWS Mar 28, 2024
1f7b691
fix: cloneset revision update (#1549)
qswksp Apr 1, 2024
9e01c36
fix: workloadspread validation message (#1553)
voron Apr 1, 2024
1f00e6b
Fix flaky ut (#1556)
furykerry Apr 1, 2024
ac3fa11
change log 1.6.2 (#1559)
zmberg Apr 2, 2024
0d0031a
Upgrade opencontainers/runc (1.1.12) and controller-gen (0.14.0) (#1562)
ppbits Apr 7, 2024
8bb8964
feature: Optimizing Pod SidecarSet webhook performance (#1547)
ls-2018 Apr 8, 2024
8f98ce4
chore: remove vendor (#1554)
liangyuanpeng Apr 15, 2024
587f344
structured logging for pkg/control (#1565)
MajLuu Apr 15, 2024
ecfc55c
add cri version notice in v1.6.0 changelog (#1569)
ABNER-1 Apr 16, 2024
046a014
Add dependabot config for auto-update github-actions. (#1570)
liangyuanpeng Apr 16, 2024
67c3b21
Bump codecov/codecov-action from 3 to 4 (#1573)
dependabot[bot] Apr 16, 2024
01a75b6
Bump ossf/scorecard-action from 2.1.2 to 2.3.1 (#1575)
dependabot[bot] Apr 16, 2024
9b722ca
Bump actions/setup-go from 3 to 5 (#1572)
dependabot[bot] Apr 16, 2024
5f125c3
Bump actions/upload-artifact from 3.1.0 to 4.3.1 (#1578)
dependabot[bot] Apr 16, 2024
e48285d
Bump actions/cache from 2 to 4 (#1571)
dependabot[bot] Apr 16, 2024
6cc1120
Bump helm/kind-action from 1.3.0 to 1.9.0 (#1577)
dependabot[bot] Apr 16, 2024
1424581
Bump github/codeql-action from 2 to 3 (#1574)
dependabot[bot] Apr 16, 2024
61d1b42
update security policy and contacts (#1580)
furykerry Apr 16, 2024
2753c3a
Add permission of security-events write for ghaction golangci-lint. (…
liangyuanpeng Apr 17, 2024
f244b7a
fix typo and remove incident-response (#1584)
furykerry Apr 17, 2024
ac9fb23
Bump crate-ci/typos from 1.13.10 to 1.20.9 (#1585)
dependabot[bot] Apr 17, 2024
2aea715
update vuluerable package such as docker/sys/otelgrpc/k8s, delete con…
ABNER-1 Apr 22, 2024
38f432f
Bump actions/upload-artifact from 4.3.1 to 4.3.2 (#1589)
dependabot[bot] Apr 22, 2024
2da1b90
Fixed an issue where pub webhooks unexpectedly return error when PUB …
opencmit2 Apr 23, 2024
36cc7d8
fix: WorkloadSpread feature judgment (#1566)
ls-2018 Apr 23, 2024
5cf50f7
fix: pod-readiness-controller use Patch to modify Pod (#1560)
BruceAko Apr 23, 2024
2c4261c
bump docker/docker,x/sys (#1591)
ABNER-1 Apr 24, 2024
f32a7c8
add liveness probe proposal (#1552)
BH4AWS Apr 25, 2024
353d334
add 1.6.3 cve-fix changelog (#1592)
ABNER-1 Apr 25, 2024
313bb15
Bump helm/kind-action from 1.9.0 to 1.10.0 (#1605)
dependabot[bot] Apr 29, 2024
879777b
recreate po when vct changed, pass unit test, add vctemplate changes …
ABNER-1 Apr 30, 2024
ef5e250
Bump golangci/golangci-lint-action from 4.0.0 to 5.3.0 (#1610)
dependabot[bot] May 6, 2024
9959b03
upgrade k8s deps to 1.28 (#1598)
ABNER-1 May 8, 2024
4c3b681
fix: make docker-multiarch failed with vendor errors (#1601)
MichaelRren May 8, 2024
b969432
Bump crate-ci/typos from 1.20.9 to 1.21.0 (#1609)
dependabot[bot] May 8, 2024
1bc8d85
sidecarset support k8s 1.28 sidecarContainers (#1613)
zmberg May 10, 2024
25f3d10
Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1 (#1619)
dependabot[bot] May 14, 2024
18d3f4a
Bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#1620)
dependabot[bot] May 14, 2024
13fe9ca
Bump actions/upload-artifact from 4.3.2 to 4.3.3 (#1603)
dependabot[bot] May 14, 2024
a836e90
Signed-off-by: Colvin-Y <[email protected]> (#1623)
Colvin-Y May 15, 2024
89d9558
fix: fix miss makezero bug (#1628)
alingse May 27, 2024
0e69ed4
Bump actions/checkout from 2 to 4 (#1590)
dependabot[bot] May 31, 2024
6d3199b
sidecarSet initContainer support InjectPolicy (#1617)
zmberg Jun 4, 2024
1045e6c
fix markdown linter checkout err (#1638)
ABNER-1 Jun 4, 2024
eb9a8b6
add ephemeraljob validating webhook, add validation&ut (#1615)
ABNER-1 Jun 4, 2024
145a9af
fix ut error in some machines without docker auth info (#1640)
ABNER-1 Jun 5, 2024
5ea03f1
add support for credential provider plugin (#1383)
Kuromesi Jun 11, 2024
8e2f8f5
Fix sidecarset inconsistentStatus always True bug when restart, close…
Spground Jun 12, 2024
0313790
support `cri-dockerd.sock` for docker runtime (#1634)
chengjoey Jun 12, 2024
9e253c5
Bump helm/kind-action from 1.9.0 to 1.10.0 (#1618)
dependabot[bot] Jun 17, 2024
bbb2d26
add start ordinal and e2e case (#1643)
ABNER-1 Jun 17, 2024
837b671
add generate helm crds scripts (#1525)
zmberg Jun 18, 2024
0f6aada
opt sts updateStatefulSet (#1648)
ABNER-1 Jun 18, 2024
f0f6eef
support structured logging for pkg/controller (#1629)
jairuigou Jun 24, 2024
8ae13b1
Bump crate-ci/typos from 1.21.0 to 1.22.9 (#1650)
dependabot[bot] Jun 24, 2024
2e9024a
Bump crate-ci/typos from 1.22.9 to 1.23.1 (#1658)
dependabot[bot] Jul 9, 2024
bfb70a1
Bump actions/upload-artifact from 4.3.3 to 4.3.4 (#1659)
dependabot[bot] Jul 9, 2024
2d3e0be
changed the scorecard badge link to the standard format and updated t…
harshitasao Jul 15, 2024
9b1a88d
add support for external certs (#1665)
Kuromesi Jul 22, 2024
c5c6df7
add proposal for support progressDeadlineSeconds in CloneSet (#1520)
hantmac Jul 22, 2024
71c6e7a
feat: add pod index label (#1667)
cr7258 Jul 23, 2024
a9f617f
Bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#1675)
dependabot[bot] Jul 30, 2024
11e5ac0
support structured logging (#1669)
AiRanthem Jul 30, 2024
61ee5bc
Fix nil panic in cloneset validating webhook (#1678)
Spground Jul 31, 2024
b19c4d8
Bump crate-ci/typos from 1.23.1 to 1.23.5 (#1676)
dependabot[bot] Jul 31, 2024
ee572bf
read certs from secrets to support external certs (#1677)
Kuromesi Aug 1, 2024
64cf2ec
Bump github.com/docker/docker (#1685)
dependabot[bot] Aug 2, 2024
5fac1ff
Bump github/codeql-action from 2.25.0 to 3.25.15 (#1693)
dependabot[bot] Aug 5, 2024
5a862a3
release 1.7.0 changelog (#1684)
zmberg Aug 5, 2024
5a52530
Bump github.com/docker/docker (#1700)
dependabot[bot] Aug 12, 2024
c7ffa18
Bump github/codeql-action from 3.25.15 to 3.26.0 (#1701)
dependabot[bot] Aug 13, 2024
2cd20da
Bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 (#1690)
dependabot[bot] Aug 13, 2024
dc3d8db
Bump actions/upload-artifact from 4.3.4 to 4.3.6 (#1702)
dependabot[bot] Aug 13, 2024
ab4c6d0
kruise support json log (#1703)
zmberg Aug 19, 2024
11fdf8f
fix: fixed the token-permission and pinned dependencies issue (#1707)
harshitasao Aug 19, 2024
f5508c5
Bump github/codeql-action from 3.26.0 to 3.26.5
dependabot[bot] Aug 26, 2024
3cb1e59
Bump crate-ci/typos from 1.23.5 to 1.24.1
dependabot[bot] Aug 26, 2024
5affbed
support sts vct resize
ABNER-1 Jul 26, 2024
0ff70fb
add csi-driver-host-path in e2e kind cluster
ABNER-1 Jul 26, 2024
c66ed5c
update PVC regardless of whether the Pod is terminating
ABNER-1 Aug 7, 2024
9e58975
add proposal about resize asts pvc
ABNER-1 Jun 26, 2024
8f4095a
fix go.mod k8s.io/* from v0.30.0 to v0.28.9 (#1716)
zmberg Aug 28, 2024
d25f72f
feat: BroadcastJob Controller list pods add the disableDeepCopy optio…
Prepmachine4 Aug 28, 2024
a6355b8
when update cabundle reduce the invalid updated (#1717)
zmberg Aug 30, 2024
68a3793
remove normal initcontainer in sidecarset's sidecar list (#1719)
zmberg Aug 30, 2024
4918768
fix sidecarset e2e (#1724)
zmberg Sep 3, 2024
179d759
fix kind install bug (#1688)
ABNER-1 Sep 5, 2024
be1a79e
1.7.1 changelog (#1727)
zmberg Sep 5, 2024
2d992bf
On pod creation, if a new pod matches the SidecarSet update strategy …
AiRanthem Sep 10, 2024
f32166c
fix(test): resolve race condition while running tests
MichaelRren Sep 13, 2024
7dcdf8d
Fix codeql and dependency problem (#1748)
furykerry Sep 18, 2024
6d57029
support specified-delete in asts (#1734)
ABNER-1 Sep 18, 2024
81eb820
add ci action (#1752)
ABNER-1 Sep 19, 2024
993afa3
Bump github/codeql-action from 3.26.5 to 3.26.8
dependabot[bot] Sep 23, 2024
198461e
Bump ruby/setup-ruby from 1.190.0 to 1.193.0
dependabot[bot] Sep 23, 2024
4f04e93
patches volume claim templates into pods before ValidatePodSpec in wo…
AiRanthem Sep 24, 2024
450dc5e
support resizing pvc only
ABNER-1 Aug 28, 2024
d79f404
support pub pub.kruise.io/disable-fetch-replicas-from-workload=true
zmberg Sep 24, 2024
fcc9c1b
Bump golang.org/x/sys in /tools/src/kind
dependabot[bot] Sep 26, 2024
4cec459
Bump actions/cache from 4.0.2 to 4.1.0
dependabot[bot] Oct 7, 2024
ae744be
Bump actions/checkout from 4.1.5 to 4.2.0
dependabot[bot] Sep 30, 2024
123b3b0
Bump github/codeql-action from 3.26.8 to 3.26.11
dependabot[bot] Oct 7, 2024
9e7188f
Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1
dependabot[bot] Oct 7, 2024
bd746c8
fix: override namespace config after deploying
hantmac Oct 2, 2024
91f7a75
Bump ruby/setup-ruby from 1.193.0 to 1.196.0
dependabot[bot] Oct 8, 2024
7217ba0
add time cost fix for a ut
AiRanthem Oct 8, 2024
f6a8ad7
Bump codecov/codecov-action from 4.5.0 to 4.6.0
dependabot[bot] Oct 9, 2024
de5c362
make ut more robust
AiRanthem Oct 10, 2024
c5f751a
add changelog about 1.5.5, 1.6.4 and 1.7.2
ABNER-1 Sep 19, 2024
0964df6
adjust the judgment logic of whether the current ordinal needs to be …
zybtakeit Oct 12, 2024
29f2323
Adaptive scheduling strategy for UnitedDeployment and refactor subset…
AiRanthem Oct 15, 2024
5a57682
Bump github/codeql-action from 3.26.11 to 3.26.12
dependabot[bot] Oct 14, 2024
2386e81
Bump ruby/setup-ruby from 1.196.0 to 1.197.0
dependabot[bot] Oct 21, 2024
77bacae
sync all fields in ud spec to subset workload spec and fix adapter re…
AiRanthem Oct 23, 2024
cba1c8a
Bump aquasecurity/trivy-action
dependabot[bot] Oct 21, 2024
558765e
Introducing Kruise Guru on Gurubase.io
kursataktas Oct 24, 2024
c426ed9
an error will be returned by workloadspread webhook when `getObjectOf…
AiRanthem Oct 31, 2024
1880364
define partition as number of non-updated pods should be reversed (#1…
ABNER-1 Nov 11, 2024
9924a62
Bump ruby/setup-ruby from 1.197.0 to 1.202.0
dependabot[bot] Nov 11, 2024
5ce62c9
fix docs and test typo (#1824)
furykerry Nov 13, 2024
924c5ee
Bump github/codeql-action from 3.26.12 to 3.27.1
dependabot[bot] Nov 11, 2024
b157f41
Bump aquasecurity/trivy-action
dependabot[bot] Oct 28, 2024
eb78da4
Bump crate-ci/typos from 1.24.1 to 1.27.3
dependabot[bot] Nov 18, 2024
fa139cb
Bump actions/checkout from 4.2.0 to 4.2.2
dependabot[bot] Nov 18, 2024
26a07e2
fix cloneSet controller block caused by scale expectation leakage
zmberg Nov 19, 2024
3e225bb
fix imagepulljob imagePullPolicy=Always does not take effect
zmberg Nov 19, 2024
54a769f
Bump github/codeql-action from 3.27.1 to 3.27.4
dependabot[bot] Nov 18, 2024
4661b6e
fix: a smaller maxUnavaila will block the sidecarSet from updating po…
zmberg Nov 21, 2024
1b40f5b
Bump crate-ci/typos from 1.27.3 to 1.28.1
dependabot[bot] Dec 2, 2024
22c81a8
add helm pre delete hook (#1843)
AiRanthem Dec 6, 2024
0ee3544
update makefile and remove helm hook ci workflow (#1847)
AiRanthem Dec 6, 2024
4f93af8
Bump github/codeql-action from 3.27.4 to 3.27.6
dependabot[bot] Dec 9, 2024
1583256
Bump actions/cache from 4.1.0 to 4.2.0
dependabot[bot] Dec 9, 2024
b800c5d
Bump actions/setup-go from 5.0.2 to 5.2.0
dependabot[bot] Dec 16, 2024
a74b22e
fix PyTorchJob create pod failure due to pod webhook
zmberg Dec 18, 2024
5ac3833
1.7.3, changelog
zmberg Dec 18, 2024
6968bd8
feat: enhanced in-place update module to support vertical scaling (#1…
LavenderQAQ Dec 19, 2024
d25416f
add change qos validator and recreate pod when qos changed
ABNER-1 Dec 20, 2024
b9da21a
add pre-normal hook for asts
May 8, 2023
aeb7f19
add ut test case for asts lifecycle
ABNER-1 Dec 11, 2024
2cdb760
Feature: SidecarSet injection supports Partial strategy (#1856)
AiRanthem Dec 25, 2024
0f3b58a
Job-like workload supported by WorkloadSpread (#1838)
AiRanthem Dec 27, 2024
e3e6d47
always use cri to pull images (#1867)
furykerry Dec 30, 2024
42f5266
remove docker dependency (#1870)
furykerry Jan 2, 2025
79b64c1
bugfix: pub webhook no longer requires pod ownerRef to exist
zmberg Dec 27, 2024
58c1ecb
Fix: ImagePullJob timeout setting is not effective when it is greater…
zmberg Jan 2, 2025
cd23dc1
Bugfix: WorkloadSpread cannot patch priorityClassName
AiRanthem Jan 10, 2025
531d650
Bump github/codeql-action from 3.27.6 to 3.28.1
dependabot[bot] Jan 20, 2025
08a7565
Bump ruby/setup-ruby from 1.202.0 to 1.213.0
dependabot[bot] Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 0 additions & 2 deletions .github/codeql/codeql-config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This YAML configuration file is used to enable Dependabot for automated dependency management.
# Dependabot helps keep the project's dependencies up-to-date by automatically creating pull requests
# for outdated dependencies based on the version constraints defined in your project.
# For more information and customization options, please refer to the Dependabot documentation:
# Documentation: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically
# Configuration options: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
# Allow up to 10 open pull requests for update github-actions
# 5 by default
# see https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#open-pull-requests-limit
open-pull-requests-limit: 10
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
62 changes: 34 additions & 28 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ on:
pull_request: {}
workflow_dispatch: {}

# Declare default permissions as read only.
permissions: read-all

env:
# Common versions
GO_VERSION: '1.19'
GOLANGCI_VERSION: 'v1.51'
GO_VERSION: '1.20'
GOLANGCI_VERSION: 'v1.55.2'
DOCKER_BUILDX_VERSION: 'v0.4.2'

# Common users. We can't run a step 'if secrets.AWS_USR != ""' but we can run
Expand All @@ -26,25 +29,27 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Check spelling with custom config file
uses: crate-ci/typos@v1.13.10
uses: crate-ci/typos@bd36f89fcd3424dcefd442894589e6ee572a59f2 # v1.28.1
with:
config: ./typos.toml

golangci-lint:
runs-on: ubuntu-20.04
permissions:
security-events: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache Go Dependencies
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -53,39 +58,40 @@ jobs:
run: |
make generate
- name: Lint golang code
uses: golangci/golangci-lint-action@v3.5.0
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: ${{ env.GOLANGCI_VERSION }}
args: --verbose
skip-pkg-cache: true
mod: readonly
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@d2a392a13760cb64cb6bbd31d4bed2a7d9a5298d # master
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
with:
sarif_file: 'trivy-results.sarif'

markdownlint-misspell-shellcheck:
runs-on: ubuntu-20.04
# this image is build from Dockerfile
# https://github.com/pouchcontainer/pouchlinter/blob/master/Dockerfile
container: pouchcontainer/pouchlinter:v0.1.2
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run misspell
run: find ./* -name "*" | grep -v vendor | xargs misspell -error
- name: Run shellcheck
run: find ./ -name "*.sh" | grep -v vendor | xargs shellcheck
- name: Lint markdown files
run: find ./ -name "*.md" | grep -v vendor | grep -v commandline | grep -v .github | grep -v swagger | grep -v api | xargs mdl -r ~MD010,~MD013,~MD014,~MD022,~MD024,~MD029,~MD031,~MD032,~MD033,~MD036
# markdownlint-misspell-shellcheck:
# runs-on: ubuntu-20.04
# # this image is build from Dockerfile
# # https://github.com/pouchcontainer/pouchlinter/blob/master/Dockerfile
# container: pouchcontainer/pouchlinter:v0.1.2
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Run misspell
# run: find ./* -name "*" | grep -v vendor | xargs misspell -error
# - name: Run shellcheck
# run: find ./ -name "*.sh" | grep -v vendor | xargs shellcheck
# - name: Lint markdown files
# run: find ./ -name "*.md" | grep -v vendor | grep -v commandline | grep -v .github | grep -v swagger | grep -v api | xargs mdl -r ~MD010,~MD013,~MD014,~MD022,~MD024,~MD029,~MD031,~MD032,~MD033,~MD036

# - name: Check markdown links
# run: |
# set +e
Expand All @@ -102,17 +108,17 @@ jobs:
unit-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: Fetch History
run: git fetch --prune --unshallow
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache Go Dependencies
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -122,7 +128,7 @@ jobs:
make test
git status
- name: Publish Unit Test Coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
flags: unittests
file: cover.out
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ name: "CodeQL"

on:
push:
branches: [ "master", "release-*" ]
branches: [ "master", "release-*"]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]


permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand All @@ -45,14 +48,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
Expand All @@ -64,7 +66,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -77,6 +79,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
with:
category: "/language:${{matrix.language}}"
17 changes: 15 additions & 2 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,26 @@ name: Docker Image CI
on:
workflow_dispatch:

# Declare default permissions as read only.
permissions: read-all

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.HUB_KRIUSE }}
- name: Build the Docker image
run: IMG=openkruise/kruise-manager:${{ github.ref_name }} & make docker-multiarch
run: |
docker buildx create --use --platform=linux/amd64,linux/arm64,linux/ppc64le --name multi-platform-builder
docker buildx ls
IMG=openkruise/kruise-manager:${{ github.ref_name }} make docker-multiarch
Loading