Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
26c71d9
gh-action: upload snapshot as post-commit job
yue9944882 Dec 22, 2021
f6efd90
removing release-xxx branch build from snapshot job
yue9944882 Dec 23, 2021
441e112
Return a default APIClient if we run into an exception
Nov 1, 2021
e65e943
Merge pull request #2043 from ryanjbaxter/cherry-pick-defaultApiClien…
k8s-ci-robot Dec 23, 2021
200768a
Merge pull request #2040 from yue9944882/chore/snapshot-build
k8s-ci-robot Dec 23, 2021
482b2b7
Fix arrayIndexOutOfBounds exception for overloaded addModelMap method
yaohui-wyh Dec 24, 2021
a37d8a6
Bump swagger-annotations from 1.6.3 to 1.6.4
dependabot[bot] Dec 24, 2021
305911e
Bump logback-classic from 1.2.9 to 1.2.10
dependabot[bot] Dec 24, 2021
9031064
keep 3 latest examples and skip deploy
yue9944882 Dec 24, 2021
f1de629
Merge pull request #2048 from kubernetes-client/dependabot/maven/io.s…
k8s-ci-robot Dec 24, 2021
d03c36a
Merge pull request #2049 from kubernetes-client/dependabot/maven/ch.q…
k8s-ci-robot Dec 24, 2021
621e23d
Merge pull request #2046 from yaohui-wyh/master
k8s-ci-robot Dec 24, 2021
9f64f4d
fixes snapshot job password name
yue9944882 Dec 24, 2021
7832e98
shifting example ci job to 13,14,15
yue9944882 Dec 24, 2021
97720bf
Bump system-lambda from 1.2.0 to 1.2.1
dependabot[bot] Dec 28, 2021
c102fb1
Merge pull request #2052 from kubernetes-client/dependabot/maven/com.…
k8s-ci-robot Dec 28, 2021
87453f6
Merge pull request #2050 from yue9944882/release-snapshot-job-pt2
k8s-ci-robot Dec 29, 2021
8d3f32f
Merge pull request #2051 from yue9944882/chore/prune-example
k8s-ci-robot Dec 29, 2021
c1375a7
fixes snapshot job pt3
yue9944882 Dec 29, 2021
830bd51
defensively assert snapshot version
yue9944882 Dec 29, 2021
0c5d91d
Merge pull request #2054 from yue9944882/snapshot-job-pt3
k8s-ci-robot Jan 2, 2022
92d4ff2
Bump assertj-core from 3.21.0 to 3.22.0
dependabot[bot] Jan 4, 2022
24f14bc
Merge pull request #2058 from kubernetes-client/dependabot/maven/org.…
k8s-ci-robot Jan 4, 2022
3693326
adding a release job receiving manual input
yue9944882 Dec 31, 2021
1fa9fd5
Merge pull request #2057 from yue9944882/gh-action-release-job
k8s-ci-robot Jan 5, 2022
75f9dda
Bump protobuf-java from 3.19.1 to 3.19.2
dependabot[bot] Jan 6, 2022
6e00c73
Merge pull request #2061 from kubernetes-client/dependabot/maven/com.…
k8s-ci-robot Jan 6, 2022
2a2ce08
Bump maven-bundle-plugin from 5.1.3 to 5.1.4
dependabot[bot] Jan 7, 2022
fbfb22b
send pr instead of direct push
yue9944882 Jan 7, 2022
8b9df01
Merge pull request #2068 from kubernetes-client/dependabot/maven/org.…
k8s-ci-robot Jan 7, 2022
e30312b
Merge pull request #2070 from yue9944882/release-job-submit-pr
k8s-ci-robot Jan 7, 2022
0f46d8b
Bump build-helper-maven-plugin from 3.2.0 to 3.3.0
dependabot[bot] Jan 10, 2022
19a6345
Bump maven-jar-plugin from 3.2.0 to 3.2.1
dependabot[bot] Jan 10, 2022
eca55f0
Merge pull request #2072 from kubernetes-client/dependabot/maven/org.…
k8s-ci-robot Jan 10, 2022
e2f2ef2
Merge pull request #2073 from kubernetes-client/dependabot/maven/org.…
k8s-ci-robot Jan 10, 2022
cefff96
fixes java 16 compatibility
yue9944882 Jan 10, 2022
b730016
Merge pull request #2078 from yue9944882/fix-java-16-compatibility-util
k8s-ci-robot Jan 10, 2022
6773f74
Improve descriptions a little bit with examples.
brendandburns Jan 10, 2022
55af3f9
Bump maven-compiler-plugin from 3.8.1 to 3.9.0
dependabot[bot] Jan 13, 2022
1435dcc
Merge pull request #2088 from kubernetes-client/dependabot/maven/org.…
k8s-ci-robot Jan 13, 2022
00add0d
Bump spotless-maven-plugin from 2.17.2 to 2.20.0
dependabot[bot] Jan 14, 2022
911db59
chore: clarify platform os on github action build
yue9944882 Jan 15, 2022
918a3c0
flakiness: fixes attach test failure by applying a longer delay
yue9944882 Jan 17, 2022
d8175c3
bump okhttp to 4.9.2
yue9944882 Jan 17, 2022
68eacf4
Merge pull request #2098 from yue9944882/flake/attach-stream-close
k8s-ci-robot Jan 18, 2022
8915652
Merge pull request #2096 from yue9944882/chore/clarify-platform-os
k8s-ci-robot Jan 18, 2022
87010d4
Merge pull request #2099 from yue9944882/bump/okhttp-4.9.2
k8s-ci-robot Jan 18, 2022
e35a6b1
Bump spring-test from 5.3.14 to 5.3.15
dependabot[bot] Jan 18, 2022
2530f4c
Bump slf4j.version from 1.7.32 to 1.7.33
dependabot[bot] Jan 18, 2022
1ef88ba
Bump maven-jar-plugin from 3.2.1 to 3.2.2
dependabot[bot] Jan 18, 2022
4fa04cd
Bump protobuf-java from 3.19.2 to 3.19.3
dependabot[bot] Jan 18, 2022
da9314a
Merge pull request #2094 from kubernetes-client/dependabot/maven/org.…
k8s-ci-robot Jan 18, 2022
b02aa85
Merge pull request #2093 from kubernetes-client/dependabot/maven/slf4…
k8s-ci-robot Jan 18, 2022
e977f4f
Merge pull request #2087 from kubernetes-client/dependabot/maven/org.…
k8s-ci-robot Jan 18, 2022
09e5b91
Merge pull request #2083 from kubernetes-client/dependabot/maven/com.…
k8s-ci-robot Jan 18, 2022
cd519e5
re-run mvn spotless:apply
yue9944882 Jan 18, 2022
7401c10
Merge pull request #2092 from kubernetes-client/dependabot/maven/com.…
k8s-ci-robot Jan 18, 2022
3372ec5
Merge pull request #2080 from brendandburns/release-action
k8s-ci-robot Jan 20, 2022
2d6d66e
Bump spring.boot.version from 2.6.2 to 2.6.3
dependabot[bot] Jan 21, 2022
787dd48
Merge pull request #2100 from kubernetes-client/dependabot/maven/spri…
k8s-ci-robot Jan 22, 2022
12957f8
Fix OWNERS file : reviewer to reviewers
Garima-Negi Jan 23, 2022
230dce6
Bump google-auth-library-oauth2-http from 1.3.0 to 1.4.0
dependabot[bot] Jan 24, 2022
55ae03b
Merge pull request #2104 from kubernetes-client/dependabot/maven/com.…
k8s-ci-robot Jan 25, 2022
c68e136
Merge pull request #2103 from Garima-Negi/fix-OWNERS-file
k8s-ci-robot Jan 26, 2022
cfb7216
Bump slf4j.version from 1.7.33 to 1.7.35
dependabot[bot] Jan 26, 2022
c5499bb
Bump mockito-core from 4.2.0 to 4.3.1
dependabot[bot] Jan 26, 2022
2ffe929
Merge pull request #2108 from kubernetes-client/dependabot/maven/slf4…
k8s-ci-robot Jan 26, 2022
ae3bb03
Merge pull request #2109 from kubernetes-client/dependabot/maven/org.…
k8s-ci-robot Jan 26, 2022
c4b82ce
Add renovate.json
renovate-bot Jan 26, 2022
c1b0d85
Merge pull request #1 from MaronHatoum/renovate/configure
MaronHatoum Jan 26, 2022
a07e664
Update DeLaGuardo/setup-graalvm commit hash to 2ebaf4e
renovate-bot Jan 26, 2022
2c57805
Update okhttp3.version to v4.9.3
renovate-bot Jan 26, 2022
995d727
Update renovate.json
MaronHatoum Jan 26, 2022
43c6cc8
Merge pull request #2 from MaronHatoum/renovate/delaguardo-setup-graa…
MaronHatoum Apr 25, 2022
4208d4d
Merge pull request #3 from MaronHatoum/renovate/okhttp3.version
MaronHatoum Apr 25, 2022
f40e171
Updated elgohr/Publish-Docker-Github-Action to a supported version (v5)
elgohr Mar 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions 18 .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Verify Format and License
run: mvn spotless:check
build:
name: Java ${{ matrix.java }} Maven Test
name: Java ${{ matrix.java }} Maven Test on ${{ matrix.os }}
strategy:
matrix:
# Test against the LTS Java versions. TODO: add JDK18 when it becomes available.
Expand All @@ -50,7 +50,7 @@ jobs:
name: GraalVM Maven Test
steps:
- uses: actions/checkout@v2.4.0
- uses: DeLaGuardo/setup-graalvm@48f2bf339ab7d35e31029b1822a213681fdfc42e
- uses: DeLaGuardo/setup-graalvm@2ebaf4e808f403090cbecb79873354da5dbd7e09
with:
graalvm-version: '19.3.0.java8'
- name: Build with Maven
Expand Down Expand Up @@ -106,17 +106,17 @@ jobs:
mvn clean install \
-q \
-Dmaven.test.skip=true
- name: Version 10
- name: Version 13
run: |
cd examples/examples-release-10
cd examples/examples-release-13
mvn clean install
- name: Version 11
- name: Version 14
run: |
cd examples/examples-release-11
cd examples/examples-release-14
mvn clean install
- name: Version 12
- name: Version 15
run: |
cd examples/examples-release-12
cd examples/examples-release-15
mvn clean install
codegen:
runs-on: ubuntu-latest
Expand All @@ -129,7 +129,7 @@ jobs:
steps:
- uses: actions/checkout@v2.4.0
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: kubernetes-client/java/crd-model-gen
tags: gh-action-tmp
Expand Down
93 changes: 93 additions & 0 deletions 93 .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Maven Release

on:
workflow_dispatch:
inputs:
releaseVersion:
type: string
required: true
description: The POM release version of this release. Must be a semantic version of the form X.Y.Z.
nextDevelopmentVersion:
type: string
required: true
description: The next POM development version after the release is done. Must be of the form X.Y.${Z+1}-SNAPSHOT
dry-run:
type: boolean
required: true
description: Dry run, will not push branches or upload the artifacts.

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Validate Input
run: |
echo "${{ github.ref_type }}" | perl -ne 'die unless m/^branch$/'
echo "${{ github.ref_name }}" | perl -ne 'die unless m/^release-\d+$/'
echo "${{ github.event.inputs.releaseVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+$/'
echo "${{ github.event.inputs.nextDevelopmentVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+-SNAPSHOT$/'
- name: Checkout
uses: actions/checkout@v2
- name: Check Actor
run: |
# Release actor should be in the OWNER list
cat OWNERS | grep ${{ github.actor }}
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 8.0.x
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_TOKEN
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Prepare
run: |
export GPG_TTY=$(tty)
(echo 5; echo y; echo save) | gpg --command-fd 0 --no-tty --pinentry-mode loopback --passphrase ${{ secrets.GPG_PASSWORD }} --no-greeting --edit-key 'Kubernetes Client Publishers' trust
(echo 0; echo y; echo save) | gpg --command-fd 0 --no-tty --pinentry-mode loopback --passphrase ${{ secrets.GPG_PASSWORD }} --no-greeting --edit-key 'Kubernetes Client Publishers' expire
git config user.email "k8s.ci.robot@gmail.com"
git config user.name "Kubernetes Prow Robot"
- name: Check Current Version
run: |
mvn -q \
-Dexec.executable=echo \
-Dexec.args='${project.version}' \
--non-recursive \
exec:exec | perl -ne 'die unless m/${{ github.event.inputs.releaseVersion }}-SNAPSHOT/'
- name: Release Prepare
run: |
git checkout -b 'automated-release-${{ github.event.inputs.releaseVersion }}'
mvn --batch-mode \
release:prepare \
-Dtag=v${{ github.event.inputs.releaseVersion }} \
-DconnectionUrl=https://${{ github.token }}@github.com/${{ github.repository }}.git \
-DreleaseVersion=${{ github.event.inputs.releaseVersion }} \
-DdevelopmentVersion=${{ github.event.inputs.nextDevelopmentVersion }} \
-DpushChanges=false
- name: Release Perform
if: ${{ github.event.inputs.dry-run != 'true' }}
env:
OSSRH_USERNAME: ${{ secrets.SNAPSHOT_UPLOAD_USER }}
OSSRH_TOKEN: ${{ secrets.SNAPSHOT_UPLOAD_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
run: |
# The tests are already executed in the prepare, skipping
mvn -DlocalCheckout=true -Darguments=-DskipTests release:perform
git push https://${{ github.token }}@github.com/${{ github.repository }}.git \
automated-release-${{ github.event.inputs.releaseVersion }}:automated-release-${{ github.event.inputs.releaseVersion }}
git push https://${{ github.token }}@github.com/${{ github.repository }}.git v${{ github.event.inputs.releaseVersion }}
- name: Pull Request
uses: repo-sync/pull-request@v2
with:
source_branch: automated-release-${{ github.event.inputs.releaseVersion }}
destination_branch: ${{ github.ref_name }}
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Automated Release: ${{ github.event.inputs.releaseVersion }}"
- name: Publish Release
if: ${{ github.event.inputs.dry-run != 'true' }}
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ github.event.inputs.releaseVersion }}
38 changes: 38 additions & 0 deletions 38 .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Upload Snapshot

on:
push:
branches:
- master
workflow_dispatch: {}

jobs:
verify:
name: latest-images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 8.0.x
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_TOKEN
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Assert Snapshot Version
run: |
./mvnw clean install -Dmaven.test.skip=true
./mvnw -q \
-Dexec.executable=echo \
-Dexec.args='${project.version}' \
exec:exec | perl -ne 'die unless m/.*-SNAPSHOT/'
- name: Publish to Apache Maven Central
run: ./mvnw deploy
env:
OSSRH_USERNAME: ${{ secrets.SNAPSHOT_UPLOAD_USER }}
OSSRH_TOKEN: ${{ secrets.SNAPSHOT_UPLOAD_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
2 changes: 1 addition & 1 deletion 2 OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
approvers:
- brendandburns
- yue9944882
reviewer:
reviewers:
- brendandburns
- yue9944882
emeritus_approvers:
Expand Down
1 change: 1 addition & 0 deletions 1 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Client Capabilities](https://img.shields.io/badge/Kubernetes%20client-Silver-blue.svg?style=flat&colorB=C0C0C0&colorA=306CE8)](http://bit.ly/kubernetes-client-capabilities-badge)
[![Client Support Level](https://img.shields.io/badge/kubernetes%20client-beta-green.svg?style=flat&colorA=306CE8)](http://bit.ly/kubernetes-client-support-badge)
[![Maven Central](https://img.shields.io/maven-central/v/io.kubernetes/client-java.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.kubernetes%22%20AND%20a:%22client-java%22)
![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/io.kubernetes/client-java?label=Maven%20Snapshot&server=https%3A%2F%2Foss.sonatype.org)

Java client for the [kubernetes](http://kubernetes.io/) API.

Expand Down
49 changes: 49 additions & 0 deletions 49 RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,55 @@ Releases are done on an as-needed basis, and this doc applies only to
This does _not_ describe the process of cherry-picking changes onto release
branches.

## Release via Github Action

Maintainers meet the following requirements will be able to perform automated
release to maven central via Github Action job named "Maven Release":

* Has "collaborator" permission or greater access (otherwise the can't run the
job manually).
* Should be in the OWNERS file.

### Steps

#### Make sure the release job runs on the release branch

When cutting the next major release, firstly we need to fork out a new release
branch named `release-<major>`. So the release job will execute the maven
release plugin and push generated releasing commits to the release branch
if the `release:prepare` process finishes successfully. Note that if we're
bumping a new patch version from an existing release branch, this step can be
omitted.

#### Filling release job input manually

The github action job will require three manual input:

* The POM releasing version, must be a valid semver `X.Y.Z` (without "v" prefix).
* The next development POM version, conventionally we should bump a patch
version from the current release version and add a `-SNAPSHOT` suffix. i.e.
`X.Y.(Z+1)-SNAPSHOT`.
* Dry-Run: Indicating whether the release job will push the generated release
commits to the release branch and actually upload the artifacts.

Filling the inputs, then click "Run" to start the job.

> Note that during the release process, no commits shall be added the release
> branch.

#### Release note, announcements

After the release job successfully finishes, we're supposed to see two generated
commits automatically added to the release branch:

1. Bump the previous development version to the target release version.
2. Bump the release version to the next development version.

And a git tag `vX.Y.Z` will also be pushed on the commit (1), a GITHUB release
will also be packed on the tag.

In the end, don't forget to clarify the release notes on the GITHUB release.

## One time setup

You will need to have the following in place:
Expand Down
2 changes: 1 addition & 1 deletion 2 client-java-contrib/admissionreview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.17.2</version>
<version>2.20.0</version>
<configuration>
<skip>true</skip>
</configuration>
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.