generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
174b5a4
commit ed95162
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
on: | ||
release: | ||
types: [released] | ||
jobs: | ||
krew-release: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Update new version in krew-index | ||
uses: rajatjindal/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,5 @@ go.work | |
|
||
# Directory with CRDs for dependencies | ||
dep-crds | ||
|
||
kjob.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: kjob | ||
spec: | ||
version: {{ .TagName }} | ||
shortDescription: Run AI/ML jobs based on the pre-defined templates | ||
homepage: https://github.com/kubernetes-sigs/kjob/ | ||
description: | | ||
This kubectl plugin allows ML researchers to run templated Jobs with different values | ||
for the application-specific parameters, without the need to edit and submit entire | ||
YAML files. The tool comes with built-in support for running slurm scripts inside | ||
a Kubernetes cluster. | ||
platforms: | ||
- selector: | ||
matchLabels: | ||
os: "linux" | ||
arch: "amd64" | ||
{{addURIAndSha "https://github.com/kubernetes-sigs/kjob/releases/download/{{ .TagName }}/kubectl-kjob-linux-amd64.tar.gz" .TagName }} | ||
bin: "kubectl-kjob" | ||
- selector: | ||
matchLabels: | ||
os: "linux" | ||
arch: "arm64" | ||
{{addURIAndSha "https://github.com/kubernetes-sigs/kjob/releases/download/{{ .TagName }}/kubectl-kjob-linux-arm64.tar.gz" .TagName }} | ||
bin: "kubectl-kjob" | ||
- selector: | ||
matchLabels: | ||
os: "darwin" | ||
arch: "amd64" | ||
{{addURIAndSha "https://github.com/kubernetes-sigs/kjob/releases/download/{{ .TagName }}/kubectl-kjob-darwin-amd64.tar.gz" .TagName }} | ||
bin: "kubectl-kjob" | ||
- selector: | ||
matchLabels: | ||
os: "darwin" | ||
arch: "arm64" | ||
{{addURIAndSha "https://github.com/kubernetes-sigs/kjob/releases/download/{{ .TagName }}/kubectl-kjob-darwin-arm64.tar.gz" .TagName }} | ||
bin: "kubectl-kjob" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2025 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
# Resolve the absolute path of the directory containing the script | ||
SCRIPT_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")") | ||
REPO_ROOT="$SCRIPT_DIR/.." | ||
|
||
docker run --rm -v "$REPO_ROOT":/home/app ghcr.io/rajatjindal/krew-release-bot:v0.0.46 krew-release-bot template --tag "$1" --template-file .krew.yaml > "$REPO_ROOT"/kjob.yaml |