Skip to content

Commit da475c6

Browse files
committed
Merge remote-tracking branch 'origin/master' into release-3.1
# Conflicts: # .github/workflows/sync-feature-code.yaml # docs/kubernetes-versions.md # hack/sync-components.sh # version/components.json
2 parents 5cad5b5 + ee1cf9b commit da475c6

File tree

384 files changed

+38165
-90
lines changed

Some content is hidden

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

384 files changed

+38165
-90
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,15 @@
805805
"contributions": [
806806
"doc"
807807
]
808+
},
809+
{
810+
"login": "Hiiirad",
811+
"name": "Hirad Rasoolinejad",
812+
"avatar_url": "https://avatars.githubusercontent.com/u/26739670?v=4",
813+
"profile": "https://github.com/Hiiirad",
814+
"contributions": [
815+
"code"
816+
]
808817
}
809818
],
810819
"contributorsPerLine": 7,

.github/workflows/gen-repository-iso.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
- name: centos7-rpms
18-
dockerfile: dockerfile.centos7
1917
- name: almalinux-9.0-rpms
2018
dockerfile: dockerfile.almalinux90
2119
- name: debian10-debs

.github/workflows/kubernetes-auto-support.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: Kubernetes-Auto-Support
33

44
on:
5+
workflow_dispatch:
56
schedule:
67
- cron: '0 0 * * *'
78

.github/workflows/sync-feature-code.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
jobs:
99
sync-feature:
1010
runs-on: ubuntu-latest
11-
1211
steps:
1312
- name: Check if PR has merged
1413
id: check_pr
@@ -31,29 +30,28 @@ jobs:
3130
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }}
3231
uses: actions/checkout@v3
3332
with:
34-
ref: feature
33+
ref: feature-gitops
3534
path: feature-branch
3635

37-
- name: Remove old feature directory
38-
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }}
39-
run: rm -rf feature
40-
4136
- name: Sync feature branch to master/feature directory
4237
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }}
4338
run: |
44-
mkdir -p feature
39+
rm -rf feature && mkdir -p feature
40+
rm -rf feature-branch/vendor
4541
cp -r feature-branch/* feature/
46-
git config --global user.name 'ks-ci-bot'
47-
git config --global user.email '[email protected]'
48-
git add feature/
49-
git commit -m "Sync feature branch to master/feature directory"
42+
rm -rf feature-branch
5043
5144
- name: Push changes and create PR
5245
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }}
53-
uses: peter-evans/create-pull-request@v4
46+
uses: peter-evans/create-pull-request@v7
5447
with:
55-
token: ${{ secrets.GITHUB_TOKEN }}
56-
commit-message: Sync feature branch to master/feature directory
48+
commit-message: 'Sync feature branch to master/feature directory'
49+
delete-branch: true
5750
branch: sync-feature-to-main
58-
title: [ci-bot] Sync feature branch to master/feature directory
59-
body: This PR syncs the feature branch to the master/feature directory.
51+
sign-commits: true
52+
title: '[ci-bot] Sync feature branch to master/feature directory'
53+
body: |
54+
This PR syncs the feature branch to the master/feature directory.
55+
```release-note
56+
none
57+
```

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Contributions of any kind are welcome! Thanks goes to these wonderful contributo
119119
<td align="center" valign="top" width="14.28%"><a href="https://github.com/xrwang8"><img src="https://avatars.githubusercontent.com/u/68765051?v=4?s=100" width="100px;" alt="Ronald Fletcher"/><br /><sub><b>Ronald Fletcher</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=xrwang8" title="Code">💻</a></td>
120120
<td align="center" valign="top" width="14.28%"><a href="https://github.com/baikjy0215"><img src="https://avatars.githubusercontent.com/u/110450904?v=4?s=100" width="100px;" alt="baikjy0215"/><br /><sub><b>baikjy0215</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=baikjy0215" title="Code">💻</a></td>
121121
<td align="center" valign="top" width="14.28%"><a href="https://github.com/knowmost"><img src="https://avatars.githubusercontent.com/u/167442703?v=4?s=100" width="100px;" alt="knowmost"/><br /><sub><b>knowmost</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=knowmost" title="Documentation">📖</a></td>
122+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Hiiirad"><img src="https://avatars.githubusercontent.com/u/26739670?v=4?s=100" width="100px;" alt="Hirad Rasoolinejad"/><br /><sub><b>Hirad Rasoolinejad</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=Hiiirad" title="Code">💻</a></td>
122123
</tr>
123124
</tbody>
124125
</table>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
403403
<td align="center" valign="top" width="14.28%"><a href="https://github.com/xrwang8"><img src="https://avatars.githubusercontent.com/u/68765051?v=4?s=100" width="100px;" alt="Ronald Fletcher"/><br /><sub><b>Ronald Fletcher</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=xrwang8" title="Code">💻</a></td>
404404
<td align="center" valign="top" width="14.28%"><a href="https://github.com/baikjy0215"><img src="https://avatars.githubusercontent.com/u/110450904?v=4?s=100" width="100px;" alt="baikjy0215"/><br /><sub><b>baikjy0215</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=baikjy0215" title="Code">💻</a></td>
405405
<td align="center" valign="top" width="14.28%"><a href="https://github.com/knowmost"><img src="https://avatars.githubusercontent.com/u/167442703?v=4?s=100" width="100px;" alt="knowmost"/><br /><sub><b>knowmost</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=knowmost" title="Documentation">📖</a></td>
406+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Hiiirad"><img src="https://avatars.githubusercontent.com/u/26739670?v=4?s=100" width="100px;" alt="Hirad Rasoolinejad"/><br /><sub><b>Hirad Rasoolinejad</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=Hiiirad" title="Code">💻</a></td>
406407
</tr>
407408
</tbody>
408409
</table>

README_zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ kubectl completion bash >/etc/bash_completion.d/kubectl
420420
<td align="center" valign="top" width="14.28%"><a href="https://github.com/xrwang8"><img src="https://avatars.githubusercontent.com/u/68765051?v=4?s=100" width="100px;" alt="Ronald Fletcher"/><br /><sub><b>Ronald Fletcher</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=xrwang8" title="Code">💻</a></td>
421421
<td align="center" valign="top" width="14.28%"><a href="https://github.com/baikjy0215"><img src="https://avatars.githubusercontent.com/u/110450904?v=4?s=100" width="100px;" alt="baikjy0215"/><br /><sub><b>baikjy0215</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=baikjy0215" title="Code">💻</a></td>
422422
<td align="center" valign="top" width="14.28%"><a href="https://github.com/knowmost"><img src="https://avatars.githubusercontent.com/u/167442703?v=4?s=100" width="100px;" alt="knowmost"/><br /><sub><b>knowmost</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=knowmost" title="Documentation">📖</a></td>
423+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Hiiirad"><img src="https://avatars.githubusercontent.com/u/26739670?v=4?s=100" width="100px;" alt="Hirad Rasoolinejad"/><br /><sub><b>Hirad Rasoolinejad</b></sub></a><br /><a href="https://github.com/kubesphere/kubekey/commits?author=Hiiirad" title="Code">💻</a></td>
423424
</tr>
424425
</tbody>
425426
</table>

cmd/kk/cmd/completion/completion.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Normally you don't need to do more extra work to have this feature if you've ins
5050
Example: `# Installing bash completion on Linux
5151
## If bash-completion is not installed on Linux, please install the 'bash-completion' package
5252
## via your distribution's package manager.
53-
## Load the ks completion code for bash into the current shell
54-
source <(ks completion bash)
53+
## Load the kk completion code for bash into the current shell
54+
source <(kk completion bash)
5555
## Write bash completion code to a file and source if from .bash_profile
5656
mkdir -p ~/.config/kk/ && kk completion --type bash > ~/.config/kk/completion.bash.inc
5757
printf "

cmd/kk/pkg/artifact/manifest.go

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ import (
2020
"bufio"
2121
"context"
2222
"fmt"
23-
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
24-
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/files"
25-
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/images"
2623
"os"
2724
"sort"
2825
"strings"
2926

27+
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/core/connector"
28+
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/files"
29+
"github.com/kubesphere/kubekey/v3/cmd/kk/pkg/images"
30+
3031
mapset "github.com/deckarep/golang-set"
3132
"github.com/pkg/errors"
3233
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -276,7 +277,7 @@ func CreateManifestSpecifyVersion(arg common.Argument, name, version string, reg
276277
}, &common.KubeConf{
277278
Cluster: &kubekeyv1alpha2.ClusterSpec{
278279
Kubernetes: kubekeyv1alpha2.Kubernetes{Version: v},
279-
Registry: kubekeyv1alpha2.RegistryConfig{PrivateRegistry: "docker.io"},
280+
Registry: kubekeyv1alpha2.RegistryConfig{PrivateRegistry: images.DefaultRegistry()},
280281
},
281282
}, imageName).ImageName()
282283
if !imageIsExist(repo, imageArr) {
@@ -287,15 +288,9 @@ func CreateManifestSpecifyVersion(arg common.Argument, name, version string, reg
287288
}
288289

289290
options := &templates.Options{
290-
Name: name,
291-
Arches: arch,
292-
OperatingSystems: []kubekeyv1alpha2.OperatingSystem{{
293-
Arch: "amd64",
294-
Type: "linux",
295-
Id: "ubuntu",
296-
Version: "20.04",
297-
OsImage: "Ubuntu 20.04.6 LTS",
298-
}},
291+
Name: name,
292+
Arches: arch,
293+
OperatingSystems: []kubekeyv1alpha2.OperatingSystem{},
299294
KubernetesDistributions: kubernetesDistribution,
300295
Components: kubekeyv1alpha2.Components{
301296
Helm: kubekeyv1alpha2.Helm{Version: kubekeyv1alpha2.DefaultHelmVersion},

cmd/kk/pkg/artifact/templates/manifest.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ spec:
3737
{{- range .Options.Arches }}
3838
- {{ . }}
3939
{{- end }}
40+
{{- if not .Options.OperatingSystems }}
41+
operatingSystems: []
42+
{{- else }}
4043
operatingSystems:
4144
{{- range $i, $v := .Options.OperatingSystems }}
4245
- arch: {{ $v.Arch }}
@@ -49,6 +52,7 @@ spec:
4952
localPath:
5053
url:
5154
{{- end }}
55+
{{- end }}
5256
kubernetesDistributions:
5357
{{- range $i, $v := .Options.KubernetesDistributions }}
5458
- type: {{ $v.Type }}

0 commit comments

Comments
 (0)