Merge branch 'kubernetes:master' into ha
commit
6f4d0f1f3b
|
@ -12,7 +12,7 @@ on:
|
|||
- "!deploy/iso/**"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- master
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.gendocs.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: Update auto-generated docs and translations
|
||||
|
|
|
@ -22,7 +22,7 @@ on:
|
|||
- deleted
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
@ -118,7 +118,7 @@ jobs:
|
|||
hostname || true
|
||||
echo "--------------------------"
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -202,7 +202,7 @@ jobs:
|
|||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: download all extra reports
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
- name: upload all extra reports
|
||||
shell: bash {0}
|
||||
continue-on-error: true
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- 'v*-beta.*'
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
- name: Create PR
|
||||
if: ${{ steps.leaderboard.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: Update leaderboard
|
||||
|
|
|
@ -14,7 +14,7 @@ on:
|
|||
- "!deploy/iso/**"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -140,7 +140,7 @@ jobs:
|
|||
run: |
|
||||
go install github.com/medyagh/gopogh/cmd/gopogh@v0.26.0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -238,7 +238,7 @@ jobs:
|
|||
run: |
|
||||
go install github.com/medyagh/gopogh/cmd/gopogh@v0.26.0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -340,7 +340,7 @@ jobs:
|
|||
run: |
|
||||
go install github.com/medyagh/gopogh/cmd/gopogh@v0.26.0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -440,7 +440,7 @@ jobs:
|
|||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw -k
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -545,7 +545,7 @@ jobs:
|
|||
run: |
|
||||
sudo sysctl fs.protected_regular=0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -619,7 +619,7 @@ jobs:
|
|||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: download all reports
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
- name: upload all reports
|
||||
shell: bash {0}
|
||||
continue-on-error: true
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 2,14 * * *"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ on:
|
|||
- "!deploy/iso/**"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -138,7 +138,7 @@ jobs:
|
|||
run: |
|
||||
go install github.com/medyagh/gopogh/cmd/gopogh@v0.26.0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -237,7 +237,7 @@ jobs:
|
|||
run: |
|
||||
go install github.com/medyagh/gopogh/cmd/gopogh@v0.26.0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -354,7 +354,7 @@ jobs:
|
|||
run: |
|
||||
go install github.com/medyagh/gopogh/cmd/gopogh@v0.26.0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -457,7 +457,7 @@ jobs:
|
|||
run: |
|
||||
go install github.com/medyagh/gopogh/cmd/gopogh@v0.26.0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -558,7 +558,7 @@ jobs:
|
|||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw -k
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -664,7 +664,7 @@ jobs:
|
|||
run: |
|
||||
sudo sysctl fs.protected_regular=0
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
with:
|
||||
name: minikube_binaries
|
||||
path: minikube_binaries
|
||||
|
@ -740,7 +740,7 @@ jobs:
|
|||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: download all reports
|
||||
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe
|
||||
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85
|
||||
- name: upload all reports
|
||||
shell: bash {0}
|
||||
continue-on-error: true
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 2,14 * * *"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 2,14 * * *"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ on:
|
|||
types: [released]
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -26,7 +26,7 @@ jobs:
|
|||
./hack/benchmark/time-to-k8s/time-to-k8s.sh
|
||||
echo "version=$(minikube version --short)" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: add time-to-k8s benchmark for ${{ steps.timeToK8sBenchmark.outputs.version }}
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- "translations/**"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 3"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpBuildkit.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update buildkit from ${{ steps.bumpBuildkit.outputs.OLD_VERSION }} to ${{ steps.bumpBuildkit.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpCalico.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'CNI: Update calico from ${{ steps.bumpCalico.outputs.OLD_VERSION }} to ${{ steps.bumpCalico.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpCloudSpannerEmulator.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon cloud-spanner: Update cloud-spanner-emulator/emulator image from ${{ steps.bumpCloudSpannerEmulator.outputs.OLD_VERSION }} to ${{ steps.bumpCloudSpannerEmulator.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpCNIPlugins.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update cni-plugins from ${{ steps.bumpCNIPlugins.outputs.OLD_VERSION }} to ${{ steps.bumpCNIPlugins.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpContainerd.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update containerd from ${{ steps.bumpContainerd.outputs.OLD_VERSION }} to ${{ steps.bumpContainerd.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpCriDockerd.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update cri-dockerd from ${{ steps.bumpCriDockerd.outputs.OLD_VERSION }} to ${{ steps.bumpCriDockerd.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 5"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpCrio.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update cri-o from ${{ steps.bumpCrio.outputs.OLD_VERSION }} to ${{ steps.bumpCrio.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 3"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpCrictl.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update crictl from ${{ steps.bumpCrictl.outputs.OLD_VERSION }} to ${{ steps.bumpCrictl.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpDockerBuildx.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'ISO: Update docker-buildx from ${{ steps.bumpDockerBuildx.outputs.OLD_VERSION }} to ${{ steps.bumpDockerBuildx.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 4"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpDocker.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update docker from ${{ steps.bumpDocker.outputs.OLD_VERSION }} to ${{ steps.bumpDocker.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -29,7 +29,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpDocsy.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: bump docsy version
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpFlannel.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'CNI: Update flannel from ${{ steps.bumpFlannel.outputs.OLD_VERSION }} to ${{ steps.bumpFlannel.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpGCPAuth.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon gcp-auth: Update k8s-minikube/gcp-auth-webhook image from ${{ steps.bumpGCPAuth.outputs.OLD_VERSION }} to ${{ steps.bumpGCPAuth.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpGh.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'CI: Update gh from ${{ steps.bumpGh.outputs.OLD_VERSION }} to ${{ steps.bumpGh.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpGoGithub.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Update go-github from ${{ steps.bumpGoGithub.outputs.OLD_VERSION }} to ${{ steps.bumpGoGithub.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 9 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpGolang.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Update go from ${{ steps.bumpGolang.outputs.OLD_VERSION }} to ${{ steps.bumpGolang.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpGolint.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'CI: Update golint from ${{ steps.bumpGolint.outputs.OLD_VERSION }} to ${{ steps.bumpGolint.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 9 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpGopogh.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'CI: Update gopogh from ${{ steps.bumpGopogh.outputs.OLD_VERSION }} to ${{ steps.bumpGopogh.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpGotestsum.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'CI: Update gotestsum from ${{ steps.bumpGotestsum.outputs.OLD_VERSION }} to ${{ steps.bumpGotestsum.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpHugo.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Site: Update hugo from ${{ steps.bumpHugo.outputs.OLD_VERSION }} to ${{ steps.bumpHugo.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpIngress.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon ingress: Update ingress-nginx/controller image from ${{ steps.bumpIngress.outputs.OLD_VERSION }} to ${{ steps.bumpIngress.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpInspektorGadget.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon inspektor-gadget: Update inspektor-gadget image from ${{ steps.bumpInspektorGadget.outputs.OLD_VERSION }} to ${{ steps.bumpInspektorGadget.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -3,7 +3,7 @@ on:
|
|||
workflow_dispatch:
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
|
@ -78,7 +78,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpVersions.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update dependency versions'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpIstioOperator.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon istio-provisioner: Update istio/operator image from ${{ steps.bumpIstioOperator.outputs.OLD_VERSION }} to ${{ steps.bumpIstioOperator.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 8 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpk8s.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: bump default/newest kubernetes versions
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
|
@ -30,7 +30,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpKindnetd.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'CNI: Update kindnetd from ${{ steps.bumpKindnetd.outputs.OLD_VERSION }} to ${{ steps.bumpKindnetd.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpKongIngressController.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon kong: Update kong/kubernetes-ingress-controller image from ${{ steps.bumpKongIngressController.outputs.OLD_VERSION }} to ${{ steps.bumpKongIngressController.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpKong.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon kong: Update kong image from ${{ steps.bumpKong.outputs.OLD_VERSION }} to ${{ steps.bumpKong.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 6 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -29,7 +29,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpKubeadmConsts.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: update image constants for kubeadm images
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpKubectl.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon kubevirt: Update bitnami/kubectl image from ${{ steps.bumpKubectl.outputs.OLD_VERSION }} to ${{ steps.bumpKubectl.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 6 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -30,7 +30,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpKubernetesVersionsList.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: update Kubernetes versions list
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpMetricsServer.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon metrics-server: Update metrics-server/metrics-server image from ${{ steps.bumpMetricsServer.outputs.OLD_VERSION }} to ${{ steps.bumpMetricsServer.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpNerdctl.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update nerdctl from ${{ steps.bumpNerdctl.outputs.OLD_VERSION }} to ${{ steps.bumpNerdctl.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpNerdctld.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase: Update nerdctld from ${{ steps.bumpNerdctld.outputs.OLD_VERSION }} to ${{ steps.bumpNerdctld.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpNvidiaDevicePlugin.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon nvidia-device-plugin: Update nvidia/k8s-device-plugin image from ${{ steps.bumpNvidiaDevicePlugin.outputs.OLD_VERSION }} to ${{ steps.bumpNvidiaDevicePlugin.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpRegistry.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Addon registry: Update registry image from ${{ steps.bumpRegistry.outputs.OLD_VERSION }} to ${{ steps.bumpRegistry.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 2"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpRunc.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update runc from ${{ steps.bumpRunc.outputs.OLD_VERSION }} to ${{ steps.bumpRunc.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -31,7 +31,7 @@ jobs:
|
|||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
- name: Create PR
|
||||
if: ${{ steps.bumpSiteNode.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'site: Update node from ${{ steps.bumpSiteNode.outputs.OLD_VERSION }} to ${{ steps.bumpSiteNode.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpUbuntu.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase: Bump ubuntu:jammy from ${{ steps.bumpUbuntu.outputs.OLD_VERSION }} to ${{ steps.bumpUbuntu.outputs.NEW_VERSION }}'
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 0 2 * *"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.6'
|
||||
GO_VERSION: '1.22.0'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -36,7 +36,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
- name: Create PR
|
||||
if: ${{ steps.yearlyLeaderboard.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
|
||||
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: Update yearly leaderboard
|
||||
|
|
26
Makefile
26
Makefile
|
@ -24,7 +24,7 @@ KIC_VERSION ?= $(shell grep -E "Version =" pkg/drivers/kic/types.go | cut -d \"
|
|||
HUGO_VERSION ?= $(shell grep -E "HUGO_VERSION = \"" netlify.toml | cut -d \" -f2)
|
||||
|
||||
# Default to .0 for higher cache hit rates, as build increments typically don't require new ISO versions
|
||||
ISO_VERSION ?= v1.32.1-1703784139-17866
|
||||
ISO_VERSION ?= v1.32.1-1708638130-18020
|
||||
|
||||
# Dashes are valid in semver, but not Linux packaging. Use ~ to delimit alpha/beta
|
||||
DEB_VERSION ?= $(subst -,~,$(RAW_VERSION))
|
||||
|
@ -35,7 +35,7 @@ RPM_REVISION ?= 0
|
|||
|
||||
# used by hack/jenkins/release_build_and_upload.sh and KVM_BUILD_IMAGE, see also BUILD_IMAGE below
|
||||
# update this only by running `make update-golang-version`
|
||||
GO_VERSION ?= 1.21.6
|
||||
GO_VERSION ?= 1.22.0
|
||||
# update this only by running `make update-golang-version`
|
||||
GO_K8S_VERSION_PREFIX ?= v1.30.0
|
||||
|
||||
|
@ -44,9 +44,9 @@ KVM_GO_VERSION ?= $(GO_VERSION:.0=)
|
|||
|
||||
|
||||
INSTALL_SIZE ?= $(shell du out/minikube-windows-amd64.exe | cut -f1)
|
||||
BUILDROOT_BRANCH ?= 2021.02.12
|
||||
BUILDROOT_BRANCH ?= 2023.02.9
|
||||
# the go version on the line below is for the ISO
|
||||
GOLANG_OPTIONS = GO_VERSION=1.19.9 GO_HASH_FILE=$(PWD)/deploy/iso/minikube-iso/go.hash
|
||||
GOLANG_OPTIONS = GO_VERSION=1.21.6 GO_HASH_FILE=$(PWD)/deploy/iso/minikube-iso/go.hash
|
||||
BUILDROOT_OPTIONS = BR2_EXTERNAL=../../deploy/iso/minikube-iso $(GOLANG_OPTIONS)
|
||||
REGISTRY ?= gcr.io/k8s-minikube
|
||||
|
||||
|
@ -76,10 +76,10 @@ MINIKUBE_BUCKET ?= minikube/releases
|
|||
MINIKUBE_UPLOAD_LOCATION := gs://${MINIKUBE_BUCKET}
|
||||
MINIKUBE_RELEASES_URL=https://github.com/kubernetes/minikube/releases/download
|
||||
|
||||
KERNEL_VERSION ?= 5.10.57
|
||||
KERNEL_VERSION ?= 5.10.207
|
||||
# latest from https://github.com/golangci/golangci-lint/releases
|
||||
# update this only by running `make update-golint-version`
|
||||
GOLINT_VERSION ?= v1.55.2
|
||||
GOLINT_VERSION ?= v1.56.2
|
||||
# Limit number of default jobs, to avoid the CI builds running out of memory
|
||||
GOLINT_JOBS ?= 4
|
||||
# see https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
|
||||
|
@ -114,7 +114,7 @@ GVISOR_TAG ?= latest
|
|||
AUTOPAUSE_HOOK_TAG ?= v0.0.5
|
||||
|
||||
# prow-test tag to push changes to
|
||||
PROW_TEST_TAG ?= v0.0.6
|
||||
PROW_TEST_TAG ?= v0.0.7
|
||||
|
||||
# storage provisioner tag to push changes to
|
||||
# NOTE: you will need to bump the PreloadVersion if you change this
|
||||
|
@ -303,10 +303,9 @@ minikube-iso-%: deploy/iso/minikube-iso/board/minikube/%/rootfs-overlay/usr/bin/
|
|||
cp deploy/iso/minikube-iso/go.hash $(BUILD_DIR)/buildroot/package/go/go.hash; \
|
||||
git --git-dir=$(BUILD_DIR)/buildroot/.git config user.email "dev@random.com"; \
|
||||
git --git-dir=$(BUILD_DIR)/buildroot/.git config user.name "Random developer"; \
|
||||
git --git-dir=$(BUILD_DIR)/buildroot/.git --work-tree=$(BUILD_DIR)/buildroot am ../../deploy/iso/minikube-iso/0001-linux-add-BR2_LINUX_KERNEL_NEEDS_HOST_PAHOLE.patch; \
|
||||
fi;
|
||||
$(MAKE) -C $(BUILD_DIR)/buildroot $(BUILDROOT_OPTIONS) O=$(BUILD_DIR)/buildroot/output-$* minikube_$*_defconfig
|
||||
$(MAKE) -C $(BUILD_DIR)/buildroot $(BUILDROOT_OPTIONS) O=$(BUILD_DIR)/buildroot/output-$* host-python
|
||||
$(MAKE) -C $(BUILD_DIR)/buildroot $(BUILDROOT_OPTIONS) O=$(BUILD_DIR)/buildroot/output-$* host-python3
|
||||
$(MAKE) -C $(BUILD_DIR)/buildroot $(BUILDROOT_OPTIONS) O=$(BUILD_DIR)/buildroot/output-$*
|
||||
# x86_64 ISO is still BIOS rather than EFI because of AppArmor issues for KVM, and Gen 2 issues for Hyper-V
|
||||
if [ "$*" = "aarch64" ]; then \
|
||||
|
@ -866,13 +865,13 @@ out/docker-machine-driver-kvm2-$(RPM_VERSION)-0.%.rpm: out/docker-machine-driver
|
|||
|
||||
.PHONY: kvm-image-amd64
|
||||
kvm-image-amd64: installers/linux/kvm/Dockerfile.amd64 ## Convenient alias to build the docker container
|
||||
docker build --build-arg "GO_VERSION=$(KVM_GO_VERSION)" -t $(KVM_BUILD_IMAGE_AMD64) -f $< $(dir $<)
|
||||
docker build --build-arg "GO_VERSION=$(GO_VERSION)" -t $(KVM_BUILD_IMAGE_AMD64) -f $< $(dir $<)
|
||||
@echo ""
|
||||
@echo "$(@) successfully built"
|
||||
|
||||
.PHONY: kvm-image-arm64
|
||||
kvm-image-arm64: installers/linux/kvm/Dockerfile.arm64 docker-multi-arch-build ## Convenient alias to build the docker container
|
||||
docker buildx build --platform linux/arm64 --build-arg "GO_VERSION=$(KVM_GO_VERSION)" -t $(KVM_BUILD_IMAGE_ARM64) -f $< $(dir $<)
|
||||
docker buildx build --platform linux/arm64 --build-arg "GO_VERSION=$(GO_VERSION)" -t $(KVM_BUILD_IMAGE_ARM64) -f $< $(dir $<)
|
||||
@echo ""
|
||||
@echo "$(@) successfully built"
|
||||
|
||||
|
@ -1087,6 +1086,11 @@ update-cri-o-version:
|
|||
(cd hack/update/cri-o_version && \
|
||||
go run update_cri-o_version.go)
|
||||
|
||||
.PHONY: update-crun-version
|
||||
update-crun-version:
|
||||
(cd hack/update/crun_version && \
|
||||
go run update_crun_version.go)
|
||||
|
||||
.PHONY: update-metrics-server-version
|
||||
update-metrics-server-version:
|
||||
(cd hack/update/metrics_server_version && \
|
||||
|
|
10
README.md
10
README.md
|
@ -53,6 +53,14 @@ See https://minikube.sigs.k8s.io/docs/
|
|||
|
||||
See minikube in action [here](https://minikube.sigs.k8s.io/docs/handbook/controls/)
|
||||
|
||||
## Governance
|
||||
|
||||
Kubernetes project is governed by a framework of principles, values, policies and processes to help our community and constituents towards our shared goals.
|
||||
|
||||
The [Kubernetes Community](https://github.com/kubernetes/community/blob/master/governance.md) is the launching point for learning about how we organize ourselves.
|
||||
|
||||
The [Kubernetes Steering community repo](https://github.com/kubernetes/steering) is used by the Kubernetes Steering Committee, which oversees governance of the Kubernetes project.
|
||||
|
||||
## Community
|
||||
|
||||
minikube is a Kubernetes [#sig-cluster-lifecycle](https://github.com/kubernetes/community/tree/master/sig-cluster-lifecycle) project.
|
||||
|
@ -64,6 +72,6 @@ minikube is a Kubernetes [#sig-cluster-lifecycle](https://github.com/kubernetes/
|
|||
* [Contributing](https://minikube.sigs.k8s.io/docs/contrib/)
|
||||
* [Development Roadmap](https://minikube.sigs.k8s.io/docs/contrib/roadmap/)
|
||||
|
||||
Join our meetings:
|
||||
Join our community meetings:
|
||||
* [Bi-weekly office hours, Mondays @ 11am PST](https://tinyurl.com/minikube-oh)
|
||||
* [Triage Party](https://minikube.sigs.k8s.io/docs/contrib/triage/)
|
||||
|
|
|
@ -28,25 +28,24 @@ import (
|
|||
"k8s.io/minikube/pkg/minikube/command"
|
||||
"k8s.io/minikube/pkg/minikube/cruntime"
|
||||
"k8s.io/minikube/pkg/minikube/exit"
|
||||
"k8s.io/minikube/pkg/minikube/out"
|
||||
"k8s.io/minikube/pkg/minikube/reason"
|
||||
"k8s.io/minikube/pkg/minikube/style"
|
||||
)
|
||||
|
||||
var unpauseRequests = make(chan struct{})
|
||||
var done = make(chan struct{})
|
||||
var mu sync.Mutex
|
||||
var (
|
||||
unpauseRequests = make(chan struct{})
|
||||
done = make(chan struct{})
|
||||
mu sync.Mutex
|
||||
runtimePaused bool
|
||||
version = "0.0.1"
|
||||
|
||||
var runtimePaused bool
|
||||
var version = "0.0.1"
|
||||
|
||||
var runtime = flag.String("container-runtime", "docker", "Container runtime to use for (un)pausing")
|
||||
runtime = flag.String("container-runtime", "docker", "Container runtime to use for (un)pausing")
|
||||
interval = flag.Duration("interval", time.Minute*1, "Interval of inactivity for pause to occur")
|
||||
)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
// TODO: #10595 make this configurable
|
||||
const interval = time.Minute * 1
|
||||
tickerChannel := time.NewTicker(*interval)
|
||||
|
||||
// Check current state
|
||||
alreadyPaused()
|
||||
|
@ -54,16 +53,15 @@ func main() {
|
|||
// channel for incoming messages
|
||||
go func() {
|
||||
for {
|
||||
// On each iteration new timer is created
|
||||
select {
|
||||
// TODO: #10596 make it memory-leak proof
|
||||
case <-time.After(interval):
|
||||
case <-tickerChannel.C:
|
||||
tickerChannel.Stop()
|
||||
runPause()
|
||||
case <-unpauseRequests:
|
||||
fmt.Printf("Got request\n")
|
||||
if runtimePaused {
|
||||
runUnpause()
|
||||
}
|
||||
tickerChannel.Stop()
|
||||
log.Println("Got request")
|
||||
runUnpause()
|
||||
tickerChannel.Reset(*interval)
|
||||
|
||||
done <- struct{}{}
|
||||
}
|
||||
|
@ -86,9 +84,10 @@ func runPause() {
|
|||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
if runtimePaused {
|
||||
out.Styled(style.AddonEnable, "Auto-pause is already enabled.")
|
||||
log.Println("Already paused, skipping")
|
||||
return
|
||||
}
|
||||
log.Println("Pausing...")
|
||||
|
||||
r := command.NewExecRunner(true)
|
||||
|
||||
|
@ -104,13 +103,17 @@ func runPause() {
|
|||
|
||||
runtimePaused = true
|
||||
|
||||
out.Step(style.Unpause, "Paused {{.count}} containers", out.V{"count": len(uids)})
|
||||
log.Printf("Paused %d containers", len(uids))
|
||||
}
|
||||
|
||||
func runUnpause() {
|
||||
fmt.Println("unpausing...")
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
if !runtimePaused {
|
||||
log.Println("Already unpaused, skipping")
|
||||
return
|
||||
}
|
||||
log.Println("Unpausing...")
|
||||
|
||||
r := command.NewExecRunner(true)
|
||||
|
||||
|
@ -125,7 +128,7 @@ func runUnpause() {
|
|||
}
|
||||
runtimePaused = false
|
||||
|
||||
out.Step(style.Unpause, "Unpaused {{.count}} containers", out.V{"count": len(uids)})
|
||||
log.Printf("Unpaused %d containers", len(uids))
|
||||
}
|
||||
|
||||
func alreadyPaused() {
|
||||
|
@ -142,5 +145,5 @@ func alreadyPaused() {
|
|||
if err != nil {
|
||||
exit.Error(reason.GuestCheckPaused, "Fail check if container paused", err)
|
||||
}
|
||||
out.Step(style.Check, "containers paused status: {{.paused}}", out.V{"paused": runtimePaused})
|
||||
log.Printf("containers paused status: %t", runtimePaused)
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ var addCacheCmd = &cobra.Command{
|
|||
Use: "add",
|
||||
Short: "Add an image to local cache.",
|
||||
Long: "Add an image to local cache.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
out.WarningT("\"minikube cache\" will be deprecated in upcoming versions, please switch to \"minikube image load\"")
|
||||
// Cache and load images into docker daemon
|
||||
if err := machine.CacheAndLoadImages(args, cacheAddProfiles(), false); err != nil {
|
||||
|
@ -85,7 +85,7 @@ var deleteCacheCmd = &cobra.Command{
|
|||
Use: "delete",
|
||||
Short: "Delete an image from the local cache.",
|
||||
Long: "Delete an image from the local cache.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
// Delete images from config file
|
||||
if err := cmdConfig.DeleteFromConfigMap(cacheImageConfigKey, args); err != nil {
|
||||
exit.Error(reason.InternalDelConfig, "Failed to delete images from config", err)
|
||||
|
@ -102,7 +102,7 @@ var reloadCacheCmd = &cobra.Command{
|
|||
Use: "reload",
|
||||
Short: "reload cached images.",
|
||||
Long: "reloads images previously added using the 'cache add' subcommand",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
err := node.CacheAndLoadImagesInConfig(cacheAddProfiles())
|
||||
if err != nil {
|
||||
exit.Error(reason.GuestCacheLoad, "Failed to reload cached images", err)
|
||||
|
|
|
@ -40,7 +40,7 @@ var listCacheCmd = &cobra.Command{
|
|||
Use: "list",
|
||||
Short: "List all available images from the local cache.",
|
||||
Long: "List all available images from the local cache.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
images, err := cmdConfig.ListConfigMap(cacheImageConfigKey)
|
||||
if err != nil {
|
||||
exit.Error(reason.InternalListConfig, "Failed to get image map", err)
|
||||
|
|
|
@ -81,7 +81,7 @@ var completionCmd = &cobra.Command{
|
|||
Use: "completion SHELL",
|
||||
Short: "Generate command completion for a shell",
|
||||
Long: longDescription,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 1 {
|
||||
exit.Message(reason.Usage, "Usage: minikube completion SHELL")
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ var bashCmd = &cobra.Command{
|
|||
Use: "bash",
|
||||
Short: "bash completion.",
|
||||
Long: "Generate command completion for bash.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
err := GenerateBashCompletion(os.Stdout, cmd.Root())
|
||||
if err != nil {
|
||||
exit.Error(reason.InternalCompletion, "bash completion failed", err)
|
||||
|
@ -107,7 +107,7 @@ var zshCmd = &cobra.Command{
|
|||
Use: "zsh",
|
||||
Short: "zsh completion.",
|
||||
Long: "Generate command completion for zsh.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
err := GenerateZshCompletion(os.Stdout, cmd.Root())
|
||||
if err != nil {
|
||||
exit.Error(reason.InternalCompletion, "zsh completion failed", err)
|
||||
|
@ -119,7 +119,7 @@ var fishCmd = &cobra.Command{
|
|||
Use: "fish",
|
||||
Short: "fish completion.",
|
||||
Long: "Generate command completion for fish .",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
err := GenerateFishCompletion(os.Stdout, cmd.Root())
|
||||
if err != nil {
|
||||
exit.Error(reason.InternalCompletion, "fish completion failed", err)
|
||||
|
@ -131,7 +131,7 @@ var powershellCmd = &cobra.Command{
|
|||
Use: "powershell",
|
||||
Short: "powershell completion.",
|
||||
Long: "Generate command completion for PowerShell.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
err := GeneratePowerShellCompletion(os.Stdout, cmd.Root())
|
||||
if err != nil {
|
||||
exit.Error(reason.InternalCompletion, "powershell completion failed", err)
|
||||
|
|
|
@ -27,7 +27,7 @@ var AddonsCmd = &cobra.Command{
|
|||
Use: "addons SUBCOMMAND [flags]",
|
||||
Short: "Enable or disable a minikube addon",
|
||||
Long: `addons modifies minikube addons files using subcommands like "minikube addons enable dashboard"`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
if err := cmd.Help(); err != nil {
|
||||
klog.Errorf("help: %v", err)
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ var addonsListCmd = &cobra.Command{
|
|||
Use: "list",
|
||||
Short: "Lists all available minikube addons as well as their current statuses (enabled/disabled)",
|
||||
Long: "Lists all available minikube addons as well as their current statuses (enabled/disabled)",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 0 {
|
||||
exit.Message(reason.Usage, "usage: minikube addons list")
|
||||
}
|
||||
|
|
|
@ -180,7 +180,7 @@ var ConfigCmd = &cobra.Command{
|
|||
Short: "Modify persistent configuration values",
|
||||
Long: `config modifies minikube config files using subcommands like "minikube config set driver kvm2"
|
||||
Configurable fields: ` + "\n\n" + configurableFields(),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
if err := cmd.Help(); err != nil {
|
||||
klog.ErrorS(err, "help")
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ import (
|
|||
"net"
|
||||
"os"
|
||||
"regexp"
|
||||
"time"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"k8s.io/minikube/pkg/addons"
|
||||
|
@ -40,11 +41,13 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
Use: "configure ADDON_NAME",
|
||||
Short: "Configures the addon w/ADDON_NAME within minikube (example: minikube addons configure registry-creds). For a list of available addons use: minikube addons list",
|
||||
Long: "Configures the addon w/ADDON_NAME within minikube (example: minikube addons configure registry-creds). For a list of available addons use: minikube addons list",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 1 {
|
||||
exit.Message(reason.Usage, "usage: minikube addons configure ADDON_NAME")
|
||||
}
|
||||
|
||||
profile := ClusterFlagValue()
|
||||
|
||||
addon := args[0]
|
||||
// allows for additional prompting of information when enabling addons
|
||||
switch addon {
|
||||
|
@ -109,12 +112,11 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
acrPassword = AskForPasswordValue("-- Enter service principal password to access Azure Container Registry: ")
|
||||
}
|
||||
|
||||
cname := ClusterFlagValue()
|
||||
namespace := "kube-system"
|
||||
|
||||
// Create ECR Secret
|
||||
err := service.CreateSecret(
|
||||
cname,
|
||||
profile,
|
||||
namespace,
|
||||
"registry-creds-ecr",
|
||||
map[string]string{
|
||||
|
@ -136,7 +138,7 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
|
||||
// Create GCR Secret
|
||||
err = service.CreateSecret(
|
||||
cname,
|
||||
profile,
|
||||
namespace,
|
||||
"registry-creds-gcr",
|
||||
map[string]string{
|
||||
|
@ -155,7 +157,7 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
|
||||
// Create Docker Secret
|
||||
err = service.CreateSecret(
|
||||
cname,
|
||||
profile,
|
||||
namespace,
|
||||
"registry-creds-dpr",
|
||||
map[string]string{
|
||||
|
@ -175,7 +177,7 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
|
||||
// Create Azure Container Registry Secret
|
||||
err = service.CreateSecret(
|
||||
cname,
|
||||
profile,
|
||||
namespace,
|
||||
"registry-creds-acr",
|
||||
map[string]string{
|
||||
|
@ -194,7 +196,6 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
}
|
||||
|
||||
case "metallb":
|
||||
profile := ClusterFlagValue()
|
||||
_, cfg := mustload.Partial(profile)
|
||||
|
||||
validator := func(s string) bool {
|
||||
|
@ -214,7 +215,6 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
out.ErrT(style.Fatal, "Failed to configure metallb IP {{.profile}}", out.V{"profile": profile})
|
||||
}
|
||||
case "ingress":
|
||||
profile := ClusterFlagValue()
|
||||
_, cfg := mustload.Partial(profile)
|
||||
|
||||
validator := func(s string) bool {
|
||||
|
@ -236,7 +236,6 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
out.ErrT(style.Fatal, "Failed to save config {{.profile}}", out.V{"profile": profile})
|
||||
}
|
||||
case "registry-aliases":
|
||||
profile := ClusterFlagValue()
|
||||
_, cfg := mustload.Partial(profile)
|
||||
validator := func(s string) bool {
|
||||
format := regexp.MustCompile(`^([a-zA-Z0-9-_]+\.[a-zA-Z0-9-_]+)+(\ [a-zA-Z0-9-_]+\.[a-zA-Z0-9-_]+)*$`)
|
||||
|
@ -255,7 +254,27 @@ var addonsConfigureCmd = &cobra.Command{
|
|||
out.ErrT(style.Fatal, "Failed to configure registry-aliases {{.profile}}", out.V{"profile": profile})
|
||||
}
|
||||
}
|
||||
|
||||
case "auto-pause":
|
||||
_, cfg := mustload.Partial(profile)
|
||||
intervalInput := AskForStaticValue("-- Enter interval time of auto-pause-interval (ex. 1m0s): ")
|
||||
intervalTime, err := time.ParseDuration(intervalInput)
|
||||
if err != nil {
|
||||
out.ErrT(style.Fatal, "Interval is an invalid duration: {{.error}}", out.V{"error": err})
|
||||
}
|
||||
if intervalTime != intervalTime.Abs() || intervalTime.String() == "0s" {
|
||||
out.ErrT(style.Fatal, "Interval must be greater than 0s")
|
||||
}
|
||||
cfg.AutoPauseInterval = intervalTime
|
||||
if err := config.SaveProfile(profile, cfg); err != nil {
|
||||
out.ErrT(style.Fatal, "Failed to save config {{.profile}}", out.V{"profile": profile})
|
||||
}
|
||||
addon := assets.Addons["auto-pause"]
|
||||
if addon.IsEnabled(cfg) {
|
||||
// Re-enable auto-pause addon in order to update interval time
|
||||
if err := addons.EnableOrDisableAddon(cfg, "auto-pause", "true"); err != nil {
|
||||
out.ErrT(style.Fatal, "Failed to configure auto-pause {{.profile}}", out.V{"profile": profile})
|
||||
}
|
||||
}
|
||||
default:
|
||||
out.FailureT("{{.name}} has no available configuration options", out.V{"name": addon})
|
||||
return
|
||||
|
|
|
@ -31,7 +31,7 @@ var addonsDisableCmd = &cobra.Command{
|
|||
Use: "disable ADDON_NAME",
|
||||
Short: "Disables the addon w/ADDON_NAME within minikube (example: minikube addons disable dashboard). For a list of available addons use: minikube addons list ",
|
||||
Long: "Disables the addon w/ADDON_NAME within minikube (example: minikube addons disable dashboard). For a list of available addons use: minikube addons list ",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 1 {
|
||||
exit.Message(reason.Usage, "usage: minikube addons disable ADDON_NAME")
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ var addonsEnableCmd = &cobra.Command{
|
|||
Short: "Enables the addon w/ADDON_NAME within minikube. For a list of available addons use: minikube addons list ",
|
||||
Long: "Enables the addon w/ADDON_NAME within minikube. For a list of available addons use: minikube addons list ",
|
||||
Example: "minikube addons enable dashboard",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 1 {
|
||||
exit.Message(reason.Usage, "usage: minikube addons enable ADDON_NAME")
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ var addonsImagesCmd = &cobra.Command{
|
|||
Short: "List image names the addon w/ADDON_NAME used. For a list of available addons use: minikube addons list",
|
||||
Long: "List image names the addon w/ADDON_NAME used. For a list of available addons use: minikube addons list",
|
||||
Example: "minikube addons images ingress",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 1 {
|
||||
exit.Message(reason.Usage, "usage: minikube addons images ADDON_NAME")
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/google/go-github/v58/github"
|
||||
"github.com/google/go-github/v59/github"
|
||||
"golang.org/x/mod/semver"
|
||||
"k8s.io/minikube/pkg/minikube/constants"
|
||||
)
|
||||
|
|
|
@ -46,14 +46,14 @@ var addonsOpenCmd = &cobra.Command{
|
|||
Use: "open ADDON_NAME",
|
||||
Short: "Opens the addon w/ADDON_NAME within minikube (example: minikube addons open dashboard). For a list of available addons use: minikube addons list ",
|
||||
Long: "Opens the addon w/ADDON_NAME within minikube (example: minikube addons open dashboard). For a list of available addons use: minikube addons list ",
|
||||
PreRun: func(cmd *cobra.Command, args []string) {
|
||||
PreRun: func(_ *cobra.Command, _ []string) {
|
||||
t, err := template.New("addonsURL").Parse(addonsURLFormat)
|
||||
if err != nil {
|
||||
exit.Message(reason.Usage, "The value passed to --format is invalid: {{.error}}", out.V{"error": err})
|
||||
}
|
||||
addonsURLTemplate = t
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 1 {
|
||||
exit.Message(reason.Usage, "usage: minikube addons open ADDON_NAME")
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ var ProfileCmd = &cobra.Command{
|
|||
Use: "profile [MINIKUBE_PROFILE_NAME]. You can return to the default minikube profile by running `minikube profile default`",
|
||||
Short: "Get or list the current profiles (clusters)",
|
||||
Long: "profile sets the current minikube profile, or gets the current profile if no arguments are provided. This is used to run and manage multiple minikube instance. You can return to the default minikube profile by running `minikube profile default`",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) == 0 {
|
||||
profile := ClusterFlagValue()
|
||||
out.Styled(style.Empty, profile)
|
||||
|
|
|
@ -49,7 +49,7 @@ var profileListCmd = &cobra.Command{
|
|||
Use: "list",
|
||||
Short: "Lists all minikube profiles.",
|
||||
Long: "Lists all valid minikube profiles and detects all possible invalid profiles.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
output := strings.ToLower(profileOutput)
|
||||
out.SetJSON(output == "json")
|
||||
go notify.MaybePrintUpdateTextFromGithub()
|
||||
|
|
|
@ -31,7 +31,7 @@ var configSetCmd = &cobra.Command{
|
|||
Short: "Sets an individual value in a minikube config file",
|
||||
Long: `Sets the PROPERTY_NAME config value to PROPERTY_VALUE
|
||||
These values can be overwritten by flags or environment variables at runtime.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) < 2 {
|
||||
exit.Message(reason.Usage, "not enough arguments ({{.ArgCount}}).\nusage: minikube config set PROPERTY_NAME PROPERTY_VALUE", out.V{"ArgCount": len(args)})
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ var configUnsetCmd = &cobra.Command{
|
|||
Use: "unset PROPERTY_NAME",
|
||||
Short: "unsets an individual value in a minikube config file",
|
||||
Long: "unsets PROPERTY_NAME from the minikube config file. Can be overwritten by flags or environmental variables",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 1 {
|
||||
exit.Message(reason.Usage, "usage: minikube config unset PROPERTY_NAME")
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ var configViewCmd = &cobra.Command{
|
|||
Use: "view",
|
||||
Short: "Display values currently set in the minikube config file",
|
||||
Long: "Display values currently set in the minikube config file.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
err := View()
|
||||
if err != nil {
|
||||
exit.Error(reason.InternalConfigView, "config view failed", err)
|
||||
|
|
|
@ -52,7 +52,7 @@ Default target node controlplane and If <source node name> is omitted, It will t
|
|||
Example Command : "minikube cp a.txt /home/docker/b.txt" +
|
||||
"minikube cp a.txt minikube-m02:/home/docker/b.txt"
|
||||
"minikube cp minikube-m01:a.txt minikube-m02:/home/docker/b.txt"`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 2 {
|
||||
exit.Message(reason.Usage, `Please specify the path to copy:
|
||||
minikube cp <source file path> <target file absolute path> (example: "minikube cp a/b.txt /copied.txt")`)
|
||||
|
|
|
@ -57,7 +57,7 @@ var dashboardCmd = &cobra.Command{
|
|||
Use: "dashboard",
|
||||
Short: "Access the Kubernetes dashboard running within the minikube cluster",
|
||||
Long: `Access the Kubernetes dashboard running within the minikube cluster`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
cname := ClusterFlagValue()
|
||||
co := mustload.Healthy(cname)
|
||||
|
||||
|
|
|
@ -145,9 +145,7 @@ func TestDeleteProfile(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
var hostAndDirsDeleterMock = func(api libmachine.API, cc *config.ClusterConfig, profileName string) error {
|
||||
return deleteContextTest()
|
||||
}
|
||||
var hostAndDirsDeleterMock = func(_ libmachine.API, _ *config.ClusterConfig, _ string) error { return deleteContextTest() }
|
||||
|
||||
func deleteContextTest() error {
|
||||
if err := cmdcfg.Unset(config.ProfileName); err != nil {
|
||||
|
|
|
@ -269,7 +269,7 @@ For example, you can do all docker operations such as docker build, docker run,
|
|||
|
||||
Note: You need the docker-cli to be installed on your machine.
|
||||
docker-cli install instructions: https://minikube.sigs.k8s.io/docs/tutorials/docker_desktop_replacement/#steps`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
var err error
|
||||
|
||||
shl := shell.ForceShell
|
||||
|
|
|
@ -38,7 +38,7 @@ var generateDocs = &cobra.Command{
|
|||
Long: "Populates the specified folder with documentation in markdown about minikube",
|
||||
Example: "minikube generate-docs --path <FOLDER_PATH>",
|
||||
Hidden: true,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
// if directory does not exist
|
||||
st, err := os.Stat(docsPath)
|
||||
if err != nil || !st.IsDir() {
|
||||
|
|
|
@ -80,7 +80,7 @@ var loadImageCmd = &cobra.Command{
|
|||
Short: "Load an image into minikube",
|
||||
Long: "Load an image into minikube",
|
||||
Example: "minikube image load image\nminikube image load image.tar",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) == 0 {
|
||||
exit.Message(reason.Usage, "Please provide an image in your local daemon to load into minikube via <minikube image load IMAGE_NAME>")
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ var saveImageCmd = &cobra.Command{
|
|||
Short: "Save a image from minikube",
|
||||
Long: "Save a image from minikube",
|
||||
Example: "minikube image save image\nminikube image save image image.tar",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) == 0 {
|
||||
exit.Message(reason.Usage, "Please provide an image in the container runtime to save from minikube via <minikube image save IMAGE_NAME>")
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ $ minikube image unload image busybox
|
|||
`,
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
Aliases: []string{"remove", "unload"},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
profile, err := config.LoadProfile(viper.GetString(config.ProfileName))
|
||||
if err != nil {
|
||||
exit.Error(reason.Usage, "loading profile", err)
|
||||
|
@ -247,7 +247,7 @@ var pullImageCmd = &cobra.Command{
|
|||
Example: `
|
||||
$ minikube image pull busybox
|
||||
`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
profile, err := config.LoadProfile(viper.GetString(config.ProfileName))
|
||||
if err != nil {
|
||||
exit.Error(reason.Usage, "loading profile", err)
|
||||
|
@ -273,7 +273,7 @@ var buildImageCmd = &cobra.Command{
|
|||
Short: "Build a container image in minikube",
|
||||
Long: "Build a container image, using the container runtime.",
|
||||
Example: `minikube image build .`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) < 1 {
|
||||
exit.Message(reason.Usage, "Please provide a path or url to build")
|
||||
}
|
||||
|
@ -333,7 +333,7 @@ var listImageCmd = &cobra.Command{
|
|||
$ minikube image ls
|
||||
`,
|
||||
Aliases: []string{"list"},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
profile, err := config.LoadProfile(viper.GetString(config.ProfileName))
|
||||
if err != nil {
|
||||
exit.Error(reason.Usage, "loading profile", err)
|
||||
|
@ -352,7 +352,7 @@ var tagImageCmd = &cobra.Command{
|
|||
$ minikube image tag source target
|
||||
`,
|
||||
Aliases: []string{"list"},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 2 {
|
||||
exit.Message(reason.Usage, "Please provide source and target image")
|
||||
}
|
||||
|
@ -373,7 +373,7 @@ var pushImageCmd = &cobra.Command{
|
|||
Example: `
|
||||
$ minikube image push busybox
|
||||
`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
profile, err := config.LoadProfile(viper.GetString(config.ProfileName))
|
||||
if err != nil {
|
||||
exit.Error(reason.Usage, "loading profile", err)
|
||||
|
|
|
@ -30,7 +30,7 @@ var ipCmd = &cobra.Command{
|
|||
Use: "ip",
|
||||
Short: "Retrieves the IP address of the specified node",
|
||||
Long: `Retrieves the IP address of the specified node, and writes it to STDOUT.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
co := mustload.Running(ClusterFlagValue())
|
||||
n, _, err := node.Retrieve(*co.Config, nodeName)
|
||||
if err != nil {
|
||||
|
|
|
@ -53,7 +53,7 @@ but optionally you can also run it directly on the control plane over the ssh co
|
|||
This can be useful if you cannot run kubectl locally for some reason, like unsupported
|
||||
host. Please be aware that when using --ssh all paths will apply to the remote machine.`,
|
||||
Example: "minikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
cc, err := config.Load(ClusterFlagValue())
|
||||
|
||||
version := constants.DefaultKubernetesVersion
|
||||
|
|
|
@ -30,7 +30,7 @@ var licenseCmd = &cobra.Command{
|
|||
Use: "license",
|
||||
Short: "Outputs the licenses of dependencies to a directory",
|
||||
Long: "Outputs the licenses of dependencies to a directory",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
if err := download.Licenses(dir); err != nil {
|
||||
exit.Error(reason.InetLicenses, "Failed to download licenses", err)
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ var logsCmd = &cobra.Command{
|
|||
Use: "logs",
|
||||
Short: "Returns logs to debug a local Kubernetes cluster",
|
||||
Long: `Gets the logs of the running instance, used for debugging minikube, not user code.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
var logOutput *os.File = os.Stdout
|
||||
var err error
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ var mountCmd = &cobra.Command{
|
|||
Use: "mount [flags] <source directory>:<target directory>",
|
||||
Short: "Mounts the specified directory into minikube",
|
||||
Long: `Mounts the specified directory into minikube.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if isKill {
|
||||
if err := killMountProcess(); err != nil {
|
||||
exit.Error(reason.HostKillMountProc, "Error killing mount process", err)
|
||||
|
|
|
@ -27,7 +27,7 @@ var nodeCmd = &cobra.Command{
|
|||
Use: "node",
|
||||
Short: "Add, remove, or list additional nodes",
|
||||
Long: "Operations on nodes",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
exit.Message(reason.Usage, "Usage: minikube node [add|start|stop|delete|list]")
|
||||
},
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ var nodeAddCmd = &cobra.Command{
|
|||
Use: "add",
|
||||
Short: "Adds a node to the given cluster.",
|
||||
Long: "Adds a node to the given cluster config, and starts it.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
co := mustload.Healthy(ClusterFlagValue())
|
||||
cc := co.Config
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ var nodeDeleteCmd = &cobra.Command{
|
|||
Use: "delete",
|
||||
Short: "Deletes a node from a cluster.",
|
||||
Long: "Deletes a node from a cluster.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) == 0 {
|
||||
exit.Message(reason.Usage, "Usage: minikube node delete [name]")
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ var nodeListCmd = &cobra.Command{
|
|||
Use: "list",
|
||||
Short: "List nodes.",
|
||||
Long: "List existing minikube nodes.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) != 0 {
|
||||
exit.Message(reason.Usage, "Usage: minikube node list")
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ var nodeStopCmd = &cobra.Command{
|
|||
Use: "stop",
|
||||
Short: "Stops a node in a cluster.",
|
||||
Long: "Stops a node in a cluster.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) == 0 {
|
||||
exit.Message(reason.Usage, "Usage: minikube node stop [name]")
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ var podmanEnvCmd = &cobra.Command{
|
|||
Use: "podman-env",
|
||||
Short: "Configure environment to use minikube's Podman service",
|
||||
Long: `Sets up podman env variables; similar to '$(podman-machine env)'.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
sh := shell.EnvConfig{
|
||||
Shell: shell.ForceShell,
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ var RootCmd = &cobra.Command{
|
|||
Use: "minikube",
|
||||
Short: "minikube quickly sets up a local Kubernetes cluster",
|
||||
Long: `minikube provisions and manages local Kubernetes clusters optimized for development workflows.`,
|
||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
PersistentPreRun: func(_ *cobra.Command, _ []string) {
|
||||
for _, path := range dirs {
|
||||
if err := os.MkdirAll(path, 0777); err != nil {
|
||||
exit.Error(reason.HostHomeMkdir, "Error creating minikube directory", err)
|
||||
|
@ -86,7 +86,7 @@ var RootCmd = &cobra.Command{
|
|||
os.Setenv(constants.MinikubeRootlessEnv, "true")
|
||||
}
|
||||
},
|
||||
PersistentPostRun: func(cmd *cobra.Command, args []string) {
|
||||
PersistentPostRun: func(_ *cobra.Command, _ []string) {
|
||||
if err := audit.LogCommandEnd(auditID); err != nil {
|
||||
klog.Warningf("failed to log command end to audit: %v", err)
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ var serviceCmd = &cobra.Command{
|
|||
|
||||
RootCmd.PersistentPreRun(cmd, args)
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
if len(args) == 0 && !all || (len(args) > 0 && all) {
|
||||
exit.Message(reason.Usage, "You must specify service name(s) or --all")
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ var serviceListCmd = &cobra.Command{
|
|||
Use: "list [flags]",
|
||||
Short: "Lists the URLs for the services in your local cluster",
|
||||
Long: `Lists the URLs for the services in your local cluster`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
co := mustload.Healthy(ClusterFlagValue())
|
||||
output := strings.ToLower(profileOutput)
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ var sshHostCmd = &cobra.Command{
|
|||
Use: "ssh-host",
|
||||
Short: "Retrieve the ssh host key of the specified node",
|
||||
Long: "Retrieve the ssh host key of the specified node.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
appendKnownHelper(nodeName, appendKnown)
|
||||
},
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ var sshKeyCmd = &cobra.Command{
|
|||
Use: "ssh-key",
|
||||
Short: "Retrieve the ssh identity key path of the specified node",
|
||||
Long: "Retrieve the ssh identity key path of the specified node, and writes it to STDOUT.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
_, cc := mustload.Partial(ClusterFlagValue())
|
||||
n, _, err := node.Retrieve(*cc, nodeName)
|
||||
if err != nil {
|
||||
|
|
|
@ -38,7 +38,7 @@ var sshCmd = &cobra.Command{
|
|||
Use: "ssh",
|
||||
Short: "Log into the minikube environment (for debugging)",
|
||||
Long: "Log into or run a command on a machine with SSH; similar to 'docker-machine ssh'.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
cname := ClusterFlagValue()
|
||||
co := mustload.Running(cname)
|
||||
if co.CP.Host.DriverName == driver.None {
|
||||
|
|
|
@ -31,6 +31,7 @@ import (
|
|||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Delta456/box-cli-maker/v2"
|
||||
"github.com/blang/semver/v4"
|
||||
|
@ -1247,7 +1248,7 @@ func validateCPUCount(drvName string) {
|
|||
}
|
||||
|
||||
// validateFlags validates the supplied flags against known bad combinations
|
||||
func validateFlags(cmd *cobra.Command, drvName string) {
|
||||
func validateFlags(cmd *cobra.Command, drvName string) { //nolint:gocyclo
|
||||
if cmd.Flags().Changed(humanReadableDiskSize) {
|
||||
err := validateDiskSize(viper.GetString(humanReadableDiskSize))
|
||||
if err != nil {
|
||||
|
@ -1314,6 +1315,12 @@ func validateFlags(cmd *cobra.Command, drvName string) {
|
|||
}
|
||||
}
|
||||
|
||||
if cmd.Flags().Changed(autoPauseInterval) {
|
||||
if err := validateAutoPauseInterval(viper.GetDuration(autoPauseInterval)); err != nil {
|
||||
exit.Message(reason.Usage, "{{.err}}", out.V{"err": err})
|
||||
}
|
||||
}
|
||||
|
||||
if driver.IsSSH(drvName) {
|
||||
sshIPAddress := viper.GetString(sshIPAddress)
|
||||
if sshIPAddress == "" {
|
||||
|
@ -1475,6 +1482,13 @@ func validateGPUsArch() error {
|
|||
return errors.Errorf("The GPUs flag is only supported on amd64, arm64 & ppc64le, currently using %s", runtime.GOARCH)
|
||||
}
|
||||
|
||||
func validateAutoPauseInterval(interval time.Duration) error {
|
||||
if interval != interval.Abs() || interval.String() == "0s" {
|
||||
return errors.New("auto-pause-interval must be greater than 0s")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func getContainerRuntime(old *config.ClusterConfig) string {
|
||||
paramRuntime := viper.GetString(containerRuntime)
|
||||
|
||||
|
|
|
@ -143,6 +143,7 @@ const (
|
|||
socketVMnetPath = "socket-vmnet-path"
|
||||
staticIP = "static-ip"
|
||||
gpus = "gpus"
|
||||
autoPauseInterval = "auto-pause-interval"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -206,6 +207,7 @@ func initMinikubeFlags() {
|
|||
startCmd.Flags().Bool(disableMetrics, false, "If set, disables metrics reporting (CPU and memory usage), this can improve CPU usage. Defaults to false.")
|
||||
startCmd.Flags().String(staticIP, "", "Set a static IP for the minikube cluster, the IP must be: private, IPv4, and the last octet must be between 2 and 254, for example 192.168.200.200 (Docker and Podman drivers only)")
|
||||
startCmd.Flags().StringP(gpus, "g", "", "Allow pods to use your NVIDIA GPUs. Options include: [all,nvidia] (Docker driver with Docker container-runtime only)")
|
||||
startCmd.Flags().Duration(autoPauseInterval, time.Minute*1, "Duration of inactivity before the minikube VM is paused (default 1m0s)")
|
||||
}
|
||||
|
||||
// initKubernetesFlags inits the commandline flags for Kubernetes related options
|
||||
|
@ -604,6 +606,7 @@ func generateNewConfigFromFlags(cmd *cobra.Command, k8sVersion string, rtime str
|
|||
},
|
||||
MultiNodeRequested: viper.GetInt(nodes) > 1 || viper.GetBool(ha),
|
||||
GPUs: viper.GetString(gpus),
|
||||
AutoPauseInterval: viper.GetDuration(autoPauseInterval),
|
||||
}
|
||||
cc.VerifyComponents = interpretWaitFlag(*cmd)
|
||||
if viper.GetBool(createMount) && driver.IsKIC(drvName) {
|
||||
|
@ -833,6 +836,7 @@ func updateExistingConfigFromFlags(cmd *cobra.Command, existing *config.ClusterC
|
|||
updateStringFromFlag(cmd, &cc.CustomQemuFirmwarePath, qemuFirmwarePath)
|
||||
updateStringFromFlag(cmd, &cc.SocketVMnetClientPath, socketVMnetClientPath)
|
||||
updateStringFromFlag(cmd, &cc.SocketVMnetPath, socketVMnetPath)
|
||||
updateDurationFromFlag(cmd, &cc.AutoPauseInterval, autoPauseInterval)
|
||||
|
||||
if cmd.Flags().Changed(kubernetesVersion) {
|
||||
kubeVer, err := getKubernetesVersion(existing)
|
||||
|
|
|
@ -20,6 +20,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/blang/semver/v4"
|
||||
"github.com/spf13/cobra"
|
||||
|
@ -116,9 +117,7 @@ func TestGetKubernetesVersion(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
var checkRepoMock = func(v semver.Version, repo string) error {
|
||||
return nil
|
||||
}
|
||||
var checkRepoMock = func(_ semver.Version, _ string) error { return nil }
|
||||
|
||||
func TestMirrorCountry(t *testing.T) {
|
||||
// Set default disk size value in lieu of flag init
|
||||
|
@ -888,3 +887,29 @@ func TestValidateGPUs(t *testing.T) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestValidateAutoPause(t *testing.T) {
|
||||
tests := []struct {
|
||||
interval string
|
||||
shouldError bool
|
||||
}{
|
||||
{"1m0s", false},
|
||||
{"5m", false},
|
||||
{"1s", false},
|
||||
{"0s", true},
|
||||
{"-2m", true},
|
||||
}
|
||||
for _, tc := range tests {
|
||||
input, err := time.ParseDuration(tc.interval)
|
||||
if err != nil {
|
||||
t.Fatalf("test has an invalid input duration of %q", tc.interval)
|
||||
}
|
||||
err = validateAutoPauseInterval(input)
|
||||
if err != nil && !tc.shouldError {
|
||||
t.Errorf("interval of %q failed validation; expected it to pass: %v", input, err)
|
||||
}
|
||||
if err == nil && tc.shouldError {
|
||||
t.Errorf("interval of %q passed validataion; expected it to fail: %v", input, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -213,7 +213,7 @@ var statusCmd = &cobra.Command{
|
|||
Long: `Gets the status of a local Kubernetes cluster.
|
||||
Exit status contains the status of minikube's VM, cluster and Kubernetes encoded on it's bits in this order from right to left.
|
||||
Eg: 7 meaning: 1 (for minikube NOK) + 2 (for cluster NOK) + 4 (for Kubernetes NOK)`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
output = strings.ToLower(output)
|
||||
if output != "text" && statusFormat != defaultStatusFormat {
|
||||
exit.Message(reason.Usage, "Cannot use both --output and --format options")
|
||||
|
|
|
@ -56,7 +56,7 @@ var tunnelCmd = &cobra.Command{
|
|||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||
RootCmd.PersistentPreRun(cmd, args)
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
manager := tunnel.NewManager()
|
||||
cname := ClusterFlagValue()
|
||||
co := mustload.Healthy(cname)
|
||||
|
|
|
@ -42,7 +42,7 @@ var unpauseCmd = &cobra.Command{
|
|||
Use: "unpause",
|
||||
Aliases: []string{"resume"},
|
||||
Short: "unpause Kubernetes",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
cname := ClusterFlagValue()
|
||||
register.SetEventLogPath(localpath.EventLog(cname))
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue