In the Kubernetes API client, we should be able to generate queries like
?labelSelector=environment+in+%28production%2Cqa%29%2Ctier+in+%28frontend%29
(from https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#list-and-watch-filtering).
When the generated URIs URL-encode the plus signs, the API server rejects them.
With this change, (newConfig :: IO KubernetesClientConfig) now sets
the default configQueryExtraUnreserved setting to "+". Requests
generated with this config object will avoid URI encoding "+" all
querystring params.
30 lines
969 B
Bash
30 lines
969 B
Bash
#!/bin/bash
|
|
|
|
# Copyright 2015 The Kubernetes Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Kubernetes branch to get the OpenAPI spec from.
|
|
export KUBERNETES_BRANCH="release-1.20"
|
|
|
|
# client version for packaging and releasing. It can
|
|
# be different than SPEC_VERSION.
|
|
export CLIENT_VERSION="0.1"
|
|
|
|
# Name of the release package
|
|
export PACKAGE_NAME="kubernetes"
|
|
|
|
export USERNAME="kubernetes"
|
|
|
|
OPENAPI_GENERATOR_COMMIT=1247e774530b715fb54f719a3b10000d5dd2137b
|