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

Upgrade io.kubernetes client version to v9.0 #14

Merged
merged 2 commits into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,33 @@ build:
--artifact-id argo-client-java \
--artifact-version $(VERSION) \
--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 \
--import-mappings Affinity=io.kubernetes.client.openapi.models.V1Affinity \
--import-mappings ConfigMapKeySelector=io.kubernetes.client.openapi.models.V1ConfigMapKeySelector \
--import-mappings Container=io.kubernetes.client.openapi.models.V1Container \
--import-mappings ContainerPort=io.kubernetes.client.openapi.models.V1ContainerPort \
--import-mappings EnvFromSource=io.kubernetes.client.openapi.models.V1EnvFromSource \
--import-mappings EnvVar=io.kubernetes.client.openapi.models.V1EnvVar \
--import-mappings HostAlias=io.kubernetes.client.openapi.models.V1HostAlias \
--import-mappings Lifecycle=io.kubernetes.client.openapi.models.V1Lifecycle \
--import-mappings ListMeta=io.kubernetes.client.openapi.models.V1ListMeta \
--import-mappings LocalObjectReference=io.kubernetes.client.openapi.models.V1LocalObjectReference \
--import-mappings ObjectMeta=io.kubernetes.client.openapi.models.V1ObjectMeta \
--import-mappings ObjectReference=io.kubernetes.client.openapi.models.V1ObjectReference \
--import-mappings PersistentVolumeClaim=io.kubernetes.client.openapi.models.V1PersistentVolumeClaim \
--import-mappings PodDisruptionBudgetSpec=io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec \
--import-mappings PodDNSConfig=io.kubernetes.client.openapi.models.V1PodDNSConfig \
--import-mappings PodSecurityContext=io.kubernetes.client.openapi.models.V1PodSecurityContext \
--import-mappings Probe=io.kubernetes.client.openapi.models.V1Probe \
--import-mappings ResourceRequirements=io.kubernetes.client.openapi.models.V1ResourceRequirements \
--import-mappings SecretKeySelector=io.kubernetes.client.openapi.models.V1SecretKeySelector \
--import-mappings SecurityContext=io.kubernetes.client.openapi.models.V1SecurityContext \
--import-mappings Toleration=io.kubernetes.client.openapi.models.V1Toleration \
--import-mappings Volume=io.kubernetes.client.openapi.models.V1Volume \
--import-mappings VolumeDevice=io.kubernetes.client.openapi.models.V1VolumeDevice \
--import-mappings VolumeMount=io.kubernetes.client.openapi.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>9.0.2<\/version><\/dependency>/g' pom.xml > tmp && mv tmp pom.xml
docker run -v ~/.m2:/root/.m2 -v `pwd`:/wd -w /wd maven:3-openjdk-8 \
mvn install -DskipTests -Dmaven.javadoc.skip
git add .
Expand Down
4 changes: 2 additions & 2 deletions docs/ArtifactoryArtifact.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ ArtifactoryArtifact is the location of an artifactory artifact

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**passwordSecret** | [**io.kubernetes.client.models.V1SecretKeySelector**](io.kubernetes.client.models.V1SecretKeySelector.md) | | [optional]
**passwordSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional]
**url** | **String** | URL of the artifact |
**usernameSecret** | [**io.kubernetes.client.models.V1SecretKeySelector**](io.kubernetes.client.models.V1SecretKeySelector.md) | | [optional]
**usernameSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional]



2 changes: 1 addition & 1 deletion docs/CSIVolumeSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**driver** | **String** | Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. |
**fsType** | **String** | Filesystem type to mount. Ex. \&quot;ext4\&quot;, \&quot;xfs\&quot;, \&quot;ntfs\&quot;. If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. | [optional]
**nodePublishSecretRef** | [**io.kubernetes.client.models.V1LocalObjectReference**](io.kubernetes.client.models.V1LocalObjectReference.md) | | [optional]
**nodePublishSecretRef** | [**io.kubernetes.client.openapi.models.V1LocalObjectReference**](io.kubernetes.client.openapi.models.V1LocalObjectReference.md) | | [optional]
**readOnly** | **Boolean** | Specifies a read-only configuration for the volume. Defaults to false (read/write). | [optional]
**volumeAttributes** | **Map&lt;String, String&gt;** | VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver&#39;s documentation for supported values. | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/CephFSVolumeSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**path** | **String** | Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional]
**readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional]
**secretFile** | **String** | Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional]
**secretRef** | [**io.kubernetes.client.models.V1LocalObjectReference**](io.kubernetes.client.models.V1LocalObjectReference.md) | | [optional]
**secretRef** | [**io.kubernetes.client.openapi.models.V1LocalObjectReference**](io.kubernetes.client.openapi.models.V1LocalObjectReference.md) | | [optional]
**user** | **String** | Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional]


Expand Down
2 changes: 1 addition & 1 deletion docs/CinderVolumeSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \&quot;ext4\&quot;, \&quot;xfs\&quot;, \&quot;ntfs\&quot;. Implicitly inferred to be \&quot;ext4\&quot; if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional]
**readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional]
**secretRef** | [**io.kubernetes.client.models.V1LocalObjectReference**](io.kubernetes.client.models.V1LocalObjectReference.md) | | [optional]
**secretRef** | [**io.kubernetes.client.openapi.models.V1LocalObjectReference**](io.kubernetes.client.openapi.models.V1LocalObjectReference.md) | | [optional]
**volumeID** | **String** | volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md |


Expand Down
2 changes: 1 addition & 1 deletion docs/ClusterWorkflowTemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional]
**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional]
**metadata** | [**io.kubernetes.client.models.V1ObjectMeta**](io.kubernetes.client.models.V1ObjectMeta.md) | |
**metadata** | [**io.kubernetes.client.openapi.models.V1ObjectMeta**](io.kubernetes.client.openapi.models.V1ObjectMeta.md) | |
**spec** | [**WorkflowTemplateSpec**](WorkflowTemplateSpec.md) | |


Expand Down
2 changes: 1 addition & 1 deletion docs/ClusterWorkflowTemplateList.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional]
**items** | [**List&lt;ClusterWorkflowTemplate&gt;**](ClusterWorkflowTemplate.md) | |
**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional]
**metadata** | [**io.kubernetes.client.models.V1ListMeta**](io.kubernetes.client.models.V1ListMeta.md) | |
**metadata** | [**io.kubernetes.client.openapi.models.V1ListMeta**](io.kubernetes.client.openapi.models.V1ListMeta.md) | |



2 changes: 1 addition & 1 deletion docs/CronWorkflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional]
**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional]
**metadata** | [**io.kubernetes.client.models.V1ObjectMeta**](io.kubernetes.client.models.V1ObjectMeta.md) | |
**metadata** | [**io.kubernetes.client.openapi.models.V1ObjectMeta**](io.kubernetes.client.openapi.models.V1ObjectMeta.md) | |
**spec** | [**CronWorkflowSpec**](CronWorkflowSpec.md) | |
**status** | [**CronWorkflowStatus**](CronWorkflowStatus.md) | | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/CronWorkflowList.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional]
**items** | [**List&lt;CronWorkflow&gt;**](CronWorkflow.md) | |
**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional]
**metadata** | [**io.kubernetes.client.models.V1ListMeta**](io.kubernetes.client.models.V1ListMeta.md) | |
**metadata** | [**io.kubernetes.client.openapi.models.V1ListMeta**](io.kubernetes.client.openapi.models.V1ListMeta.md) | |



2 changes: 1 addition & 1 deletion docs/CronWorkflowSpec.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**successfulJobsHistoryLimit** | **Integer** | SuccessfulJobsHistoryLimit is the number of successful jobs to be kept at a time | [optional]
**suspend** | **Boolean** | Suspend is a flag that will stop new CronWorkflows from running if set to true | [optional]
**timezone** | **String** | Timezone is the timezone against which the cron schedule will be calculated, e.g. \&quot;Asia/Tokyo\&quot;. Default is machine&#39;s local time. | [optional]
**workflowMetadata** | [**io.kubernetes.client.models.V1ObjectMeta**](io.kubernetes.client.models.V1ObjectMeta.md) | | [optional]
**workflowMetadata** | [**io.kubernetes.client.openapi.models.V1ObjectMeta**](io.kubernetes.client.openapi.models.V1ObjectMeta.md) | | [optional]
**workflowSpec** | [**WorkflowSpec**](WorkflowSpec.md) | |


Expand Down
2 changes: 1 addition & 1 deletion docs/CronWorkflowStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CronWorkflowStatus is the status of a CronWorkflow

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | [**List&lt;io.kubernetes.client.models.V1ObjectReference&gt;**](io.kubernetes.client.models.V1ObjectReference.md) | Active is a list of active workflows stemming from this CronWorkflow | [optional]
**active** | [**List&lt;io.kubernetes.client.openapi.models.V1ObjectReference&gt;**](io.kubernetes.client.openapi.models.V1ObjectReference.md) | Active is a list of active workflows stemming from this CronWorkflow | [optional]
**conditions** | [**List&lt;Condition&gt;**](Condition.md) | Conditions is a list of conditions the CronWorkflow may have | [optional]
**lastScheduledTime** | [**org.joda.time.DateTime**](org.joda.time.DateTime.md) | | [optional]

Expand Down
4 changes: 2 additions & 2 deletions docs/EnvVarSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ EnvVarSource represents a source for the value of an EnvVar.

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**configMapKeyRef** | [**io.kubernetes.client.models.V1ConfigMapKeySelector**](io.kubernetes.client.models.V1ConfigMapKeySelector.md) | | [optional]
**configMapKeyRef** | [**io.kubernetes.client.openapi.models.V1ConfigMapKeySelector**](io.kubernetes.client.openapi.models.V1ConfigMapKeySelector.md) | | [optional]
**fieldRef** | [**ObjectFieldSelector**](ObjectFieldSelector.md) | | [optional]
**resourceFieldRef** | [**ResourceFieldSelector**](ResourceFieldSelector.md) | | [optional]
**secretKeyRef** | [**io.kubernetes.client.models.V1SecretKeySelector**](io.kubernetes.client.models.V1SecretKeySelector.md) | | [optional]
**secretKeyRef** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional]



2 changes: 1 addition & 1 deletion docs/FlexVolumeSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \&quot;ext4\&quot;, \&quot;xfs\&quot;, \&quot;ntfs\&quot;. The default filesystem depends on FlexVolume script. | [optional]
**options** | **Map&lt;String, String&gt;** | Optional: Extra command options if any. | [optional]
**readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional]
**secretRef** | [**io.kubernetes.client.models.V1LocalObjectReference**](io.kubernetes.client.models.V1LocalObjectReference.md) | | [optional]
**secretRef** | [**io.kubernetes.client.openapi.models.V1LocalObjectReference**](io.kubernetes.client.openapi.models.V1LocalObjectReference.md) | | [optional]



2 changes: 1 addition & 1 deletion docs/GCSArtifact.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bucket** | **String** | Bucket is the name of the bucket |
**key** | **String** | Key is the path in the bucket where the artifact resides |
**serviceAccountKeySecret** | [**io.kubernetes.client.models.V1SecretKeySelector**](io.kubernetes.client.models.V1SecretKeySelector.md) | | [optional]
**serviceAccountKeySecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional]



6 changes: 3 additions & 3 deletions docs/GitArtifact.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Name | Type | Description | Notes
**depth** | **Long** | Depth specifies clones/fetches should be shallow and include the given number of commits from the branch tip | [optional]
**fetch** | **List&lt;String&gt;** | Fetch specifies a number of refs that should be fetched before checkout | [optional]
**insecureIgnoreHostKey** | **Boolean** | InsecureIgnoreHostKey disables SSH strict host key checking during git clone | [optional]
**passwordSecret** | [**io.kubernetes.client.models.V1SecretKeySelector**](io.kubernetes.client.models.V1SecretKeySelector.md) | | [optional]
**passwordSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional]
**repo** | **String** | Repo is the git repository |
**revision** | **String** | Revision is the git commit, tag, branch to checkout | [optional]
**sshPrivateKeySecret** | [**io.kubernetes.client.models.V1SecretKeySelector**](io.kubernetes.client.models.V1SecretKeySelector.md) | | [optional]
**usernameSecret** | [**io.kubernetes.client.models.V1SecretKeySelector**](io.kubernetes.client.models.V1SecretKeySelector.md) | | [optional]
**sshPrivateKeySecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional]
**usernameSecret** | [**io.kubernetes.client.openapi.models.V1SecretKeySelector**](io.kubernetes.client.openapi.models.V1SecretKeySelector.md) | | [optional]



Loading