Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Updated to v2.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Sep 9, 2020
1 parent 931b8b5 commit 6c9f32a
Show file tree
Hide file tree
Showing 1,079 changed files with 303,800 additions and 182,481 deletions.
36 changes: 30 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ VERSION := v2.10.1

.PHONY: build
build:
find . -mindepth 1 -maxdepth 1 -not -name Makefile -not -name .git -exec rm -Rf {} ';'
find . -mindepth 1 -maxdepth 1 -not -name Makefile -not -name .git -not -name .gitignore -exec rm -Rf {} ';'
curl https://raw.githubusercontent.com/argoproj/argo/$(VERSION)/api/openapi-spec/swagger.json | sed 's/io.argoproj.workflow.v1alpha1.//' | sed 's/io.k8s.api.core.v1.//' | sed 's/io.k8s.apimachinery.pkg.apis.meta.v1.//' > swagger.json
docker run --rm -v `pwd`:/wd openapitools/openapi-generator-cli:v4.3.1 \
generate \
-i https://raw.githubusercontent.com/argoproj/argo/$(VERSION)/api/openapi-spec/swagger.json \
-i /wd/swagger.json \
-g java \
-o /wd \
-p hideGenerationTimestamp=true \
Expand All @@ -16,11 +17,34 @@ build:
--group-id io.argoproj.workflow \
--artifact-id argo-client-java \
--artifact-version $(VERSION) \
--generate-alias-as-model \
--model-name-prefix=''

--import-mappings Time=org.joda.time.DateTime \
--import-mappings Affinity=io.kubernetes.client.models.V1Affinity \
--import-mappings ConfigMapKeySelector=io.kubernetes.client.models.V1ConfigMapKeySelector \
--import-mappings Container=io.kubernetes.client.models.V1Container \
--import-mappings ContainerPort=io.kubernetes.client.models.V1ContainerPort \
--import-mappings EnvFromSource=io.kubernetes.client.models.V1EnvFromSource \
--import-mappings EnvVar=io.kubernetes.client.models.V1EnvVar \
--import-mappings HostAlias=io.kubernetes.client.models.V1HostAlias \
--import-mappings Lifecycle=io.kubernetes.client.models.V1Lifecycle \
--import-mappings ListMeta=io.kubernetes.client.models.V1ListMeta \
--import-mappings LocalObjectReference=io.kubernetes.client.models.V1LocalObjectReference \
--import-mappings ObjectMeta=io.kubernetes.client.models.V1ObjectMeta \
--import-mappings ObjectReference=io.kubernetes.client.models.V1ObjectReference \
--import-mappings PersistentVolumeClaim=io.kubernetes.client.models.V1PersistentVolumeClaim \
--import-mappings PodDisruptionBudgetSpec=io.kubernetes.client.models.V1beta1PodDisruptionBudgetSpec \
--import-mappings PodDNSConfig=io.kubernetes.client.models.V1PodDNSConfig \
--import-mappings PodSecurityContext=io.kubernetes.client.models.V1PodSecurityContext \
--import-mappings Probe=io.kubernetes.client.models.V1Probe \
--import-mappings ResourceRequirements=io.kubernetes.client.models.V1ResourceRequirements \
--import-mappings SecretKeySelector=io.kubernetes.client.models.V1SecretKeySelector \
--import-mappings SecurityContext=io.kubernetes.client.models.V1SecurityContext \
--import-mappings Toleration=io.kubernetes.client.models.V1Toleration \
--import-mappings Volume=io.kubernetes.client.models.V1Volume \
--import-mappings VolumeDevice=io.kubernetes.client.models.V1VolumeDevice \
--import-mappings VolumeMount=io.kubernetes.client.models.V1VolumeMount \
--generate-alias-as-model
# add the io.kubernetes:java-client to the deps
# sed 's/<dependencies>/<dependencies><dependency><groupId>io.kubernetes<\/groupId><artifactId>client-java<\/artifactId><version>5.0.0<\/version><\/dependency>/g' pom.xml > tmp && mv tmp pom.xml
sed 's/<dependencies>/<dependencies><dependency><groupId>io.kubernetes<\/groupId><artifactId>client-java<\/artifactId><version>5.0.0<\/version><\/dependency>/g' pom.xml > tmp && mv tmp pom.xml
mvn install -DskipTests -Dmaven.javadoc.skip
git add .
git commit -m 'Updated to $(VERSION)' || git diff --exit-code
Expand Down
351 changes: 164 additions & 187 deletions README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 6c9f32a

Please sign in to comment.