Skip to content

Commit

Permalink
Merge branch 'kubernetes:master' into patch-apparmor
Browse files Browse the repository at this point in the history
  • Loading branch information
nnzv committed May 23, 2024
2 parents 16527f5 + 8e5496e commit 0a9728b
Show file tree
Hide file tree
Showing 19 changed files with 9,851 additions and 30 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/update-volcano-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "update-volcano-version"
on:
workflow_dispatch:
schedule:
# every Monday at around 3 am pacific/10 am UTC
- cron: "0 10 * * 1"
env:
GOPROXY: https://proxy.golang.org
GO_VERSION: '1.22.1'
permissions:
contents: read

jobs:
bump-volcano-version:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump volcano version
id: bumpVolcano
run: |
echo "OLD_VERSION=$(DEP=volcano make get-dependency-version)" >> "$GITHUB_OUTPUT"
make update-volcano-version
echo "NEW_VERSION=$(DEP=volcano make get-dependency-version)" >> "$GITHUB_OUTPUT"
# The following is to support multiline with GITHUB_OUTPUT, see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
echo "changes<<EOF" >> "$GITHUB_OUTPUT"
echo "$(git status --porcelain)" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- name: Create PR
if: ${{ steps.bumpVolcano.outputs.changes != '' }}
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e
with:
token: ${{ secrets.MINIKUBE_BOT_PAT }}
commit-message: 'Addon Volcano: Update volcano images from ${{ steps.bumpVolcano.outputs.OLD_VERSION }} to ${{ steps.bumpVolcano.outputs.NEW_VERSION }}'
committer: minikube-bot <minikube-bot@google.com>
author: minikube-bot <minikube-bot@google.com>
branch: auto_bump_volcano_version
push-to-fork: minikube-bot/minikube
base: master
delete-branch: true
title: 'Addon Volcano: Update volcano images from ${{ steps.bumpVolcano.outputs.OLD_VERSION }} to ${{ steps.bumpVolcano.outputs.NEW_VERSION }}'
labels: ok-to-test
body: |
The [Volcano](https://github.com/volcano-sh/volcano) project made a new release
This PR was auto-generated by `make update-volcano-version` using [update-volcano-version.yml](https://github.com/kubernetes/minikube/tree/master/.github/workflows/update-volcano-version.yml) CI Workflow.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,11 @@ update-registry-version:
(cd hack/update/registry_version && \
go run update_registry_version.go)

.PHONY: update-volcano-version
update-volcano-version:
(cd hack/update/volcano_version && \
go run update_volcano_version.go)

.PHONY: update-kong-version
update-kong-version:
(cd hack/update/kong_version && \
Expand Down
4 changes: 4 additions & 0 deletions deploy/addons/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ var (
//go:embed gcp-auth/*.tmpl gcp-auth/*.yaml
GcpAuthAssets embed.FS

// Volcano assets for volcano addon
//go:embed volcano/*.tmpl
VolcanoAssets embed.FS

// VolumeSnapshotsAssets assets for volumesnapshots addon
//go:embed volumesnapshots/*.tmpl volumesnapshots/*.yaml
VolumeSnapshotsAssets embed.FS
Expand Down
Loading

0 comments on commit 0a9728b

Please sign in to comment.