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

Rebase and fixes for https://github.com/kubernetes-client/python/pull/2147 #2255

Closed
Closed
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
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions doc/source/kubernetes.client.api_response.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kubernetes.client.api\_response module
======================================

.. automodule:: kubernetes.client.api_response
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions doc/source/kubernetes.client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Submodules
:maxdepth: 4

kubernetes.client.api_client
kubernetes.client.api_response
kubernetes.client.configuration
kubernetes.client.exceptions
kubernetes.client.rest
Expand Down
5 changes: 0 additions & 5 deletions doc/source/kubernetes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ Subpackages
:maxdepth: 4

kubernetes.client
kubernetes.config
kubernetes.dynamic
kubernetes.e2e_test
kubernetes.leaderelection
kubernetes.stream
kubernetes.test
kubernetes.utils
kubernetes.watch

Module contents
---------------
Expand Down
2 changes: 1 addition & 1 deletion examples/remote_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main():
# ssl_ca_cert is the filepath to the file that contains the certificate.
# configuration.ssl_ca_cert="certificate"

aConfiguration.api_key = {"authorization": "Bearer " + aToken}
aConfiguration.api_key = {"BearerToken": "Bearer " + aToken}

# Create a ApiClient with our config
aApiClient = client.ApiClient(aConfiguration)
Expand Down
38 changes: 38 additions & 0 deletions kubernetes/.github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: client Python package

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
38 changes: 18 additions & 20 deletions kubernetes/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.gitlab.com/ee/ci/README.html
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml

stages:
- test

.nosetest:
.pytest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=client

nosetest-2.7:
extends: .nosetest
image: python:2.7-alpine
nosetest-3.3:
extends: .nosetest
image: python:3.3-alpine
nosetest-3.4:
extends: .nosetest
image: python:3.4-alpine
nosetest-3.5:
extends: .nosetest
image: python:3.5-alpine
nosetest-3.6:
extends: .nosetest
image: python:3.6-alpine
nosetest-3.7:
extends: .nosetest
pytest-3.7:
extends: .pytest
image: python:3.7-alpine
nosetest-3.8:
extends: .nosetest
pytest-3.8:
extends: .pytest
image: python:3.8-alpine
pytest-3.9:
extends: .pytest
image: python:3.9-alpine
pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
4 changes: 2 additions & 2 deletions kubernetes/.openapi-generator/COMMIT
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Requested Commit/Tag : v4.3.0
Actual Commit : c224cf484b020a7f5997d883cf331715df3fb52a
Requested Commit/Tag : v7.2.0
Actual Commit : fe638d009363c142c246ff089032f243e0b4ee01
Loading