forked from kubernetes-sigs/karpenter
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: support llmaz model #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e62bac3
chore: Ensure we can stand up multiple partitions with kwok (#2283)
jonathan-innis cd91e72
chore: Inject resources into Kwok through a patch (#2285)
jonathan-innis 5ceb635
chore: Update NodeClaim E2E test to only replace one status condition…
engedaam 1b5c30b
chore: Avoid validating admission policy for clusters older then 1.30…
engedaam 2b898ee
chore(deps): bump the go-deps group with 2 updates (#2295)
dependabot[bot] a84b3a9
chore: bump go version to 1.24.4 (#2298)
DerekFrank 90a963d
chore: Only log that the command succeeded when it actually did (#2302)
jonathan-innis 35a21fb
fix: Fix bug with MarkForDeletion before creating replacements (#2300)
jonathan-innis 6eb3133
perf: Refactor the eviction queue to be multithreaded (#2252)
DerekFrank 07edafd
docs: Add Bizfly Cloud provider (#2303)
lmq1999 9345ae5
feat: support llmaz model
carlory 044de75
feat: add ci support
carlory File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,100 @@ | ||
| name: Build and Push AWS Karpenter Provider Image | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
| - release-* | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| env: | ||
| KO_DOCKER_REPO: docker.io/inftyai/karpenter-provider-aws | ||
|
|
||
| steps: | ||
| - name: Checkout forked karpenter | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go 1.24 | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: "1.24" | ||
|
|
||
| - name: Generate commit info and image tag | ||
| id: tag | ||
| run: | | ||
| BRANCH="${GITHUB_REF##*/}" | ||
| COMMIT=$(git rev-parse HEAD) | ||
| TIMESTAMP=$(git show -s --format=%ct "$COMMIT") | ||
| VERSION_DATE=$(date -u -d "@$TIMESTAMP" +'%Y%m%d%H%M%S') | ||
| PSEUDO_VERSION="v0.0.0-${VERSION_DATE}-${COMMIT:0:12}" | ||
|
|
||
| if [[ "$BRANCH" == "main" ]]; then | ||
| TAG="latest" | ||
| IMAGE_TAG="latest" | ||
| elif [[ "$BRANCH" == release-* ]]; then | ||
| TAG="${BRANCH#release-}" # e.g. v0.36.2 | ||
| IMAGE_TAG="${TAG#v}" # e.g. 0.36.2 | ||
| else | ||
| TAG="fork-${PSEUDO_VERSION}" | ||
| IMAGE_TAG="${TAG}" # keep full tag | ||
| fi | ||
|
|
||
| { | ||
| echo "commit=$COMMIT" | ||
| echo "version=$PSEUDO_VERSION" | ||
| echo "tag=$TAG" | ||
| echo "image_tag=$IMAGE_TAG" | ||
| } >> "$GITHUB_OUTPUT" | ||
| echo "✅ Using image tag: $IMAGE_TAG" | ||
|
|
||
| - name: Clone karpenter-provider-aws | ||
| run: | | ||
| git clone https://github.com/aws/karpenter-provider-aws.git | ||
| cd karpenter-provider-aws | ||
|
|
||
| TAG="${{ steps.tag.outputs.tag }}" | ||
| if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
| echo "🔄 Attempting to checkout provider tag: $TAG" | ||
| if git rev-parse "refs/tags/$TAG" >/dev/null 2>&1; then | ||
| git checkout "tags/$TAG" -b "build-from-tag-$TAG" | ||
| else | ||
| echo "❌ Tag '$TAG' not found in karpenter-provider-aws repo." | ||
| exit 1 | ||
| fi | ||
| else | ||
| echo "🔄 Checking out provider branch: main" | ||
| git checkout main | ||
| fi | ||
|
|
||
| - name: Replace karpenter module with forked commit version | ||
| run: | | ||
| cd karpenter-provider-aws | ||
| go mod edit -replace sigs.k8s.io/karpenter=github.com/InftyAI/karpenter@${{ steps.tag.outputs.version }} | ||
| go mod tidy | ||
|
|
||
| - name: Install build tools via make toolchain | ||
| run: | | ||
| cd karpenter-provider-aws | ||
| make toolchain | ||
|
|
||
| - name: Login to DockerHub | ||
| uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Build and push image using ko | ||
| run: | | ||
| cd karpenter-provider-aws | ||
| ko build --bare \ | ||
| --tags ${{ steps.tag.outputs.image_tag }} \ | ||
| github.com/aws/karpenter-provider-aws/cmd/controller | ||
|
|
||
| - name: Show pushed image | ||
| run: | | ||
| echo "✅ Image pushed to:" | ||
| echo "${{ env.KO_DOCKER_REPO }}:${{ steps.tag.outputs.image_tag }}" | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The secrets are added.