Skip to content
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

Update master to kubernetes 1.10 #482

Merged
merged 4 commits into from
Mar 13, 2018
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
# v6.0.0b1
- Update to Kubernetes 1.10 cluster
- Config loader now raises exception on duplicated name in kubeconfig [kubernetes-client/python-base#47](https://github.com/kubernetes-client/python-base/pull/47)
- New API: add PATCH to CustomObjectsApi [kubernetes-client/gen#53](https://github.com/kubernetes-client/gen/pull/53)
- Documentation update: never let cluster-scoped resources skip webhooks [kubernetes/kubernetes#58185](https://github.com/kubernetes/kubernetes/pull/58185)

**API change:**
- CustomObjectsApi: Add PATCH to CustomObjectsApi [kubernetes-client/gen#53](https://github.com/kubernetes-client/gen/pull/53)
- Promoting the apiregistration.k8s.io (aggregation) to GA (ApiregistrationV1Api) [kubernetes/kubernetes#58393](https://github.com/kubernetes/kubernetes/pull/58393)
- CoreV1Api: remove /proxy legacy API (deprecated since kubernetes v1.2). Use the /proxy subresources on objects that support HTTP proxying [kubernetes/kubernetes#59884](https://github.com/kubernetes/kubernetes/pull/59884)
- The `PodSecurityPolicy` API has been moved to the `policy/v1beta1` API group. The `PodSecurityPolicy` API in the `extensions/v1beta1` API group is deprecated and will be removed in a future release. Authorizations for using pod security policy resources should change to reference the `policy` API group after upgrading to 1.11 [kubernetes/kubernetes#54933](https://github.com/kubernetes/kubernetes/pull/54933)
- StorageV1beta1Api: Introduce new `VolumeAttachment` API Object [kubernetes/kubernetes#54463](https://github.com/kubernetes/kubernetes/pull/54463)
- V1FlexPersistentVolumeSource: PersistentVolume flexVolume sources can now reference secrets in a namespace other than the PersistentVolumeClaim's namespace [kubernetes/kubernetes#56460](https://github.com/kubernetes/kubernetes/pull/56460)
- ACTION REQUIRED: VolumeScheduling and LocalPersistentVolume features are beta and enabled by default. The PersistentVolume NodeAffinity alpha annotation is deprecated and will be removed in a future release [kubernetes/kubernetes#59391](https://github.com/kubernetes/kubernetes/pull/59391)
- Allows HorizontalPodAutoscaler to use global metrics not associated with any Kubernetes object (for example metrics from a hoster service running outside of Kubernetes cluster) [kubernetes/kubernetes#60096](https://github.com/kubernetes/kubernetes/pull/60096)
- v1.Pod now has a field to configure whether a single process namespace should be shared between all containers in a pod. This feature is in alpha preview. [kubernetes/kubernetes#58716](https://github.com/kubernetes/kubernetes/pull/58716)
- delete_namespaced_service() now takes an required body (delete option) parameter. Refactor service storage to remove registry wrapper [kubernetes/kubernetes#59510](https://github.com/kubernetes/kubernetes/pull/59510)

**Documentation update:**
- Never let cluster-scoped resources skip webhooks [kubernetes/kubernetes#58185](https://github.com/kubernetes/kubernetes/pull/58185)
- Clarify that ListOptions.Timeout is not conditional on inactivity [kubernetes/kubernetes#58562](https://github.com/kubernetes/kubernetes/pull/58562)
- Indicate endpoint subsets are an optional field [kubernetes/kubernetes#59434](https://github.com/kubernetes/kubernetes/pull/59434)

# v5.0.0
- No changes. The same as `v5.0.0b1`.
Expand Down
120 changes: 65 additions & 55 deletions kubernetes/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion kubernetes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

__project__ = 'kubernetes'
# The version is auto-updated. Please do not edit.
__version__ = "5.0.0-snapshot"
__version__ = "6.0.0-snapshot"

import kubernetes.client
import kubernetes.config
Expand Down
54 changes: 42 additions & 12 deletions kubernetes/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.9.3
OpenAPI spec version: v1.10.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand All @@ -28,23 +28,50 @@
from .models.apps_v1beta1_scale import AppsV1beta1Scale
from .models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec
from .models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus
from .models.extensions_v1beta1_allowed_flex_volume import ExtensionsV1beta1AllowedFlexVolume
from .models.extensions_v1beta1_allowed_host_path import ExtensionsV1beta1AllowedHostPath
from .models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment
from .models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition
from .models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList
from .models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback
from .models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec
from .models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus
from .models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy
from .models.extensions_v1beta1_fs_group_strategy_options import ExtensionsV1beta1FSGroupStrategyOptions
from .models.extensions_v1beta1_host_port_range import ExtensionsV1beta1HostPortRange
from .models.extensions_v1beta1_id_range import ExtensionsV1beta1IDRange
from .models.extensions_v1beta1_pod_security_policy import ExtensionsV1beta1PodSecurityPolicy
from .models.extensions_v1beta1_pod_security_policy_list import ExtensionsV1beta1PodSecurityPolicyList
from .models.extensions_v1beta1_pod_security_policy_spec import ExtensionsV1beta1PodSecurityPolicySpec
from .models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig
from .models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment
from .models.extensions_v1beta1_run_as_user_strategy_options import ExtensionsV1beta1RunAsUserStrategyOptions
from .models.extensions_v1beta1_se_linux_strategy_options import ExtensionsV1beta1SELinuxStrategyOptions
from .models.extensions_v1beta1_scale import ExtensionsV1beta1Scale
from .models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec
from .models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus
from .models.extensions_v1beta1_supplemental_groups_strategy_options import ExtensionsV1beta1SupplementalGroupsStrategyOptions
from .models.policy_v1beta1_allowed_flex_volume import PolicyV1beta1AllowedFlexVolume
from .models.policy_v1beta1_allowed_host_path import PolicyV1beta1AllowedHostPath
from .models.policy_v1beta1_fs_group_strategy_options import PolicyV1beta1FSGroupStrategyOptions
from .models.policy_v1beta1_host_port_range import PolicyV1beta1HostPortRange
from .models.policy_v1beta1_id_range import PolicyV1beta1IDRange
from .models.policy_v1beta1_pod_security_policy import PolicyV1beta1PodSecurityPolicy
from .models.policy_v1beta1_pod_security_policy_list import PolicyV1beta1PodSecurityPolicyList
from .models.policy_v1beta1_pod_security_policy_spec import PolicyV1beta1PodSecurityPolicySpec
from .models.policy_v1beta1_run_as_user_strategy_options import PolicyV1beta1RunAsUserStrategyOptions
from .models.policy_v1beta1_se_linux_strategy_options import PolicyV1beta1SELinuxStrategyOptions
from .models.policy_v1beta1_supplemental_groups_strategy_options import PolicyV1beta1SupplementalGroupsStrategyOptions
from .models.runtime_raw_extension import RuntimeRawExtension
from .models.v1_api_group import V1APIGroup
from .models.v1_api_group_list import V1APIGroupList
from .models.v1_api_resource import V1APIResource
from .models.v1_api_resource_list import V1APIResourceList
from .models.v1_api_service import V1APIService
from .models.v1_api_service_condition import V1APIServiceCondition
from .models.v1_api_service_list import V1APIServiceList
from .models.v1_api_service_spec import V1APIServiceSpec
from .models.v1_api_service_status import V1APIServiceStatus
from .models.v1_api_versions import V1APIVersions
from .models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource
from .models.v1_affinity import V1Affinity
Expand Down Expand Up @@ -116,6 +143,7 @@
from .models.v1_event_source import V1EventSource
from .models.v1_exec_action import V1ExecAction
from .models.v1_fc_volume_source import V1FCVolumeSource
from .models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource
from .models.v1_flex_volume_source import V1FlexVolumeSource
from .models.v1_flocker_volume_source import V1FlockerVolumeSource
from .models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource
Expand Down Expand Up @@ -270,6 +298,7 @@
from .models.v1_service_account_list import V1ServiceAccountList
from .models.v1_service_list import V1ServiceList
from .models.v1_service_port import V1ServicePort
from .models.v1_service_reference import V1ServiceReference
from .models.v1_service_spec import V1ServiceSpec
from .models.v1_service_status import V1ServiceStatus
from .models.v1_session_affinity_config import V1SessionAffinityConfig
Expand Down Expand Up @@ -301,6 +330,7 @@
from .models.v1_volume import V1Volume
from .models.v1_volume_device import V1VolumeDevice
from .models.v1_volume_mount import V1VolumeMount
from .models.v1_volume_node_affinity import V1VolumeNodeAffinity
from .models.v1_volume_projection import V1VolumeProjection
from .models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource
from .models.v1_watch_event import V1WatchEvent
Expand Down Expand Up @@ -338,8 +368,6 @@
from .models.v1beta1_api_service_spec import V1beta1APIServiceSpec
from .models.v1beta1_api_service_status import V1beta1APIServiceStatus
from .models.v1beta1_aggregation_rule import V1beta1AggregationRule
from .models.v1beta1_allowed_flex_volume import V1beta1AllowedFlexVolume
from .models.v1beta1_allowed_host_path import V1beta1AllowedHostPath
from .models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest
from .models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition
from .models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList
Expand All @@ -361,6 +389,8 @@
from .models.v1beta1_custom_resource_definition_names import V1beta1CustomResourceDefinitionNames
from .models.v1beta1_custom_resource_definition_spec import V1beta1CustomResourceDefinitionSpec
from .models.v1beta1_custom_resource_definition_status import V1beta1CustomResourceDefinitionStatus
from .models.v1beta1_custom_resource_subresource_scale import V1beta1CustomResourceSubresourceScale
from .models.v1beta1_custom_resource_subresources import V1beta1CustomResourceSubresources
from .models.v1beta1_custom_resource_validation import V1beta1CustomResourceValidation
from .models.v1beta1_daemon_set import V1beta1DaemonSet
from .models.v1beta1_daemon_set_condition import V1beta1DaemonSetCondition
Expand All @@ -373,11 +403,8 @@
from .models.v1beta1_event_series import V1beta1EventSeries
from .models.v1beta1_eviction import V1beta1Eviction
from .models.v1beta1_external_documentation import V1beta1ExternalDocumentation
from .models.v1beta1_fs_group_strategy_options import V1beta1FSGroupStrategyOptions
from .models.v1beta1_http_ingress_path import V1beta1HTTPIngressPath
from .models.v1beta1_http_ingress_rule_value import V1beta1HTTPIngressRuleValue
from .models.v1beta1_host_port_range import V1beta1HostPortRange
from .models.v1beta1_id_range import V1beta1IDRange
from .models.v1beta1_ip_block import V1beta1IPBlock
from .models.v1beta1_ingress import V1beta1Ingress
from .models.v1beta1_ingress_backend import V1beta1IngressBackend
Expand Down Expand Up @@ -408,9 +435,6 @@
from .models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList
from .models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec
from .models.v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus
from .models.v1beta1_pod_security_policy import V1beta1PodSecurityPolicy
from .models.v1beta1_pod_security_policy_list import V1beta1PodSecurityPolicyList
from .models.v1beta1_pod_security_policy_spec import V1beta1PodSecurityPolicySpec
from .models.v1beta1_policy_rule import V1beta1PolicyRule
from .models.v1beta1_replica_set import V1beta1ReplicaSet
from .models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition
Expand All @@ -427,8 +451,6 @@
from .models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet
from .models.v1beta1_rolling_update_stateful_set_strategy import V1beta1RollingUpdateStatefulSetStrategy
from .models.v1beta1_rule_with_operations import V1beta1RuleWithOperations
from .models.v1beta1_run_as_user_strategy_options import V1beta1RunAsUserStrategyOptions
from .models.v1beta1_se_linux_strategy_options import V1beta1SELinuxStrategyOptions
from .models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview
from .models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec
from .models.v1beta1_self_subject_rules_review import V1beta1SelfSubjectRulesReview
Expand All @@ -446,13 +468,18 @@
from .models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec
from .models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus
from .models.v1beta1_subject_rules_review_status import V1beta1SubjectRulesReviewStatus
from .models.v1beta1_supplemental_groups_strategy_options import V1beta1SupplementalGroupsStrategyOptions
from .models.v1beta1_token_review import V1beta1TokenReview
from .models.v1beta1_token_review_spec import V1beta1TokenReviewSpec
from .models.v1beta1_token_review_status import V1beta1TokenReviewStatus
from .models.v1beta1_user_info import V1beta1UserInfo
from .models.v1beta1_validating_webhook_configuration import V1beta1ValidatingWebhookConfiguration
from .models.v1beta1_validating_webhook_configuration_list import V1beta1ValidatingWebhookConfigurationList
from .models.v1beta1_volume_attachment import V1beta1VolumeAttachment
from .models.v1beta1_volume_attachment_list import V1beta1VolumeAttachmentList
from .models.v1beta1_volume_attachment_source import V1beta1VolumeAttachmentSource
from .models.v1beta1_volume_attachment_spec import V1beta1VolumeAttachmentSpec
from .models.v1beta1_volume_attachment_status import V1beta1VolumeAttachmentStatus
from .models.v1beta1_volume_error import V1beta1VolumeError
from .models.v1beta1_webhook import V1beta1Webhook
from .models.v1beta1_webhook_client_config import V1beta1WebhookClientConfig
from .models.v1beta2_controller_revision import V1beta2ControllerRevision
Expand Down Expand Up @@ -492,6 +519,8 @@
from .models.v2alpha1_cron_job_status import V2alpha1CronJobStatus
from .models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec
from .models.v2beta1_cross_version_object_reference import V2beta1CrossVersionObjectReference
from .models.v2beta1_external_metric_source import V2beta1ExternalMetricSource
from .models.v2beta1_external_metric_status import V2beta1ExternalMetricStatus
from .models.v2beta1_horizontal_pod_autoscaler import V2beta1HorizontalPodAutoscaler
from .models.v2beta1_horizontal_pod_autoscaler_condition import V2beta1HorizontalPodAutoscalerCondition
from .models.v2beta1_horizontal_pod_autoscaler_list import V2beta1HorizontalPodAutoscalerList
Expand All @@ -514,6 +543,7 @@
from .apis.apiextensions_api import ApiextensionsApi
from .apis.apiextensions_v1beta1_api import ApiextensionsV1beta1Api
from .apis.apiregistration_api import ApiregistrationApi
from .apis.apiregistration_v1_api import ApiregistrationV1Api
from .apis.apiregistration_v1beta1_api import ApiregistrationV1beta1Api
from .apis.apis_api import ApisApi
from .apis.apps_api import AppsApi
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.9.3
OpenAPI spec version: v1.10.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -71,7 +71,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/5.0.0-snapshot/python'
self.user_agent = 'Swagger-Codegen/6.0.0-snapshot/python'

def __del__(self):
self.pool.close()
Expand Down
1 change: 1 addition & 0 deletions kubernetes/client/apis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .apiextensions_api import ApiextensionsApi
from .apiextensions_v1beta1_api import ApiextensionsV1beta1Api
from .apiregistration_api import ApiregistrationApi
from .apiregistration_v1_api import ApiregistrationV1Api
from .apiregistration_v1beta1_api import ApiregistrationV1beta1Api
from .apis_api import ApisApi
from .apps_api import AppsApi
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/apis/admissionregistration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.9.3
OpenAPI spec version: v1.10.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
Loading