mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-11 20:12:18 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5eb0625d6 | ||
|
|
0432fe6a51 | ||
|
|
1754405bb4 |
@@ -1,5 +0,0 @@
|
|||||||
# https://docs.ansible.com/ansible-lint/docs/rules/
|
|
||||||
# no-changed-when is not requried for examples
|
|
||||||
plugins/connection/kubectl.py no-changed-when
|
|
||||||
# false positive result
|
|
||||||
plugins/connection/kubectl.py var-naming[no-reserved]
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
profile: production
|
|
||||||
|
|
||||||
exclude_paths:
|
|
||||||
- .ansible/
|
|
||||||
- tests/integration
|
|
||||||
- tests/unit
|
|
||||||
- tests/sanity
|
|
||||||
4
.github/patchback.yml
vendored
4
.github/patchback.yml
vendored
@@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
backport_branch_prefix: patchback/backports/
|
|
||||||
backport_label_prefix: backport-
|
|
||||||
target_branch_prefix: stable-
|
|
||||||
60
.github/stale.yml
vendored
Normal file
60
.github/stale.yml
vendored
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
---
|
||||||
|
# Configuration for probot-stale - https://github.com/probot/stale
|
||||||
|
|
||||||
|
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
||||||
|
daysUntilStale: 90
|
||||||
|
|
||||||
|
# Number of days of inactivity before an Issue or Pull Request with the stale
|
||||||
|
# label is closed. Set to false to disable. If disabled, issues still need to be
|
||||||
|
# closed manually, but will remain marked as stale.
|
||||||
|
daysUntilClose: 30
|
||||||
|
|
||||||
|
# Only issues or pull requests with all of these labels are check if stale.
|
||||||
|
# Defaults to `[]` (disabled)
|
||||||
|
onlyLabels: []
|
||||||
|
|
||||||
|
# Issues or Pull Requests with these labels will never be considered stale. Set
|
||||||
|
# to `[]` to disable
|
||||||
|
exemptLabels:
|
||||||
|
- security
|
||||||
|
- planned
|
||||||
|
- priority/critical
|
||||||
|
- lifecycle/frozen
|
||||||
|
- verified
|
||||||
|
|
||||||
|
# Set to true to ignore issues in a project (defaults to false)
|
||||||
|
exemptProjects: false
|
||||||
|
|
||||||
|
# Set to true to ignore issues in a milestone (defaults to false)
|
||||||
|
exemptMilestones: true
|
||||||
|
|
||||||
|
# Set to true to ignore issues with an assignee (defaults to false)
|
||||||
|
exemptAssignees: false
|
||||||
|
|
||||||
|
# Label to use when marking as stale
|
||||||
|
staleLabel: lifecycle/stale
|
||||||
|
|
||||||
|
# Limit the number of actions per hour, from 1-30. Default is 30
|
||||||
|
limitPerRun: 30
|
||||||
|
|
||||||
|
pulls:
|
||||||
|
markComment: |-
|
||||||
|
PRs go stale after 90 days of inactivity.
|
||||||
|
If there is no further activity, the PR will be closed in another 30 days.
|
||||||
|
|
||||||
|
unmarkComment: >-
|
||||||
|
This pull request is no longer stale.
|
||||||
|
|
||||||
|
closeComment: >-
|
||||||
|
This pull request has been closed due to inactivity.
|
||||||
|
|
||||||
|
issues:
|
||||||
|
markComment: |-
|
||||||
|
Issues go stale after 90 days of inactivity.
|
||||||
|
If there is no further activity, the issue will be closed in another 30 days.
|
||||||
|
|
||||||
|
unmarkComment: >-
|
||||||
|
This issue is no longer stale.
|
||||||
|
|
||||||
|
closeComment: >-
|
||||||
|
This issue has been closed due to inactivity.
|
||||||
21
.github/workflows/changelog.yaml
vendored
21
.github/workflows/changelog.yaml
vendored
@@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
name: Changelog
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- reopened
|
|
||||||
- labeled
|
|
||||||
- unlabeled
|
|
||||||
- synchronize
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- stable-*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
changelog:
|
|
||||||
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
|
|
||||||
191
.github/workflows/ci.yml
vendored
Normal file
191
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,191 @@
|
|||||||
|
---
|
||||||
|
name: CI
|
||||||
|
'on':
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
sanity:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python_version: ['2.7', '3.7']
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python_version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
|
- name: Install ansible base (devel branch)
|
||||||
|
run: pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
|
||||||
|
|
||||||
|
- name: Run sanity tests on Python ${{ matrix.python_version }}
|
||||||
|
run: make test-sanity PYTHON_VERSION=${{ matrix.python_version }}
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
integration:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# Our old integration tests fail under newer Python versions.
|
||||||
|
python_version: ['3.6']
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python_version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
|
- name: Install ansible base (devel branch)
|
||||||
|
run: pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
|
||||||
|
|
||||||
|
- name: Run integration tests on Python ${{ matrix.python_version }}
|
||||||
|
run: make test-integration PYTHON_VERSION=${{ matrix.python_version }}
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
- name: Generate coverage report.
|
||||||
|
run: ansible-test coverage xml -v --requirements --group-by command --group-by version
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
- uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
fail_ci_if_error: false
|
||||||
|
|
||||||
|
molecule:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python_version: ['3.7']
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
- name: Set up KinD cluster
|
||||||
|
uses: engineerd/setup-kind@v0.5.0
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python_version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
|
# The 3.3.0 release of molecule introduced a breaking change. See
|
||||||
|
# https://github.com/ansible-community/molecule/issues/3083
|
||||||
|
- name: Install molecule and openshift dependencies
|
||||||
|
run: pip install ansible "molecule<3.3.0" yamllint openshift flake8
|
||||||
|
|
||||||
|
# The latest release doesn't work with Molecule currently.
|
||||||
|
# See: https://github.com/ansible-community/molecule/issues/2757
|
||||||
|
# - name: Install ansible base, latest release.
|
||||||
|
# run: |
|
||||||
|
# pip uninstall -y ansible
|
||||||
|
# pip install --pre ansible-base
|
||||||
|
|
||||||
|
# The devel branch doesn't work with Molecule currently.
|
||||||
|
# See: https://github.com/ansible-community/molecule/issues/2757
|
||||||
|
# - name: Install ansible base (devel branch)
|
||||||
|
# run: |
|
||||||
|
# pip uninstall -y ansible
|
||||||
|
# pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
|
||||||
|
|
||||||
|
- name: Create default collection path symlink
|
||||||
|
run: |
|
||||||
|
mkdir -p /home/runner/.ansible
|
||||||
|
ln -s /home/runner/work/kubernetes/kubernetes /home/runner/.ansible/collections
|
||||||
|
|
||||||
|
- name: Run molecule default test scenario
|
||||||
|
run: make test-molecule
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
downstream-sanity-29:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python_version: ['3.7']
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python_version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
|
- name: Install ansible base (devel branch)
|
||||||
|
run: pip install "ansible>=2.9.0,<2.10.0"
|
||||||
|
|
||||||
|
- name: Run sanity tests on Python ${{ matrix.python_version }}
|
||||||
|
run: make downstream-test-sanity
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
downstream-integration-29:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# Our old integration tests fail under newer Python versions.
|
||||||
|
python_version: ['3.6']
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python_version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
|
- name: Install ansible base (devel branch)
|
||||||
|
run: pip install "ansible>=2.9.0,<2.10.0" pip==20.3.1
|
||||||
|
|
||||||
|
- name: Run integration tests on Python ${{ matrix.python_version }}
|
||||||
|
run: make downstream-test-integration
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
downstream-molecule-29:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python_version: ['3.7']
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ansible_collections/community/kubernetes
|
||||||
|
|
||||||
|
- name: Set up KinD cluster
|
||||||
|
uses: engineerd/setup-kind@v0.5.0
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python_version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
|
- name: Install molecule and openshift dependencies
|
||||||
|
run: pip install "ansible>=2.9.0,<2.10.0" "molecule<3.3.0" yamllint openshift flake8
|
||||||
|
|
||||||
|
- name: Create default collection path symlink
|
||||||
|
run: |
|
||||||
|
mkdir -p /home/runner/.ansible
|
||||||
|
ln -s /home/runner/work/kubernetes/kubernetes /home/runner/.ansible/collections
|
||||||
|
|
||||||
|
- name: Run molecule default test scenario
|
||||||
|
run: make downstream-test-molecule
|
||||||
|
working-directory: ./ansible_collections/community/kubernetes
|
||||||
14
.github/workflows/galaxy-import.yaml
vendored
14
.github/workflows/galaxy-import.yaml
vendored
@@ -1,14 +0,0 @@
|
|||||||
name: galaxy-import
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.head_ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- stable-*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
galaxy_importer:
|
|
||||||
uses: ansible-network/github_actions/.github/workflows/galaxy_importer.yml@main
|
|
||||||
160
.github/workflows/integration-tests.yaml
vendored
160
.github/workflows/integration-tests.yaml
vendored
@@ -1,160 +0,0 @@
|
|||||||
name: Integration tests
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- reopened
|
|
||||||
- labeled
|
|
||||||
- unlabeled
|
|
||||||
- synchronize
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- stable-*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
splitter:
|
|
||||||
env:
|
|
||||||
source_dir: "./source"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
test_targets: ${{ steps.splitter.outputs.test_targets }}
|
|
||||||
test_targets_json: ${{ steps.splitter.outputs.test_targets_json }}
|
|
||||||
test_jobs: ${{ steps.splitter.outputs.test_jobs }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout the collection repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.source_dir }}
|
|
||||||
fetch-depth: "0"
|
|
||||||
|
|
||||||
- name: list changes for pull request
|
|
||||||
id: splitter
|
|
||||||
uses: ansible-network/github_actions/.github/actions/ansible_test_splitter@main
|
|
||||||
with:
|
|
||||||
collections_to_test: ${{ env.source_dir }}
|
|
||||||
total_jobs: 8
|
|
||||||
|
|
||||||
- name: Display splitter output
|
|
||||||
run: |
|
|
||||||
echo "test_targets=${{ steps.splitter.outputs.test_targets }}"
|
|
||||||
echo "test_targets_json=${{ steps.splitter.outputs.test_targets_json }}"
|
|
||||||
echo "test_jobs=${{ steps.splitter.outputs.test_jobs }}"
|
|
||||||
shell: bash
|
|
||||||
integration:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 60
|
|
||||||
needs:
|
|
||||||
- splitter
|
|
||||||
if: ${{ needs.splitter.outputs.test_targets != '' }}
|
|
||||||
env:
|
|
||||||
source: "./source"
|
|
||||||
cloud_common: "./cloudcommon"
|
|
||||||
ansible_posix: "./ansible_posix"
|
|
||||||
community_general: "./community_general"
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
ansible-version:
|
|
||||||
- milestone
|
|
||||||
python-version:
|
|
||||||
- "3.12"
|
|
||||||
enable-turbo-mode:
|
|
||||||
- true
|
|
||||||
- false
|
|
||||||
workflow-id: ${{ fromJson(needs.splitter.outputs.test_jobs) }}
|
|
||||||
name: "integration-py${{ matrix.python-version }}-${{ matrix.ansible-version }}-${{ matrix.workflow-id }}-enable_turbo=${{ matrix.enable-turbo-mode }}"
|
|
||||||
steps:
|
|
||||||
- name: Read target
|
|
||||||
id: read-targets
|
|
||||||
run: |
|
|
||||||
import json, os
|
|
||||||
with open(os.environ.get('GITHUB_OUTPUT'), "a", encoding="utf-8") as fh:
|
|
||||||
fh.write(f'ansible_test_targets={json.loads(os.environ.get("ALL_TEST_TARGETS")).get(os.environ.get("WORKFLOW_ID"))}\n')
|
|
||||||
shell: python
|
|
||||||
env:
|
|
||||||
ALL_TEST_TARGETS: ${{ needs.splitter.outputs.test_targets_json }}
|
|
||||||
WORKFLOW_ID: ${{ matrix.workflow-id }}
|
|
||||||
|
|
||||||
- name: Display ansible test targets
|
|
||||||
run: |
|
|
||||||
echo "ansible_test_targets -> ${{ steps.read-targets.outputs.ansible_test_targets }}"
|
|
||||||
|
|
||||||
- name: Checkout kubernetes.core repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.source }}
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
|
|
||||||
# install ansible
|
|
||||||
- name: Install ansible-core (${{ matrix.ansible-version }})
|
|
||||||
run: >-
|
|
||||||
python3 -m pip install
|
|
||||||
https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz
|
|
||||||
--disable-pip-version-check
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Build and install collection
|
|
||||||
id: install-src
|
|
||||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
|
||||||
with:
|
|
||||||
install_python_dependencies: true
|
|
||||||
source_path: ${{ env.source }}
|
|
||||||
|
|
||||||
- name: checkout ansible-collections/cloud.common
|
|
||||||
uses: ansible-network/github_actions/.github/actions/checkout_dependency@main
|
|
||||||
with:
|
|
||||||
repository: ansible-collections/cloud.common
|
|
||||||
path: ${{ env.cloud_common }}
|
|
||||||
ref: main
|
|
||||||
|
|
||||||
- name: checkout ansible-collections/ansible.posix
|
|
||||||
uses: ansible-network/github_actions/.github/actions/checkout_dependency@main
|
|
||||||
with:
|
|
||||||
repository: ansible-collections/ansible.posix
|
|
||||||
path: ${{ env.ansible_posix }}
|
|
||||||
ref: main
|
|
||||||
|
|
||||||
- name: checkout ansible-collections/community.general
|
|
||||||
uses: ansible-network/github_actions/.github/actions/checkout_dependency@main
|
|
||||||
with:
|
|
||||||
repository: ansible-collections/community.general
|
|
||||||
path: ${{ env.community_general }}
|
|
||||||
ref: main
|
|
||||||
|
|
||||||
- name: install cloud.common collection
|
|
||||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
|
||||||
with:
|
|
||||||
install_python_dependencies: true
|
|
||||||
source_path: ${{ env.cloud_common }}
|
|
||||||
|
|
||||||
- name: install ansible.posix collection
|
|
||||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
|
||||||
with:
|
|
||||||
install_python_dependencies: true
|
|
||||||
source_path: ${{ env.ansible_posix }}
|
|
||||||
|
|
||||||
- name: install community.general collection
|
|
||||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
|
||||||
with:
|
|
||||||
install_python_dependencies: false
|
|
||||||
source_path: ${{ env.community_general }}
|
|
||||||
|
|
||||||
- name: create kubernetes cluster
|
|
||||||
uses: helm/kind-action@v1.8.0
|
|
||||||
with:
|
|
||||||
node_image: "kindest/node:v1.29.2"
|
|
||||||
|
|
||||||
- name: Run integration tests
|
|
||||||
uses: ansible-network/github_actions/.github/actions/ansible_test_integration@main
|
|
||||||
with:
|
|
||||||
collection_path: ${{ steps.install-src.outputs.collection_path }}
|
|
||||||
python_version: ${{ matrix.python-version }}
|
|
||||||
ansible_version: ${{ matrix.ansible-version }}
|
|
||||||
ansible_test_targets: ${{ steps.read-targets.outputs.ansible_test_targets }}
|
|
||||||
ansible_test_environment: |
|
|
||||||
ENABLE_TURBO_MODE=${{ matrix.enable-turbo-mode }}
|
|
||||||
23
.github/workflows/linters.yaml
vendored
23
.github/workflows/linters.yaml
vendored
@@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
name: Linters
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- stable-*
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
linters:
|
|
||||||
uses: ansible-network/github_actions/.github/workflows/tox-linters.yml@main
|
|
||||||
ansible-lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: run-ansible-lint
|
|
||||||
uses: ansible/ansible-lint@v25.1.2
|
|
||||||
15
.github/workflows/sanity-tests.yaml
vendored
15
.github/workflows/sanity-tests.yaml
vendored
@@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
name: Sanity tests
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- stable-*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
sanity:
|
|
||||||
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
|
|
||||||
14
.github/workflows/unit-tests.yaml
vendored
14
.github/workflows/unit-tests.yaml
vendored
@@ -1,14 +0,0 @@
|
|||||||
name: Unit tests
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- stable-*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
unit-source:
|
|
||||||
uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
|
|
||||||
9
.gitignore
vendored
9
.gitignore
vendored
@@ -12,12 +12,3 @@ changelogs/.plugin-cache.yaml
|
|||||||
# Temporary test files.
|
# Temporary test files.
|
||||||
tests/output
|
tests/output
|
||||||
tests/integration/cloud-config-*
|
tests/integration/cloud-config-*
|
||||||
.cache
|
|
||||||
.ansible
|
|
||||||
|
|
||||||
# Helm charts
|
|
||||||
tests/integration/*-chart-*.tgz
|
|
||||||
|
|
||||||
# ansible-test generated file
|
|
||||||
tests/integration/inventory
|
|
||||||
tests/integration/*-*.yml
|
|
||||||
|
|||||||
12
.yamllint
12
.yamllint
@@ -5,24 +5,12 @@ rules:
|
|||||||
braces:
|
braces:
|
||||||
max-spaces-inside: 1
|
max-spaces-inside: 1
|
||||||
level: error
|
level: error
|
||||||
|
|
||||||
brackets:
|
brackets:
|
||||||
max-spaces-inside: 1
|
max-spaces-inside: 1
|
||||||
level: error
|
level: error
|
||||||
comments:
|
|
||||||
min-spaces-from-content: 1
|
|
||||||
comments-indentation: false
|
|
||||||
document-start: disable
|
document-start: disable
|
||||||
line-length: disable
|
line-length: disable
|
||||||
truthy: disable
|
truthy: disable
|
||||||
indentation:
|
indentation:
|
||||||
spaces: 2
|
spaces: 2
|
||||||
indent-sequences: consistent
|
indent-sequences: consistent
|
||||||
octal-values:
|
|
||||||
forbid-implicit-octal: true
|
|
||||||
forbid-explicit-octal: true
|
|
||||||
ignore: |
|
|
||||||
.cache
|
|
||||||
.tox
|
|
||||||
.ansible
|
|
||||||
tests/output
|
|
||||||
|
|||||||
506
CHANGELOG.rst
506
CHANGELOG.rst
@@ -4,515 +4,15 @@ Kubernetes Collection Release Notes
|
|||||||
|
|
||||||
.. contents:: Topics
|
.. contents:: Topics
|
||||||
|
|
||||||
v5.3.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
v1.2.1
|
||||||
---------------
|
|
||||||
|
|
||||||
This release includes minor changes, bug fixes and also bumps ``ansible-lint`` version to ``25.1.2``.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- kubernetes.core - Bump version of ``ansible-lint`` to ``25.1.2`` (https://github.com/ansible-collections/kubernetes.core/pull/919).
|
|
||||||
- action/k8s_info - update templating mechanism with changes from ``ansible-core 2.19`` (https://github.com/ansible-collections/kubernetes.core/pull/888).
|
|
||||||
- helm - add ``reset_then_reuse_values`` support to helm module (https://github.com/ansible-collections/kubernetes.core/issues/803).
|
|
||||||
- helm - add support for ``insecure_skip_tls_verify`` option to helm and ``helm_repository`` (https://github.com/ansible-collections/kubernetes.core/issues/694).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- module_utils/k8s/service - Fix issue when trying to delete resource using ``delete_options`` and ``check_mode=true`` (https://github.com/ansible-collections/kubernetes.core/issues/892).
|
|
||||||
|
|
||||||
v5.2.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This release adds more functionality to the hidden_fields option and support for waiting on ClusterOperators to reach a ready state.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- k8s - Extend hidden_fields to allow the expression of more complex field types to be hidden (https://github.com/ansible-collections/kubernetes.core/pull/872)
|
|
||||||
- k8s_info - Extend hidden_fields to allow the expression of more complex field types to be hidden (https://github.com/ansible-collections/kubernetes.core/pull/872)
|
|
||||||
- waiter.py - add ClusterOperator support. The module can now check OpenShift cluster health by verifying ClusterOperator status requiring 'Available: True', 'Degraded: False', and 'Progressing: False' for success. (https://github.com/ansible-collections/kubernetes.core/issues/869)
|
|
||||||
|
|
||||||
v5.1.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This release came with new module ``helm_registry_auth``, improvements to the error messages in the k8s_drain module, new parameter ``insecure_registry`` for ``helm_template`` module and several bug fixes.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- Bump version of ansible-lint to minimum 24.7.0 (https://github.com/ansible-collections/kubernetes.core/pull/765).
|
|
||||||
- Parameter insecure_registry added to helm_template as equivalent of insecure-skip-tls-verify (https://github.com/ansible-collections/kubernetes.core/pull/805).
|
|
||||||
- k8s_drain - Improve error message for pod disruption budget when draining a node (https://github.com/ansible-collections/kubernetes.core/issues/797).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- helm - Helm version checks did not support RC versions. They now accept any version tags. (https://github.com/ansible-collections/kubernetes.core/pull/745).
|
|
||||||
- helm_pull - Apply no_log=True to pass_credentials to silence false positive warning. (https://github.com/ansible-collections/kubernetes.core/pull/796).
|
|
||||||
- k8s_drain - Fix k8s_drain does not wait for single pod (https://github.com/ansible-collections/kubernetes.core/issues/769).
|
|
||||||
- k8s_drain - Fix k8s_drain runs into a timeout when evicting a pod which is part of a stateful set (https://github.com/ansible-collections/kubernetes.core/issues/792).
|
|
||||||
- kubeconfig option should not appear in module invocation log (https://github.com/ansible-collections/kubernetes.core/issues/782).
|
|
||||||
- kustomize - kustomize plugin fails with deprecation warnings (https://github.com/ansible-collections/kubernetes.core/issues/639).
|
|
||||||
- waiter - Fix waiting for daemonset when desired number of pods is 0. (https://github.com/ansible-collections/kubernetes.core/pull/756).
|
|
||||||
|
|
||||||
New Modules
|
|
||||||
-----------
|
|
||||||
|
|
||||||
- helm_registry_auth - Helm registry authentication module
|
|
||||||
|
|
||||||
v5.0.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This major release drops support for ``ansible-core<2.15``.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- connection/kubectl.py - Added an example of using the kubectl connection plugin to the documentation (https://github.com/ansible-collections/kubernetes.core/pull/741).
|
|
||||||
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 6.0.0 (https://github.com/ansible-collections/kubernetes.core/pull/734).
|
|
||||||
|
|
||||||
Breaking Changes / Porting Guide
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
- Remove support for ``ansible-core<2.15`` (https://github.com/ansible-collections/kubernetes.core/pull/737).
|
|
||||||
|
|
||||||
v4.0.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This major release brings several bug fixes. We have also removed support for ``ansible-core<2.15`` and deprecated functions and class from ``module_utils/common.py``.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 5.0 (https://github.com/ansible-collections/kubernetes.core/pull/723).
|
|
||||||
- k8s - The module and K8sService were changed so warnings returned by the K8S API are now displayed to the user.
|
|
||||||
|
|
||||||
Removed Features (previously deprecated)
|
|
||||||
----------------------------------------
|
|
||||||
|
|
||||||
- k8s - Support for ``merge_type=json`` has been removed in version 4.0.0. Please use ``kubernetes.core.k8s_json_patch`` instead (https://github.com/ansible-collections/kubernetes.core/pull/722).
|
|
||||||
- k8s_exec - the previously deprecated ``result.return_code`` return value has been removed, consider using ``result.rc`` instead (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
- module_utils/common.py - the previously deprecated ``K8sAnsibleMixin`` class has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
- module_utils/common.py - the previously deprecated ``configuration_digest()`` function has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
- module_utils/common.py - the previously deprecated ``get_api_client()`` function has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
- module_utils/common.py - the previously deprecated ``unique_string()`` function has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- Resolve Collections util resource discovery fails when complex subresources present (https://github.com/ansible-collections/kubernetes.core/pull/676).
|
|
||||||
- align `helmdiff_check()` function commandline rendering with the `deploy()` function (https://github.com/ansible-collections/kubernetes.core/pull/670).
|
|
||||||
- avoid unsafe conditions in integration tests (https://github.com/ansible-collections/kubernetes.core/pull/665).
|
|
||||||
- helm - use ``reuse-values`` when running ``helm diff`` command (https://github.com/ansible-collections/kubernetes.core/issues/680).
|
|
||||||
- integrations test helm_kubeconfig - set helm version to v3.10.3 to avoid incompatability with new bitnami charts (https://github.com/ansible-collections/kubernetes.core/pull/670).
|
|
||||||
|
|
||||||
v3.3.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This release comes with improvements to the error messages in the k8s_drain module and several bug fixes.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- k8s_drain - Improve error message for pod disruption budget when draining a node (https://github.com/ansible-collections/kubernetes.core/issues/797).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- helm - Helm version checks did not support RC versions. They now accept any version tags. (https://github.com/ansible-collections/kubernetes.core/pull/745).
|
|
||||||
- helm_pull - Apply no_log=True to pass_credentials to silence false positive warning. (https://github.com/ansible-collections/kubernetes.core/pull/796).
|
|
||||||
- k8s_drain - Fix k8s_drain does not wait for single pod (https://github.com/ansible-collections/kubernetes.core/issues/769).
|
|
||||||
- k8s_drain - Fix k8s_drain runs into a timeout when evicting a pod which is part of a stateful set (https://github.com/ansible-collections/kubernetes.core/issues/792).
|
|
||||||
- kubeconfig option should not appear in module invocation log (https://github.com/ansible-collections/kubernetes.core/issues/782).
|
|
||||||
- kustomize - kustomize plugin fails with deprecation warnings (https://github.com/ansible-collections/kubernetes.core/issues/639).
|
|
||||||
- waiter - Fix waiting for daemonset when desired number of pods is 0. (https://github.com/ansible-collections/kubernetes.core/pull/756).
|
|
||||||
|
|
||||||
v3.2.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This release comes with documentation updates.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- connection/kubectl.py - Added an example of using the kubectl connection plugin to the documentation (https://github.com/ansible-collections/kubernetes.core/pull/741).
|
|
||||||
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 5.0 (https://github.com/ansible-collections/kubernetes.core/pull/723).
|
|
||||||
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 6.0.0 (https://github.com/ansible-collections/kubernetes.core/pull/734).
|
|
||||||
|
|
||||||
v3.1.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This release comes with some bugfixes and documentation updates. It also adds new features to the kubectl connection plugin and the kustomize lookup plugin.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- kubectl - added support of local enviroment variable that will be used for kubectl and may be requried for establishing connections ifself (https://github.com/ansible-collections/kubernetes.core/pull/702)
|
|
||||||
- kustomize - new parameter added to --enable-helm (https://github.com/ansible-collections/kubernetes.core/issues/568)
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- helm - expand kubeconfig path with user's home directory for consistency with k8s
|
|
||||||
- k8s_json_patch - rename action symlink to ensure k8s action plugin is used (https://github.com/ansible-collections/kubernetes.core/pull/652).
|
|
||||||
|
|
||||||
v3.0.1
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This release fixes issue with resources discovery when complex subresources are present, and fixes issues with `reuse-values` parameter for helm module.
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- Resolve Collections util resource discovery fails when complex subresources present (https://github.com/ansible-collections/kubernetes.core/pull/676).
|
|
||||||
- align `helmdiff_check()` function commandline rendering with the `deploy()` function (https://github.com/ansible-collections/kubernetes.core/pull/670).
|
|
||||||
- helm - use ``reuse-values`` when running ``helm diff`` command (https://github.com/ansible-collections/kubernetes.core/issues/680).
|
|
||||||
- integrations test helm_kubeconfig - set helm version to v3.10.3 to avoid incompatability with new bitnami charts (https://github.com/ansible-collections/kubernetes.core/pull/670).
|
|
||||||
|
|
||||||
v3.0.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Release Summary
|
|
||||||
---------------
|
|
||||||
|
|
||||||
This major release drops support for ansible-core versions lower than 2.14, Python versions lower than 3.9 and updates python kubernetes library to 24.2.0, helm/kind-action to 1.8.0, kubernetes >= 1.24, along with bug fixes and minor changes.
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- helm - add ``reuse_values`` and ``reset_values`` support to helm module (https://github.com/ansible-collections/kubernetes.core/issues/394).
|
|
||||||
- k8s - add new option ``delete_all`` to support deletion of all resources when state is set to ``absent``. (https://github.com/ansible-collections/kubernetes.core/issues/504)
|
|
||||||
- k8s, k8s_info - add a hidden_fields option to allow fields to be hidden in the results of k8s and k8s_info
|
|
||||||
- k8s_drain - add ability to filter the list of pods to be drained by a pod label selector (https://github.com/ansible-collections/kubernetes.core/issues/474).
|
|
||||||
|
|
||||||
Breaking Changes / Porting Guide
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
- Remove support for ansible-core < 2.14
|
|
||||||
- Update python kubernetes library to 24.2.0, helm/kind-action to 1.8.0, kubernetes >= 1.24.
|
|
||||||
|
|
||||||
Deprecated Features
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
- k8s - the ``k8s`` inventory plugin has been deprecated and will be removed in release 4.0.0 (https://github.com/ansible-collections/kubernetes.core/issues/31).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- helm - Put the chart_ref into quotes when running ``helm show chart``, ``helm upgrade`` and ``helm dependency update`` commands (https://github.com/ansible-collections/kubernetes.core/issues/653).
|
|
||||||
- helm - delete temporary file created when deploying chart with option ``release_values`` set (https://github.com/ansible-collections/kubernetes.core/issues/530).
|
|
||||||
- helm - fix issue occurring when uninstalling chart with statues others than ``deployed`` (https://github.com/ansible-collections/kubernetes.core/issues/319).
|
|
||||||
- helm - fix post_renderer argument breaking the helm deploy_command (https://github.com/ansible-collections/kubernetes.core/pull/586).
|
|
||||||
- helm - use post_renderer when checking ``changed`` status for a helm release (https://github.com/ansible-collections/kubernetes.core/pull/588).
|
|
||||||
- k8s_scale - clean handling of ResourceTimeout exception (https://github.com/ansible-collections/kubernetes.core/issues/583).
|
|
||||||
- k8s_scale - fix issue when scaling StatefulSets with ``updateStrategy=OnDelete`` (https://github.com/ansible-collections/kubernetes.core/issues/579).
|
|
||||||
|
|
||||||
v2.4.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Major Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- refactor K8sAnsibleMixin into module_utils/k8s/ (https://github.com/ansible-collections/kubernetes.core/pull/481).
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- Adjust k8s_user_impersonation tests to be compatible with Kubernetes 1.24 (https://github.com/ansible-collections/kubernetes.core/pull/520).
|
|
||||||
- add support for dry run with kubernetes client version >=18.20 (https://github.com/ansible-collections/kubernetes.core/pull/245).
|
|
||||||
- added ignore.txt for Ansible 2.14 devel branch.
|
|
||||||
- fixed module_defaults by removing routing hacks from runtime.yml (https://github.com/ansible-collections/kubernetes.core/pull/347).
|
|
||||||
- helm - add support for -set-file, -set-json, -set and -set-string options when running helm install (https://github.com/ansible-collections/kubernetes.core/issues/533).
|
|
||||||
- helm - add support for helm dependency update (https://github.com/ansible-collections/kubernetes.core/pull/208).
|
|
||||||
- helm - add support for post-renderer flag (https://github.com/ansible-collections/kubernetes.core/issues/30).
|
|
||||||
- helm - add support for timeout cli parameter to allow setting Helm timeout independent of wait (https://github.com/ansible-collections/kubernetes.core/issues/67).
|
|
||||||
- helm - add support for wait parameter for helm uninstall command. (https://github.com/ansible-collections/kubernetes/core/issues/33).
|
|
||||||
- helm - support repo location for helm diff (https://github.com/ansible-collections/kubernetes.core/issues/174).
|
|
||||||
- helm - when ansible is executed in check mode, return the diff between what's deployed and what will be deployed.
|
|
||||||
- helm, helm_plugin, helm_info, helm_plugin_info, kubectl - add support for in-memory kubeconfig. (https://github.com/ansible-collections/kubernetes.core/issues/492).
|
|
||||||
- helm_info - add hooks, notes and manifest as part of returned information (https://github.com/ansible-collections/kubernetes.core/pull/546).
|
|
||||||
- helm_info - add release state as a module argument (https://github.com/ansible-collections/kubernetes.core/issues/377).
|
|
||||||
- helm_info - added possibility to get all values by adding get_all_values parameter (https://github.com/ansible-collections/kubernetes.core/pull/531).
|
|
||||||
- helm_plugin - Add plugin_version parameter to the helm_plugin module (https://github.com/ansible-collections/kubernetes.core/issues/157).
|
|
||||||
- helm_plugin - Add support for helm plugin update using state=update.
|
|
||||||
- helm_repository - Ability to replace (overwrite) the repo if it already exists by forcing (https://github.com/ansible-collections/kubernetes.core/issues/491).
|
|
||||||
- helm_repository - add support for pass-credentials cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/282).
|
|
||||||
- helm_repository - added support for ``host``, ``api_key``, ``validate_certs``, and ``ca_cert``.
|
|
||||||
- helm_repository - mark `pass_credentials` as no_log=True to silence false warning (https://github.com/ansible-collections/kubernetes.core/issues/412).
|
|
||||||
- helm_template - add name (NAME of release) and disable_hook as optional module arguments (https://github.com/ansible-collections/kubernetes.core/issues/313).
|
|
||||||
- helm_template - add show_only and release_namespace as module arguments (https://github.com/ansible-collections/kubernetes.core/issues/313).
|
|
||||||
- helm_template - add support for -set-file, -set-json, -set and -set-string options when running helm template (https://github.com/ansible-collections/kubernetes.core/pull/546).
|
|
||||||
- k8s - add no_proxy support to k8s* (https://github.com/ansible-collections/kubernetes.core/pull/272).
|
|
||||||
- k8s - add support for server_side_apply. (https://github.com/ansible-collections/kubernetes.core/issues/87).
|
|
||||||
- k8s - add support for user impersonation. (https://github.com/ansible-collections/kubernetes/core/issues/40).
|
|
||||||
- k8s - allow resource definition using metadata.generateName (https://github.com/ansible-collections/kubernetes.core/issues/35).
|
|
||||||
- k8s lookup plugin - Enable turbo mode via environment variable (https://github.com/ansible-collections/kubernetes.core/issues/291).
|
|
||||||
- k8s, k8s_scale, k8s_service - add support for resource definition as manifest via. (https://github.com/ansible-collections/kubernetes.core/issues/451).
|
|
||||||
- k8s_cp - remove dependency with 'find' executable on remote pod when state=from_pod (https://github.com/ansible-collections/kubernetes.core/issues/486).
|
|
||||||
- k8s_drain - Adds ``delete_emptydir_data`` option to ``k8s_drain.delete_options`` to evict pods with an ``emptyDir`` volume attached (https://github.com/ansible-collections/kubernetes.core/pull/322).
|
|
||||||
- k8s_exec - select first container from the pod if none specified (https://github.com/ansible-collections/kubernetes.core/issues/358).
|
|
||||||
- k8s_exec - update deprecation warning for `return_code` (https://github.com/ansible-collections/kubernetes.core/issues/417).
|
|
||||||
- k8s_json_patch - minor typo fix in the example section (https://github.com/ansible-collections/kubernetes.core/issues/411).
|
|
||||||
- k8s_log - add the ``all_containers`` for retrieving all containers' logs in the pod(s).
|
|
||||||
- k8s_log - added the `previous` parameter for retrieving the previously terminated pod logs (https://github.com/ansible-collections/kubernetes.core/issues/437).
|
|
||||||
- k8s_log - added the `tail_lines` parameter to limit the number of lines to be retrieved from the end of the logs (https://github.com/ansible-collections/kubernetes.core/issues/488).
|
|
||||||
- k8s_rollback - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/243).
|
|
||||||
- k8s_scale - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/244).
|
|
||||||
- kubectl - wait for dd command to complete before proceeding (https://github.com/ansible-collections/kubernetes.core/pull/321).
|
|
||||||
- kubectl.py - replace distutils.spawn.find_executable with shutil.which in the kubectl connection plugin (https://github.com/ansible-collections/kubernetes.core/pull/456).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- Fix dry_run logic - Pass the value dry_run=All instead of dry_run=True to the client, add conditional check on kubernetes client version as this feature is supported only for kubernetes >= 18.20.0 (https://github.com/ansible-collections/kubernetes.core/pull/561).
|
|
||||||
- Fix kubeconfig parameter when multiple config files are provided (https://github.com/ansible-collections/kubernetes.core/issues/435).
|
|
||||||
- Helm - Fix issue with alternative kubeconfig provided with validate_certs=False (https://github.com/ansible-collections/kubernetes.core/issues/538).
|
|
||||||
- Various modules and plugins - use vendored version of ``distutils.version`` instead of the deprecated Python standard library ``distutils`` (https://github.com/ansible-collections/kubernetes.core/pull/314).
|
|
||||||
- add missing documentation for filter plugin kubernetes.core.k8s_config_resource_name (https://github.com/ansible-collections/kubernetes.core/issues/558).
|
|
||||||
- common - Ensure the label_selectors parameter of _wait_for method is optional.
|
|
||||||
- common - handle ``aliases`` passed from inventory and lookup plugins.
|
|
||||||
- helm_template - evaluate release_values after values_files, insuring highest precedence (now same behavior as in helm module). (https://github.com/ansible-collections/kubernetes.core/pull/348)
|
|
||||||
- import exception from ``kubernetes.client.rest``.
|
|
||||||
- k8s - Fix issue with check_mode when using server side apply (https://github.com/ansible-collections/kubernetes.core/issues/547).
|
|
||||||
- k8s - Fix issue with server side apply with kubernetes release '25.3.0' (https://github.com/ansible-collections/kubernetes.core/issues/548).
|
|
||||||
- k8s_cp - add support for check_mode (https://github.com/ansible-collections/kubernetes.core/issues/380).
|
|
||||||
- k8s_drain - fix error caused by accessing an undefined variable when pods have local storage (https://github.com/ansible-collections/kubernetes.core/issues/292).
|
|
||||||
- k8s_info - don't wait on empty List resources (https://github.com/ansible-collections/kubernetes.core/pull/253).
|
|
||||||
- k8s_info - fix issue when module returns successful true after the resource cache has been established during periods where communication to the api-server is not possible (https://github.com/ansible-collections/kubernetes.core/issues/508).
|
|
||||||
- k8s_log - Fix module traceback when no resource found (https://github.com/ansible-collections/kubernetes.core/issues/479).
|
|
||||||
- k8s_log - fix exception raised when the name is not provided for resources requiring. (https://github.com/ansible-collections/kubernetes.core/issues/514)
|
|
||||||
- k8s_scale - fix waiting on statefulset when scaled down to 0 replicas (https://github.com/ansible-collections/kubernetes.core/issues/203).
|
|
||||||
- module_utils.common - change default opening mode to read-bytes to avoid bad interpretation of non ascii characters and strings, often present in 3rd party manifests.
|
|
||||||
- module_utils/k8s/client.py - fix issue when trying to authenticate with host, client_cert and client_key parameters only.
|
|
||||||
- remove binary file from k8s_cp test suite (https://github.com/ansible-collections/kubernetes.core/pull/298).
|
|
||||||
- use resource prefix when finding resource and apiVersion is v1 (https://github.com/ansible-collections/kubernetes.core/issues/351).
|
|
||||||
|
|
||||||
New Modules
|
|
||||||
-----------
|
|
||||||
|
|
||||||
- helm_pull - download a chart from a repository and (optionally) unpack it in local directory.
|
|
||||||
|
|
||||||
v2.3.1
|
|
||||||
======
|
======
|
||||||
|
|
||||||
Bugfixes
|
Bugfixes
|
||||||
--------
|
--------
|
||||||
|
|
||||||
- Catch expectation raised when the process is waiting for resources (https://github.com/ansible-collections/kubernetes.core/issues/407).
|
- fix missing requirements.txt file in kubernetes.core (https://github.com/ansible-collections/community.kubernetes/pull/401).
|
||||||
- Remove `omit` placeholder when defining resource using template parameter (https://github.com/ansible-collections/kubernetes.core/issues/431).
|
- pin molecule version to <3.3.0 to fix breaking changes (https://github.com/ansible-collections/community.kubernetes/pull/403).
|
||||||
- k8s - fix the issue when trying to delete resources using label_selectors options (https://github.com/ansible-collections/kubernetes.core/issues/433).
|
|
||||||
- k8s_cp - fix issue when using parameter local_path with file on managed node. (https://github.com/ansible-collections/kubernetes.core/issues/421).
|
|
||||||
- k8s_drain - fix error occurring when trying to drain node with disable_eviction set to yes (https://github.com/ansible-collections/kubernetes.core/issues/416).
|
|
||||||
|
|
||||||
v2.3.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- add support for dry run with kubernetes client version >=18.20 (https://github.com/ansible-collections/kubernetes.core/pull/245).
|
|
||||||
- fixed module_defaults by removing routing hacks from runtime.yml (https://github.com/ansible-collections/kubernetes.core/pull/347).
|
|
||||||
- helm - add support for timeout cli parameter to allow setting Helm timeout independent of wait (https://github.com/ansible-collections/kubernetes.core/issues/67).
|
|
||||||
- helm - add support for wait parameter for helm uninstall command. (https://github.com/ansible-collections/kubernetes/core/issues/33).
|
|
||||||
- helm - support repo location for helm diff (https://github.com/ansible-collections/kubernetes.core/issues/174).
|
|
||||||
- helm - when ansible is executed in check mode, return the diff between what's deployed and what will be deployed.
|
|
||||||
- helm_info - add release state as a module argument (https://github.com/ansible-collections/kubernetes.core/issues/377).
|
|
||||||
- helm_plugin - Add plugin_version parameter to the helm_plugin module (https://github.com/ansible-collections/kubernetes.core/issues/157).
|
|
||||||
- helm_plugin - Add support for helm plugin update using state=update.
|
|
||||||
- helm_repository - add support for pass-credentials cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/282).
|
|
||||||
- helm_repository - added support for ``host``, ``api_key``, ``validate_certs``, and ``ca_cert``.
|
|
||||||
- helm_template - add show_only and release_namespace as module arguments (https://github.com/ansible-collections/kubernetes.core/issues/313).
|
|
||||||
- k8s - add no_proxy support to k8s* (https://github.com/ansible-collections/kubernetes.core/pull/272).
|
|
||||||
- k8s - add support for server_side_apply. (https://github.com/ansible-collections/kubernetes.core/issues/87).
|
|
||||||
- k8s - add support for user impersonation. (https://github.com/ansible-collections/kubernetes/core/issues/40).
|
|
||||||
- k8s - allow resource definition using metadata.generateName (https://github.com/ansible-collections/kubernetes.core/issues/35).
|
|
||||||
- k8s lookup plugin - Enable turbo mode via environment variable (https://github.com/ansible-collections/kubernetes.core/issues/291).
|
|
||||||
- k8s_drain - Adds ``delete_emptydir_data`` option to ``k8s_drain.delete_options`` to evict pods with an ``emptyDir`` volume attached (https://github.com/ansible-collections/kubernetes.core/pull/322).
|
|
||||||
- k8s_exec - select first container from the pod if none specified (https://github.com/ansible-collections/kubernetes.core/issues/358).
|
|
||||||
- k8s_rollback - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/243).
|
|
||||||
- k8s_scale - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/244).
|
|
||||||
- kubectl - wait for dd command to complete before proceeding (https://github.com/ansible-collections/kubernetes.core/pull/321).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- Various modules and plugins - use vendored version of ``distutils.version`` instead of the deprecated Python standard library ``distutils`` (https://github.com/ansible-collections/kubernetes.core/pull/314).
|
|
||||||
- common - Ensure the label_selectors parameter of _wait_for method is optional.
|
|
||||||
- helm_template - evaluate release_values after values_files, insuring highest precedence (now same behavior as in helm module). (https://github.com/ansible-collections/kubernetes.core/pull/348)
|
|
||||||
- import exception from ``kubernetes.client.rest``.
|
|
||||||
- k8s_drain - fix error caused by accessing an undefined variable when pods have local storage (https://github.com/ansible-collections/kubernetes.core/issues/292).
|
|
||||||
- k8s_info - don't wait on empty List resources (https://github.com/ansible-collections/kubernetes.core/pull/253).
|
|
||||||
- k8s_scale - fix waiting on statefulset when scaled down to 0 replicas (https://github.com/ansible-collections/kubernetes.core/issues/203).
|
|
||||||
- module_utils.common - change default opening mode to read-bytes to avoid bad interpretation of non ascii characters and strings, often present in 3rd party manifests.
|
|
||||||
- remove binary file from k8s_cp test suite (https://github.com/ansible-collections/kubernetes.core/pull/298).
|
|
||||||
- use resource prefix when finding resource and apiVersion is v1 (https://github.com/ansible-collections/kubernetes.core/issues/351).
|
|
||||||
|
|
||||||
New Modules
|
|
||||||
-----------
|
|
||||||
|
|
||||||
- k8s_taint - Taint a node in a Kubernetes/OpenShift cluster
|
|
||||||
|
|
||||||
v2.2.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- add support for in-memory kubeconfig in addition to file for k8s modules. (https://github.com/ansible-collections/kubernetes.core/pull/212).
|
|
||||||
- helm - add support for history_max cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/164).
|
|
||||||
- k8s - add support for label_selectors options (https://github.com/ansible-collections/kubernetes.core/issues/43).
|
|
||||||
- k8s - add support for waiting on statefulsets (https://github.com/ansible-collections/kubernetes.core/pull/195).
|
|
||||||
- k8s_log - Add since-seconds parameter to the k8s_log module (https://github.com/ansible-collections/kubernetes.core/pull/142).
|
|
||||||
- new lookup plugin to support kubernetes kustomize feature. (https://github.com/ansible-collections/kubernetes.core/issues/39).
|
|
||||||
- re-enable turbo mode for collection. The default is initially set to off (https://github.com/ansible-collections/kubernetes.core/pull/169).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- common - import k8sdynamicclient directly to workaround Ansible upstream bug (https://github.com/ansible-collections/kubernetes.core/issues/162).
|
|
||||||
- connection plugin - add arguments information into censored command (https://github.com/ansible-collections/kubernetes.core/pull/196).
|
|
||||||
- fix resource cache not being used (https://github.com/ansible-collections/kubernetes.core/pull/228).
|
|
||||||
- k8s - Fixes a bug where diff was always returned when using apply or modifying an existing object, even when diff=no was specified. The module no longer returns diff unless requested and will now honor diff=no (https://github.com/ansible-collections/kubernetes.core/pull/146).
|
|
||||||
- k8s_cp - fix k8s_cp uploading when target container's WORKDIR is not '/' (https://github.com/ansible-collections/kubernetes.core/issues/222).
|
|
||||||
- k8s_exec - add missing deprecation notice to return_code for k8s_exec (https://github.com/ansible-collections/kubernetes.core/pull/233).
|
|
||||||
- k8s_exec - fix k8s_exec returning rc attribute, to follow ansible's common return values (https://github.com/ansible-collections/kubernetes.core/pull/230).
|
|
||||||
- lookup - recommend query instead of lookup (https://github.com/ansible-collections/kubernetes.core/issues/147).
|
|
||||||
- support the ``template`` param in all collections depending on kubernetes.core (https://github.com/ansible-collections/kubernetes.core/pull/154).
|
|
||||||
|
|
||||||
New Plugins
|
|
||||||
-----------
|
|
||||||
|
|
||||||
Lookup
|
|
||||||
~~~~~~
|
|
||||||
|
|
||||||
- kustomize - Build a set of kubernetes resources using a 'kustomization.yaml' file.
|
|
||||||
|
|
||||||
New Modules
|
|
||||||
-----------
|
|
||||||
|
|
||||||
- k8s_cp - Copy files and directories to and from pod.
|
|
||||||
- k8s_drain - Drain, Cordon, or Uncordon node in k8s cluster
|
|
||||||
|
|
||||||
v2.1.1
|
|
||||||
======
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- check auth params for existence, not whether they are true (https://github.com/ansible-collections/kubernetes.core/pull/151).
|
|
||||||
|
|
||||||
v2.1.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- remove cloud.common as default dependency (https://github.com/ansible-collections/kubernetes.core/pull/148).
|
|
||||||
- temporarily disable turbo mode (https://github.com/ansible-collections/kubernetes.core/pull/149).
|
|
||||||
|
|
||||||
v2.0.2
|
|
||||||
======
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- Fix apply for k8s module when an array attribute from definition contains empty dict (https://github.com/ansible-collections/kubernetes.core/issues/113).
|
|
||||||
- rename the apply function to fix broken imports in Ansible 2.9 (https://github.com/ansible-collections/kubernetes.core/pull/135).
|
|
||||||
|
|
||||||
v2.0.1
|
|
||||||
======
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- inventory - add community.kubernetes to list of plugin choices in k8s inventory (https://github.com/ansible-collections/kubernetes.core/pull/128).
|
|
||||||
|
|
||||||
v2.0.0
|
|
||||||
======
|
|
||||||
|
|
||||||
Major Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- k8s - deprecate merge_type=json. The JSON patch functionality has never worked (https://github.com/ansible-collections/kubernetes.core/pull/99).
|
|
||||||
- k8s_json_patch - split JSON patch functionality out into a separate module (https://github.com/ansible-collections/kubernetes.core/pull/99).
|
|
||||||
- replaces the openshift client with the official kubernetes client (https://github.com/ansible-collections/kubernetes.core/issues/34).
|
|
||||||
|
|
||||||
Minor Changes
|
|
||||||
-------------
|
|
||||||
|
|
||||||
- Add cache_file when DynamicClient is created (https://github.com/ansible-collections/kubernetes.core/pull/46).
|
|
||||||
- Add configmap and secret hash functionality (https://github.com/ansible-collections/kubernetes.core/pull/48).
|
|
||||||
- Add logic for cache file name generation (https://github.com/ansible-collections/kubernetes.core/pull/46).
|
|
||||||
- Replicate apply method in the DynamicClient (https://github.com/ansible-collections/kubernetes.core/pull/45).
|
|
||||||
- add ``proxy_headers`` option for authentication on k8s_xxx modules (https://github.com/ansible-collections/kubernetes.core/pull/58).
|
|
||||||
- add support for using tags when running molecule test suite (https://github.com/ansible-collections/kubernetes.core/pull/62).
|
|
||||||
- added documentation for ``kubernetes.core`` collection (https://github.com/ansible-collections/kubernetes.core/pull/50).
|
|
||||||
- common - removed ``KubernetesAnsibleModule``, use ``K8sAnsibleMixin`` instead (https://github.com/ansible-collections/kubernetes.core/pull/70).
|
|
||||||
- helm - add example for complex values in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/issues/109).
|
|
||||||
- k8s - Handle list of definition for option `template` (https://github.com/ansible-collections/kubernetes.core/pull/49).
|
|
||||||
- k8s - `continue_on_error` option added (whether to continue on creation/deletion errors) (https://github.com/ansible-collections/kubernetes.core/pull/49).
|
|
||||||
- k8s - support ``patched`` value for ``state`` option. patched state is an existing resource that has a given patch applied (https://github.com/ansible-collections/kubernetes.core/pull/90).
|
|
||||||
- k8s - wait for all pods to update when rolling out daemonset changes (https://github.com/ansible-collections/kubernetes.core/pull/102).
|
|
||||||
- k8s_scale - ability to scale multiple resource using ``label_selectors`` (https://github.com/ansible-collections/kubernetes.core/pull/114).
|
|
||||||
- k8s_scale - new parameter to determine whether to continue or not on error when scaling multiple resources (https://github.com/ansible-collections/kubernetes.core/pull/114).
|
|
||||||
- kubeconfig - update ``kubeconfig`` file location in the documentation (https://github.com/ansible-collections/kubernetes.core/issues/53).
|
|
||||||
- remove old change log fragment files.
|
|
||||||
- remove the deprecated ``KubernetesRawModule`` class (https://github.com/ansible-collections/community.kubernetes/issues/232).
|
|
||||||
- replicate base resource for lists functionality (https://github.com/ansible-collections/kubernetes.core/pull/89).
|
|
||||||
|
|
||||||
Breaking Changes / Porting Guide
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
- Drop python 2 support (https://github.com/ansible-collections/kubernetes.core/pull/86).
|
|
||||||
- helm_plugin - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85).
|
|
||||||
- helm_plugin_info - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85).
|
|
||||||
- k8s_cluster_info - returned apis as list to avoid being overwritten in case of multiple version (https://github.com/ansible-collections/kubernetes.core/pull/41).
|
|
||||||
- k8s_facts - remove the deprecated alias from k8s_facts to k8s_info (https://github.com/ansible-collections/kubernetes.core/pull/125).
|
|
||||||
|
|
||||||
Bugfixes
|
|
||||||
--------
|
|
||||||
|
|
||||||
- enable unit tests in CI (https://github.com/ansible-collections/community.kubernetes/pull/407).
|
|
||||||
- helm - Accept ``validate_certs`` with a ``context`` (https://github.com/ansible-collections/kubernetes.core/pull/74).
|
|
||||||
- helm - fix helm ignoring the kubeconfig context when passed through the ``context`` param or the ``K8S_AUTH_CONTEXT`` environment variable (https://github.com/ansible-collections/community.kubernetes/issues/385).
|
|
||||||
- helm - handle multiline output of ``helm plugin list`` command (https://github.com/ansible-collections/community.kubernetes/issues/399).
|
|
||||||
- k8s - fix merge_type option when set to json (https://github.com/ansible-collections/kubernetes.core/issues/54).
|
|
||||||
- k8s - lookup should return list even if single item is found (https://github.com/ansible-collections/kubernetes.core/issues/9).
|
|
||||||
- k8s inventory - remove extra trailing slashes from the hostname (https://github.com/ansible-collections/kubernetes.core/issues/52).
|
|
||||||
|
|
||||||
New Modules
|
|
||||||
-----------
|
|
||||||
|
|
||||||
- k8s_json_patch - Apply JSON patch operations to existing objects
|
|
||||||
|
|
||||||
v1.2.0
|
v1.2.0
|
||||||
======
|
======
|
||||||
|
|||||||
@@ -9,16 +9,16 @@ https://docs.ansible.com/ansible/latest/community/index.html).
|
|||||||
|
|
||||||
## Kubernetes Collections
|
## Kubernetes Collections
|
||||||
|
|
||||||
### kubernetes.core
|
### community.kubernetes
|
||||||
|
|
||||||
This collection contains modules and plugins contributed and maintained by the Ansible Kubernetes
|
This collection contains modules and plugins contributed and maintained by the Ansible Kubernetes
|
||||||
community.
|
community.
|
||||||
|
|
||||||
New modules and plugins developed by the community should be proposed to `kubernetes.core`.
|
New modules and plugins developed by the community should be proposed to `community.kubernetes`.
|
||||||
|
|
||||||
## Submitting Issues
|
## Submitting Issues
|
||||||
All software has bugs, and the `kubernetes.core` collection is no exception. When you find a bug,
|
All software has bugs, and the `community.kubernetes` collection is no exception. When you find a bug,
|
||||||
you can help tremendously by [telling us about it](https://github.com/ansible-collections/kubernetes.core/issues/new/choose).
|
you can help tremendously by [telling us about it](https://github.com/ansible-collections/community.kubernetes/issues/new/choose).
|
||||||
|
|
||||||
If you should discover that the bug you're trying to file already exists in an issue,
|
If you should discover that the bug you're trying to file already exists in an issue,
|
||||||
you can help by verifying the behavior of the reported bug with a comment in that
|
you can help by verifying the behavior of the reported bug with a comment in that
|
||||||
@@ -28,7 +28,7 @@ issue, or by reporting any additional information.
|
|||||||
|
|
||||||
All modules MUST have integration tests for new features.
|
All modules MUST have integration tests for new features.
|
||||||
Bug fixes for modules that currently have integration tests SHOULD have tests added.
|
Bug fixes for modules that currently have integration tests SHOULD have tests added.
|
||||||
New modules should be submitted to the [kubernetes.core](https://github.com/ansible-collections/kubernetes.core) collection and MUST have integration tests.
|
New modules should be submitted to the [community.kubernetes](https://github.com/ansible-collections/community.kubernetes) collection and MUST have integration tests.
|
||||||
|
|
||||||
Expected test criteria:
|
Expected test criteria:
|
||||||
* Resource creation under check mode
|
* Resource creation under check mode
|
||||||
@@ -48,25 +48,18 @@ Where modules have multiple parameters we recommend running through the 4-step m
|
|||||||
|
|
||||||
For general information on running the integration tests see the
|
For general information on running the integration tests see the
|
||||||
[Integration Tests page of the Module Development Guide](https://docs.ansible.com/ansible/devel/dev_guide/testing_integration.html#testing-integration),
|
[Integration Tests page of the Module Development Guide](https://docs.ansible.com/ansible/devel/dev_guide/testing_integration.html#testing-integration),
|
||||||
especially the section on configuration for cloud tests.
|
especially the section on configuration for cloud tests. For questions about writing tests the Ansible Kubernetes community can be found on Freenode IRC as detailed below.
|
||||||
|
|
||||||
### Updating documentation
|
|
||||||
|
|
||||||
Modules and plugins documentation is autogenerated using ``collection_prep_add_docs`` command from [collection_prep](https://github.com/ansible-network/collection_prep) package.
|
|
||||||
|
|
||||||
You can install ``collection_prep`` using
|
|
||||||
|
|
||||||
# git clone https://github.com/ansible-network/collection_prep
|
|
||||||
# cd collection_prep
|
|
||||||
# pip install .
|
|
||||||
|
|
||||||
After installation, you can update documentation
|
|
||||||
|
|
||||||
# collection_prep_add_docs -p /<PATH_OF_COLLECTION>/kubernetes/core
|
|
||||||
|
|
||||||
Review the changes and create a pull request using updated files.
|
|
||||||
|
|
||||||
### Code of Conduct
|
### Code of Conduct
|
||||||
The `kubernetes.core` collection follows the Ansible project's
|
The `community.kubernetes` collection follows the Ansible project's
|
||||||
[Code of Conduct](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html).
|
[Code of Conduct](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html).
|
||||||
Please read and familiarize yourself with this document.
|
Please read and familiarize yourself with this document.
|
||||||
|
|
||||||
|
### IRC
|
||||||
|
Our IRC channels may require you to register your nickname. If you receive an error when you connect, see
|
||||||
|
[Freenode's Nickname Registration guide](https://freenode.net/kb/answer/registration) for instructions.
|
||||||
|
|
||||||
|
The `#ansible-kubernetes` channel on Freenode IRC is the main and official place to discuss use and development of the `community.kubernetes` collection.
|
||||||
|
|
||||||
|
For more information about Ansible's Kubernetes integration, browse the resources in the [Kubernetes Working Group](https://github.com/ansible/community/wiki/Kubernetes) Community wiki page.
|
||||||
|
|||||||
31
Makefile
31
Makefile
@@ -1,11 +1,11 @@
|
|||||||
# Also needs to be updated in galaxy.yml
|
# Also needs to be updated in galaxy.yml
|
||||||
VERSION = 5.2.0
|
VERSION = 1.2.1
|
||||||
|
|
||||||
TEST_ARGS ?= ""
|
TEST_ARGS ?= ""
|
||||||
PYTHON_VERSION ?= `python -c 'import platform; print(".".join(platform.python_version_tuple()[0:2]))'`
|
PYTHON_VERSION ?= `python -c 'import platform; print("{0}.{1}".format(platform.python_version_tuple()[0], platform.python_version_tuple()[1]))'`
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f kubernetes-core-${VERSION}.tar.gz
|
rm -f community-kubernetes-${VERSION}.tar.gz
|
||||||
rm -rf ansible_collections
|
rm -rf ansible_collections
|
||||||
rm -rf tests/output
|
rm -rf tests/output
|
||||||
|
|
||||||
@@ -13,16 +13,31 @@ build: clean
|
|||||||
ansible-galaxy collection build
|
ansible-galaxy collection build
|
||||||
|
|
||||||
release: build
|
release: build
|
||||||
ansible-galaxy collection publish kubernetes-core-${VERSION}.tar.gz
|
ansible-galaxy collection publish community-kubernetes-${VERSION}.tar.gz
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
ansible-galaxy collection install -p ansible_collections kubernetes-core-${VERSION}.tar.gz
|
ansible-galaxy collection install -p ansible_collections community-kubernetes-${VERSION}.tar.gz
|
||||||
|
|
||||||
test-sanity:
|
test-sanity:
|
||||||
ansible-test sanity --docker -v --color --python $(PYTHON_VERSION) $(?TEST_ARGS)
|
ansible-test sanity --docker -v --color --python $(PYTHON_VERSION) $(?TEST_ARGS)
|
||||||
|
|
||||||
test-integration:
|
test-integration:
|
||||||
ansible-test integration --diff --no-temp-workdir --color --skip-tags False --retry-on-error --continue-on-error --python $(PYTHON_VERSION) -v --coverage $(?TEST_ARGS)
|
ansible-test integration --docker -v --color --retry-on-error --python $(PYTHON_VERSION) --continue-on-error --diff --coverage $(?TEST_ARGS)
|
||||||
|
|
||||||
test-unit:
|
test-molecule:
|
||||||
ansible-test units --docker -v --color --python $(PYTHON_VERSION) $(?TEST_ARGS)
|
molecule test
|
||||||
|
|
||||||
|
downstream-test-sanity:
|
||||||
|
./utils/downstream.sh -s
|
||||||
|
|
||||||
|
downstream-test-integration:
|
||||||
|
./utils/downstream.sh -i
|
||||||
|
|
||||||
|
downstream-test-molecule:
|
||||||
|
./utils/downstream.sh -m
|
||||||
|
|
||||||
|
downstream-build:
|
||||||
|
./utils/downstream.sh -b
|
||||||
|
|
||||||
|
downstream-release:
|
||||||
|
./utils/downstream.sh -r
|
||||||
|
|||||||
@@ -1,48 +0,0 @@
|
|||||||
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
|
|
||||||
--------------------------------------------
|
|
||||||
|
|
||||||
1. This LICENSE AGREEMENT is between the Python Software Foundation
|
|
||||||
("PSF"), and the Individual or Organization ("Licensee") accessing and
|
|
||||||
otherwise using this software ("Python") in source or binary form and
|
|
||||||
its associated documentation.
|
|
||||||
|
|
||||||
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
|
||||||
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
|
|
||||||
analyze, test, perform and/or display publicly, prepare derivative works,
|
|
||||||
distribute, and otherwise use Python alone or in any derivative version,
|
|
||||||
provided, however, that PSF's License Agreement and PSF's notice of copyright,
|
|
||||||
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
|
||||||
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation;
|
|
||||||
All Rights Reserved" are retained in Python alone or in any derivative version
|
|
||||||
prepared by Licensee.
|
|
||||||
|
|
||||||
3. In the event Licensee prepares a derivative work that is based on
|
|
||||||
or incorporates Python or any part thereof, and wants to make
|
|
||||||
the derivative work available to others as provided herein, then
|
|
||||||
Licensee hereby agrees to include in any such work a brief summary of
|
|
||||||
the changes made to Python.
|
|
||||||
|
|
||||||
4. PSF is making Python available to Licensee on an "AS IS"
|
|
||||||
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
|
||||||
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
|
|
||||||
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
|
||||||
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
|
|
||||||
INFRINGE ANY THIRD PARTY RIGHTS.
|
|
||||||
|
|
||||||
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
|
||||||
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
|
||||||
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
|
|
||||||
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
|
||||||
|
|
||||||
6. This License Agreement will automatically terminate upon a material
|
|
||||||
breach of its terms and conditions.
|
|
||||||
|
|
||||||
7. Nothing in this License Agreement shall be deemed to create any
|
|
||||||
relationship of agency, partnership, or joint venture between PSF and
|
|
||||||
Licensee. This License Agreement does not grant permission to use PSF
|
|
||||||
trademarks or trade name in a trademark sense to endorse or promote
|
|
||||||
products or services of Licensee, or any third party.
|
|
||||||
|
|
||||||
8. By copying, installing or otherwise using Python, Licensee
|
|
||||||
agrees to be bound by the terms and conditions of this License
|
|
||||||
Agreement.
|
|
||||||
208
README.md
208
README.md
@@ -1,123 +1,65 @@
|
|||||||
# Kubernetes Collection for Ansible
|
# Kubernetes Collection for Ansible
|
||||||
|
|
||||||
This repository hosts the `kubernetes.core` (formerly known as `community.kubernetes`) Ansible Collection.
|
[](https://github.com/ansible-collections/community.kubernetes/actions) [](https://codecov.io/gh/ansible-collections/community.kubernetes)
|
||||||
|
|
||||||
## Description
|
This repo hosts the `community.kubernetes` (a.k.a. `kubernetes.core`) Ansible Collection.
|
||||||
|
|
||||||
The collection includes a variety of Ansible content to help automate the management of applications in Kubernetes and OpenShift clusters, as well as the provisioning and maintenance of clusters themselves.
|
The collection includes a variety of Ansible content to help automate the management of applications in Kubernetes and OpenShift clusters, as well as the provisioning and maintenance of clusters themselves.
|
||||||
|
|
||||||
## Communication
|
## Included content
|
||||||
|
|
||||||
* Join the Ansible forum:
|
|
||||||
* [Get Help](https://forum.ansible.com/c/help/6): get help or help others.
|
|
||||||
* [Posts tagged with 'kubernetes'](https://forum.ansible.com/tag/kubernetes): subscribe to participate in collection-related conversations.
|
|
||||||
* [Social Spaces](https://forum.ansible.com/c/chat/4): gather and interact with fellow enthusiasts.
|
|
||||||
* [News & Announcements](https://forum.ansible.com/c/news/5): track project-wide announcements including social events.
|
|
||||||
|
|
||||||
* The Ansible [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn): used to announce releases and important changes.
|
|
||||||
|
|
||||||
For more information about communication, see the [Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
|
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
<!--start requires_ansible-->
|
|
||||||
## Ansible Version Compatibility
|
|
||||||
|
|
||||||
This collection has been tested against following Ansible versions: **>=2.15.0**.
|
|
||||||
|
|
||||||
For collections that support Ansible 2.9, please ensure you update your `network_os` to use the
|
|
||||||
fully qualified collection name (for example, `cisco.ios.ios`).
|
|
||||||
Plugins and modules within a collection may be tested with only specific Ansible versions.
|
|
||||||
A collection may contain metadata that identifies these versions.
|
|
||||||
PEP440 is the schema used to describe the versions of Ansible.
|
|
||||||
<!--end requires_ansible-->
|
|
||||||
|
|
||||||
### Python Support
|
|
||||||
|
|
||||||
* Collection supports 3.9+
|
|
||||||
|
|
||||||
Note: Python2 is deprecated from [1st January 2020](https://www.python.org/doc/sunset-python-2/). Please switch to Python3.
|
|
||||||
|
|
||||||
### Kubernetes Version Support
|
|
||||||
|
|
||||||
This collection supports Kubernetes versions >= 1.24.
|
|
||||||
|
|
||||||
### Included Content
|
|
||||||
|
|
||||||
Click on the name of a plugin or module to view that content's documentation:
|
Click on the name of a plugin or module to view that content's documentation:
|
||||||
|
|
||||||
<!--start collection content-->
|
- **Connection Plugins**:
|
||||||
### Connection Plugins
|
- [kubectl](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/kubectl_connection.html)
|
||||||
Name | Description
|
- **Filter Plugins**:
|
||||||
--- | ---
|
- [k8s_config_resource_name](https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#kubernetes-filters)
|
||||||
[kubernetes.core.kubectl](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.kubectl_connection.rst)|Execute tasks in pods running on Kubernetes.
|
- **Inventory Source**:
|
||||||
|
- [k8s](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_inventory.html)
|
||||||
|
- [openshift](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/openshift_inventory.html)
|
||||||
|
- **Lookup Plugins**:
|
||||||
|
- [k8s](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_lookup.html)
|
||||||
|
- **Modules**:
|
||||||
|
- [k8s](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_module.html)
|
||||||
|
- [k8s_auth](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_auth_module.html)
|
||||||
|
- [k8s_cluster_info](https://github.com/ansible-collections/community.kubernetes/blob/main/plugins/modules/k8s_cluster_info.py)
|
||||||
|
- [k8s_exec](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_exec_module.html)
|
||||||
|
- [k8s_info](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_info_module.html)
|
||||||
|
- [k8s_log](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_log_module.html)
|
||||||
|
- [k8s_scale](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_scale_module.html)
|
||||||
|
- [k8s_service](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/k8s_service_module.html)
|
||||||
|
- [helm](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/helm_module.html)
|
||||||
|
- [helm_info](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/helm_info_module.html)
|
||||||
|
- [helm_plugin](https://github.com/ansible-collections/community.kubernetes/blob/main/plugins/modules/helm_plugin.py)
|
||||||
|
- [helm_plugin_info](https://github.com/ansible-collections/community.kubernetes/blob/main/plugins/modules/helm_plugin_info.py)
|
||||||
|
- [helm_repository](https://docs.ansible.com/ansible/2.10/collections/community/kubernetes/helm_repository_module.html)
|
||||||
|
|
||||||
### K8s filter Plugins
|
## Installation and Usage
|
||||||
Name | Description
|
|
||||||
--- | ---
|
|
||||||
kubernetes.core.k8s_config_resource_name|Generate resource name for the given resource of type ConfigMap, Secret
|
|
||||||
|
|
||||||
### Inventory Plugins
|
### Installing the Collection from Ansible Galaxy
|
||||||
Name | Description
|
|
||||||
--- | ---
|
|
||||||
[kubernetes.core.k8s](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_inventory.rst)|Kubernetes (K8s) inventory source
|
|
||||||
|
|
||||||
### Lookup Plugins
|
|
||||||
Name | Description
|
|
||||||
--- | ---
|
|
||||||
[kubernetes.core.k8s](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_lookup.rst)|Query the K8s API
|
|
||||||
[kubernetes.core.kustomize](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.kustomize_lookup.rst)|Build a set of kubernetes resources using a 'kustomization.yaml' file.
|
|
||||||
|
|
||||||
### Modules
|
|
||||||
Name | Description
|
|
||||||
--- | ---
|
|
||||||
[kubernetes.core.helm](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_module.rst)|Manages Kubernetes packages with the Helm package manager
|
|
||||||
[kubernetes.core.helm_info](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_info_module.rst)|Get information from Helm package deployed inside the cluster
|
|
||||||
[kubernetes.core.helm_plugin](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_plugin_module.rst)|Manage Helm plugins
|
|
||||||
[kubernetes.core.helm_plugin_info](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_plugin_info_module.rst)|Gather information about Helm plugins
|
|
||||||
[kubernetes.core.helm_pull](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_pull_module.rst)|download a chart from a repository and (optionally) unpack it in local directory.
|
|
||||||
[kubernetes.core.helm_registry_auth](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_registry_auth_module.rst)|Helm registry authentication module
|
|
||||||
[kubernetes.core.helm_repository](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_repository_module.rst)|Manage Helm repositories.
|
|
||||||
[kubernetes.core.helm_template](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_template_module.rst)|Render chart templates
|
|
||||||
[kubernetes.core.k8s](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_module.rst)|Manage Kubernetes (K8s) objects
|
|
||||||
[kubernetes.core.k8s_cluster_info](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_cluster_info_module.rst)|Describe Kubernetes (K8s) cluster, APIs available and their respective versions
|
|
||||||
[kubernetes.core.k8s_cp](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_cp_module.rst)|Copy files and directories to and from pod.
|
|
||||||
[kubernetes.core.k8s_drain](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_drain_module.rst)|Drain, Cordon, or Uncordon node in k8s cluster
|
|
||||||
[kubernetes.core.k8s_exec](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_exec_module.rst)|Execute command in Pod
|
|
||||||
[kubernetes.core.k8s_info](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_info_module.rst)|Describe Kubernetes (K8s) objects
|
|
||||||
[kubernetes.core.k8s_json_patch](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_json_patch_module.rst)|Apply JSON patch operations to existing objects
|
|
||||||
[kubernetes.core.k8s_log](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_log_module.rst)|Fetch logs from Kubernetes resources
|
|
||||||
[kubernetes.core.k8s_rollback](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_rollback_module.rst)|Rollback Kubernetes (K8S) Deployments and DaemonSets
|
|
||||||
[kubernetes.core.k8s_scale](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_scale_module.rst)|Set a new size for a Deployment, ReplicaSet, Replication Controller, or Job.
|
|
||||||
[kubernetes.core.k8s_service](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_service_module.rst)|Manage Services on Kubernetes
|
|
||||||
[kubernetes.core.k8s_taint](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_taint_module.rst)|Taint a node in a Kubernetes/OpenShift cluster
|
|
||||||
|
|
||||||
<!--end collection content-->
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Before using the Kubernetes collection, you need to install it with the Ansible Galaxy CLI:
|
Before using the Kubernetes collection, you need to install it with the Ansible Galaxy CLI:
|
||||||
|
|
||||||
ansible-galaxy collection install kubernetes.core
|
ansible-galaxy collection install community.kubernetes
|
||||||
|
|
||||||
You can also include it in a `requirements.yml` file and install it via `ansible-galaxy collection install -r requirements.yml`, using the format:
|
You can also include it in a `requirements.yml` file and install it via `ansible-galaxy collection install -r requirements.yml`, using the format:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
collections:
|
collections:
|
||||||
- name: kubernetes.core
|
- name: community.kubernetes
|
||||||
version: 5.3.0
|
version: 1.2.1
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installing the Kubernetes Python Library
|
### Installing the OpenShift Python Library
|
||||||
|
|
||||||
Content in this collection requires the [Kubernetes Python client](https://pypi.org/project/kubernetes/) to interact with Kubernetes' APIs. You can install it with:
|
Content in this collection requires the [OpenShift Python client](https://pypi.org/project/openshift/) to interact with Kubernetes' APIs. You can install it with:
|
||||||
|
|
||||||
pip3 install kubernetes
|
pip3 install openshift
|
||||||
|
|
||||||
## Use Cases
|
### Using modules from the Kubernetes Collection in your playbooks
|
||||||
|
|
||||||
It's preferable to use content in this collection using their Fully Qualified Collection Namespace (FQCN), for example `kubernetes.core.k8s_info`:
|
It's preferable to use content in this collection using their Fully Qualified Collection Namespace (FQCN), for example `community.kubernetes.k8s_info`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
@@ -127,14 +69,14 @@ It's preferable to use content in this collection using their Fully Qualified Co
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure the myapp Namespace exists.
|
- name: Ensure the myapp Namespace exists.
|
||||||
kubernetes.core.k8s:
|
community.kubernetes.k8s:
|
||||||
api_version: v1
|
api_version: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
name: myapp
|
name: myapp
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Ensure the myapp Service exists in the myapp Namespace.
|
- name: Ensure the myapp Service exists in the myapp Namespace.
|
||||||
kubernetes.core.k8s:
|
community.kubernetes.k8s:
|
||||||
state: present
|
state: present
|
||||||
definition:
|
definition:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -151,7 +93,7 @@ It's preferable to use content in this collection using their Fully Qualified Co
|
|||||||
app: myapp
|
app: myapp
|
||||||
|
|
||||||
- name: Get a list of all Services in the myapp namespace.
|
- name: Get a list of all Services in the myapp namespace.
|
||||||
kubernetes.core.k8s_info:
|
community.kubernetes.k8s_info:
|
||||||
kind: Service
|
kind: Service
|
||||||
namespace: myapp
|
namespace: myapp
|
||||||
register: myapp_services
|
register: myapp_services
|
||||||
@@ -170,7 +112,7 @@ If upgrading older playbooks which were built prior to Ansible 2.10 and this col
|
|||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
collections:
|
collections:
|
||||||
- kubernetes.core
|
- community.kubernetes
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure the myapp Namespace exists.
|
- name: Ensure the myapp Namespace exists.
|
||||||
@@ -183,34 +125,11 @@ If upgrading older playbooks which were built prior to Ansible 2.10 and this col
|
|||||||
|
|
||||||
For documentation on how to use individual modules and other content included in this collection, please see the links in the 'Included content' section earlier in this README.
|
For documentation on how to use individual modules and other content included in this collection, please see the links in the 'Included content' section earlier in this README.
|
||||||
|
|
||||||
## Ansible Turbo Mode Tech Preview
|
## Testing and Development
|
||||||
|
|
||||||
|
|
||||||
The ``kubernetes.core`` collection supports Ansible Turbo mode as a tech preview via the ``cloud.common`` collection. By default, this feature is disabled. To enable Turbo mode for modules, set the environment variable `ENABLE_TURBO_MODE=1` on the managed node. For example:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
- hosts: remote
|
|
||||||
environment:
|
|
||||||
ENABLE_TURBO_MODE: 1
|
|
||||||
tasks:
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
To enable Turbo mode for k8s lookup plugin, set the environment variable `ENABLE_TURBO_MODE=1` on the managed node. This is not working when
|
|
||||||
defined in the playbook using `environment` keyword as above, you must set it using `export ENABLE_TURBO_MODE=1`.
|
|
||||||
|
|
||||||
Please read more about Ansible Turbo mode - [here](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/ansible_turbo_mode.rst).
|
|
||||||
|
|
||||||
## Contributing to this Collection
|
|
||||||
|
|
||||||
If you want to develop new content for this collection or improve what's already here, the easiest way to work on the collection is to clone it into one of the configured [`COLLECTIONS_PATHS`](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#collections-paths), and work on it there.
|
If you want to develop new content for this collection or improve what's already here, the easiest way to work on the collection is to clone it into one of the configured [`COLLECTIONS_PATHS`](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#collections-paths), and work on it there.
|
||||||
|
|
||||||
See [Contributing to kubernetes.core](CONTRIBUTING.md).
|
See [Contributing to community.kubernetes](CONTRIBUTING.md).
|
||||||
|
|
||||||
## Testing
|
|
||||||
|
|
||||||
[](https://github.com/ansible-collections/kubernetes.core/actions/workflows/linters.yaml) [](https://github.com/ansible-collections/kubernetes.core/actions/workflows/integration-tests.yaml) [](https://github.com/ansible-collections/kubernetes.core/actions/workflows/sanity-tests.yaml) [](https://github.com/ansible-collections/kubernetes.core/actions/workflows/unit-tests.yaml) [](https://app.codecov.io/gh/ansible-collections/kubernetes.core)
|
|
||||||
|
|
||||||
### Testing with `ansible-test`
|
### Testing with `ansible-test`
|
||||||
|
|
||||||
@@ -220,7 +139,6 @@ You can run the collection's test suites with the commands:
|
|||||||
|
|
||||||
make test-sanity
|
make test-sanity
|
||||||
make test-integration
|
make test-integration
|
||||||
make test-unit
|
|
||||||
|
|
||||||
### Testing with `molecule`
|
### Testing with `molecule`
|
||||||
|
|
||||||
@@ -236,45 +154,31 @@ Releases are automatically built and pushed to Ansible Galaxy for any new tag. B
|
|||||||
1. Update the version in the following places:
|
1. Update the version in the following places:
|
||||||
1. The `version` in `galaxy.yml`
|
1. The `version` in `galaxy.yml`
|
||||||
2. This README's `requirements.yml` example
|
2. This README's `requirements.yml` example
|
||||||
3. The `VERSION` in `Makefile`
|
3. The `DOWNSTREAM_VERSION` in `utils/downstream.sh`
|
||||||
|
4. The `VERSION` in `Makefile`
|
||||||
2. Update the CHANGELOG:
|
2. Update the CHANGELOG:
|
||||||
1. Make sure you have [`antsibull-changelog`](https://pypi.org/project/antsibull-changelog/) installed.
|
1. Make sure you have [`antsibull-changelog`](https://pypi.org/project/antsibull-changelog/) installed.
|
||||||
2. Make sure there are fragments for all known changes in `changelogs/fragments`.
|
2. Make sure there are fragments for all known changes in `changelogs/fragments`.
|
||||||
3. Run `antsibull-changelog release`.
|
3. Run `antsibull-changelog release`.
|
||||||
3. Commit the changes and create a PR with the changes. Wait for tests to pass, then merge it once they have.
|
3. Commit the changes and create a PR with the changes. Wait for tests to pass, then merge it once they have.
|
||||||
4. Tag the version in Git and push to GitHub.
|
4. Tag the version in Git and push to GitHub.
|
||||||
|
5. Manually build and release the `kubernetes.core` collection (see following section).
|
||||||
|
|
||||||
After the version is published, verify it exists on the [Kubernetes Collection Galaxy page](https://galaxy.ansible.com/kubernetes/core).
|
After the version is published, verify it exists on the [Kubernetes Collection Galaxy page](https://galaxy.ansible.com/community/kubernetes).
|
||||||
|
|
||||||
|
### Publishing `kubernetes.core`
|
||||||
|
|
||||||
|
Until the contents of repository are moved into a new `kubernetes.core` repository on GitHub, this repository is the source of both the `kubernetes.core` and `community.kubernetes` repositories on Ansible Galaxy.
|
||||||
|
|
||||||
|
To publish the `kubernetes.core` collection on Ansible Galaxy, do the following:
|
||||||
|
|
||||||
|
1. Run `make downstream-release` (on macOS, add `LC_ALL=C` before the command).
|
||||||
|
|
||||||
The process for uploading a supported release to Automation Hub is documented separately.
|
The process for uploading a supported release to Automation Hub is documented separately.
|
||||||
|
|
||||||
## Support
|
## More Information
|
||||||
|
|
||||||
<!--List available communication channels. In addition to channels specific to your collection, we also recommend to use the following ones.-->
|
|
||||||
|
|
||||||
> **Note:** The `stable-4` branch, which handles all `4.x.y` releases of this collection, is no longer supported. This means that no backports nor releases will be performed on the `stable-4` branch.
|
|
||||||
|
|
||||||
We announce releases and important changes through Ansible's [The Bullhorn newsletter](https://github.com/ansible/community/wiki/News#the-bullhorn). Be sure you are [subscribed](https://eepurl.com/gZmiEP).
|
|
||||||
|
|
||||||
We take part in the global quarterly [Ansible Contributor Summit](https://github.com/ansible/community/wiki/Contributor-Summit) virtually or in-person. Track [The Bullhorn newsletter](https://eepurl.com/gZmiEP) and join us.
|
|
||||||
|
|
||||||
For more information about communication, refer to the [Ansible Communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
|
|
||||||
|
|
||||||
For the latest supported versions, refer to the release notes below.
|
|
||||||
|
|
||||||
If you encounter issues or have questions, you can submit a support request through the following channels:
|
|
||||||
- GitHub Issues: Report bugs, request features, or ask questions by opening an issue in the [GitHub repository]((https://github.com/ansible-collections/kubernetes.core/).
|
|
||||||
|
|
||||||
## Release Notes
|
|
||||||
|
|
||||||
See the [raw generated changelog](https://github.com/ansible-collections/kubernetes.core/blob/main/CHANGELOG.rst).
|
|
||||||
|
|
||||||
## Code of Conduct
|
|
||||||
|
|
||||||
We follow the [Ansible Code of Conduct](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html) in all our interactions within this project.
|
|
||||||
|
|
||||||
If you encounter abusive behavior, please refer to the [policy violations](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html#policy-violations) section of the Code for information on how to raise a complaint.
|
|
||||||
|
|
||||||
|
For more information about Ansible's Kubernetes integration, join the `#ansible-kubernetes` channel on Freenode IRC, and browse the resources in the [Kubernetes Working Group](https://github.com/ansible/community/wiki/Kubernetes) Community wiki page.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
kubernetes-client [platform:fedora]
|
kubernetes-client [platform:fedora]
|
||||||
openshift-clients [platform:rhel-8]
|
|
||||||
openshift-clients [platform:rhel-9]
|
|
||||||
|
|||||||
@@ -312,729 +312,12 @@ releases:
|
|||||||
- 368-helm_template.yaml
|
- 368-helm_template.yaml
|
||||||
- handle_valueerror.yml
|
- handle_valueerror.yml
|
||||||
release_date: '2021-02-17'
|
release_date: '2021-02-17'
|
||||||
2.0.0:
|
1.2.1:
|
||||||
changes:
|
|
||||||
breaking_changes:
|
|
||||||
- Drop python 2 support (https://github.com/ansible-collections/kubernetes.core/pull/86).
|
|
||||||
- helm_plugin - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85).
|
|
||||||
- helm_plugin_info - remove unused ``release_namespace`` parameter (https://github.com/ansible-collections/kubernetes.core/pull/85).
|
|
||||||
- k8s_cluster_info - returned apis as list to avoid being overwritten in case
|
|
||||||
of multiple version (https://github.com/ansible-collections/kubernetes.core/pull/41).
|
|
||||||
- k8s_facts - remove the deprecated alias from k8s_facts to k8s_info (https://github.com/ansible-collections/kubernetes.core/pull/125).
|
|
||||||
bugfixes:
|
|
||||||
- enable unit tests in CI (https://github.com/ansible-collections/community.kubernetes/pull/407).
|
|
||||||
- helm - Accept ``validate_certs`` with a ``context`` (https://github.com/ansible-collections/kubernetes.core/pull/74).
|
|
||||||
- helm - fix helm ignoring the kubeconfig context when passed through the ``context``
|
|
||||||
param or the ``K8S_AUTH_CONTEXT`` environment variable (https://github.com/ansible-collections/community.kubernetes/issues/385).
|
|
||||||
- helm - handle multiline output of ``helm plugin list`` command (https://github.com/ansible-collections/community.kubernetes/issues/399).
|
|
||||||
- k8s - fix merge_type option when set to json (https://github.com/ansible-collections/kubernetes.core/issues/54).
|
|
||||||
- k8s - lookup should return list even if single item is found (https://github.com/ansible-collections/kubernetes.core/issues/9).
|
|
||||||
- k8s inventory - remove extra trailing slashes from the hostname (https://github.com/ansible-collections/kubernetes.core/issues/52).
|
|
||||||
major_changes:
|
|
||||||
- k8s - deprecate merge_type=json. The JSON patch functionality has never worked
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/99).
|
|
||||||
- k8s_json_patch - split JSON patch functionality out into a separate module
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/99).
|
|
||||||
- replaces the openshift client with the official kubernetes client (https://github.com/ansible-collections/kubernetes.core/issues/34).
|
|
||||||
minor_changes:
|
|
||||||
- Add cache_file when DynamicClient is created (https://github.com/ansible-collections/kubernetes.core/pull/46).
|
|
||||||
- Add configmap and secret hash functionality (https://github.com/ansible-collections/kubernetes.core/pull/48).
|
|
||||||
- Add logic for cache file name generation (https://github.com/ansible-collections/kubernetes.core/pull/46).
|
|
||||||
- Replicate apply method in the DynamicClient (https://github.com/ansible-collections/kubernetes.core/pull/45).
|
|
||||||
- add ``proxy_headers`` option for authentication on k8s_xxx modules (https://github.com/ansible-collections/kubernetes.core/pull/58).
|
|
||||||
- add support for using tags when running molecule test suite (https://github.com/ansible-collections/kubernetes.core/pull/62).
|
|
||||||
- added documentation for ``kubernetes.core`` collection (https://github.com/ansible-collections/kubernetes.core/pull/50).
|
|
||||||
- common - removed ``KubernetesAnsibleModule``, use ``K8sAnsibleMixin`` instead
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/70).
|
|
||||||
- helm - add example for complex values in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/issues/109).
|
|
||||||
- k8s - Handle list of definition for option `template` (https://github.com/ansible-collections/kubernetes.core/pull/49).
|
|
||||||
- k8s - `continue_on_error` option added (whether to continue on creation/deletion
|
|
||||||
errors) (https://github.com/ansible-collections/kubernetes.core/pull/49).
|
|
||||||
- k8s - support ``patched`` value for ``state`` option. patched state is an
|
|
||||||
existing resource that has a given patch applied (https://github.com/ansible-collections/kubernetes.core/pull/90).
|
|
||||||
- k8s - wait for all pods to update when rolling out daemonset changes (https://github.com/ansible-collections/kubernetes.core/pull/102).
|
|
||||||
- k8s_scale - ability to scale multiple resource using ``label_selectors`` (https://github.com/ansible-collections/kubernetes.core/pull/114).
|
|
||||||
- k8s_scale - new parameter to determine whether to continue or not on error
|
|
||||||
when scaling multiple resources (https://github.com/ansible-collections/kubernetes.core/pull/114).
|
|
||||||
- kubeconfig - update ``kubeconfig`` file location in the documentation (https://github.com/ansible-collections/kubernetes.core/issues/53).
|
|
||||||
- remove old change log fragment files.
|
|
||||||
- remove the deprecated ``KubernetesRawModule`` class (https://github.com/ansible-collections/community.kubernetes/issues/232).
|
|
||||||
- replicate base resource for lists functionality (https://github.com/ansible-collections/kubernetes.core/pull/89).
|
|
||||||
fragments:
|
|
||||||
- 102-wait-updated-daemonset-pods.yaml
|
|
||||||
- 114-k8s_scale-add-label-selectors-and-continue-on-error.yaml
|
|
||||||
- 125-remove-k8s-facts-alias.yaml
|
|
||||||
- 379-remove-kubernetesrawmodule.yaml
|
|
||||||
- 387-fix-helm-ignoring-context.yaml
|
|
||||||
- 399-helm_multiline.yml
|
|
||||||
- 407-enable-unit-tests.yaml
|
|
||||||
- 41-fix-apis-being-overwritten-in-k8s_cluster_info.yaml
|
|
||||||
- 45-add-apply-method.yml
|
|
||||||
- 46-cachefile_dynamic_client.yml
|
|
||||||
- 48_hash-configmap-secret.yml
|
|
||||||
- 49-k8s-loop-flattening-and-continue_on_error.yaml
|
|
||||||
- 52_inventory.yml
|
|
||||||
- 53_kubeconfig_docs.yml
|
|
||||||
- 58-add-support-for-proxy_headers-on-authentication.yaml
|
|
||||||
- 62-molecule-tags.yaml
|
|
||||||
- 83-k8s-fix-merge_type-json.yaml
|
|
||||||
- 85_helm_plugin.yaml
|
|
||||||
- 86_drop_python2_support.yaml
|
|
||||||
- 89-replicate-base-resource.yaml
|
|
||||||
- 90-k8s-add-parameter-patch_only.yml
|
|
||||||
- 96-replace-openshift-client.yaml
|
|
||||||
- 99-json-patch-module.yaml
|
|
||||||
- 9_lookup_k8s.yml
|
|
||||||
- add_docs.yml
|
|
||||||
- helm_example.yml
|
|
||||||
- helm_validate_certs_not_exclusive.yaml
|
|
||||||
- remove_KubernetesAnsibleModule.yml
|
|
||||||
- remove_fragment.yml
|
|
||||||
modules:
|
|
||||||
- description: Apply JSON patch operations to existing objects
|
|
||||||
name: k8s_json_patch
|
|
||||||
namespace: ''
|
|
||||||
release_date: '2021-06-09'
|
|
||||||
2.0.1:
|
|
||||||
changes:
|
changes:
|
||||||
bugfixes:
|
bugfixes:
|
||||||
- inventory - add community.kubernetes to list of plugin choices in k8s inventory
|
- fix missing requirements.txt file in kubernetes.core (https://github.com/ansible-collections/community.kubernetes/pull/401).
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/128).
|
- pin molecule version to <3.3.0 to fix breaking changes (https://github.com/ansible-collections/community.kubernetes/pull/403).
|
||||||
fragments:
|
fragments:
|
||||||
- 128-update-inventory-plugin-param.yaml
|
- 401-requirements_file.yaml
|
||||||
release_date: '2021-06-11'
|
- 403-pin-molecule.yaml
|
||||||
2.0.2:
|
release_date: '2021-03-31'
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- Fix apply for k8s module when an array attribute from definition contains
|
|
||||||
empty dict (https://github.com/ansible-collections/kubernetes.core/issues/113).
|
|
||||||
- rename the apply function to fix broken imports in Ansible 2.9 (https://github.com/ansible-collections/kubernetes.core/pull/135).
|
|
||||||
fragments:
|
|
||||||
- 129-k8s-fix-apply-array-with-empty-dict.yml
|
|
||||||
- 135-rename-apply-function.yml
|
|
||||||
release_date: '2021-06-16'
|
|
||||||
2.1.0:
|
|
||||||
changes:
|
|
||||||
minor_changes:
|
|
||||||
- remove cloud.common as default dependency (https://github.com/ansible-collections/kubernetes.core/pull/148).
|
|
||||||
- temporarily disable turbo mode (https://github.com/ansible-collections/kubernetes.core/pull/149).
|
|
||||||
fragments:
|
|
||||||
- 148-remove-cloud-common-dependency.yaml
|
|
||||||
- 149-disable-turbo-mode.yaml
|
|
||||||
release_date: '2021-06-23'
|
|
||||||
2.1.1:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- check auth params for existence, not whether they are true (https://github.com/ansible-collections/kubernetes.core/pull/151).
|
|
||||||
fragments:
|
|
||||||
- 151-check-auth-params-for-existence.yaml
|
|
||||||
release_date: '2021-06-24'
|
|
||||||
2.2.0:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- common - import k8sdynamicclient directly to workaround Ansible upstream bug
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/issues/162).
|
|
||||||
- connection plugin - add arguments information into censored command (https://github.com/ansible-collections/kubernetes.core/pull/196).
|
|
||||||
- fix resource cache not being used (https://github.com/ansible-collections/kubernetes.core/pull/228).
|
|
||||||
- k8s - Fixes a bug where diff was always returned when using apply or modifying
|
|
||||||
an existing object, even when diff=no was specified. The module no longer
|
|
||||||
returns diff unless requested and will now honor diff=no (https://github.com/ansible-collections/kubernetes.core/pull/146).
|
|
||||||
- k8s_cp - fix k8s_cp uploading when target container's WORKDIR is not '/' (https://github.com/ansible-collections/kubernetes.core/issues/222).
|
|
||||||
- k8s_exec - add missing deprecation notice to return_code for k8s_exec (https://github.com/ansible-collections/kubernetes.core/pull/233).
|
|
||||||
- k8s_exec - fix k8s_exec returning rc attribute, to follow ansible's common
|
|
||||||
return values (https://github.com/ansible-collections/kubernetes.core/pull/230).
|
|
||||||
- lookup - recommend query instead of lookup (https://github.com/ansible-collections/kubernetes.core/issues/147).
|
|
||||||
- support the ``template`` param in all collections depending on kubernetes.core
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/154).
|
|
||||||
minor_changes:
|
|
||||||
- add support for in-memory kubeconfig in addition to file for k8s modules.
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/212).
|
|
||||||
- helm - add support for history_max cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/164).
|
|
||||||
- k8s - add support for label_selectors options (https://github.com/ansible-collections/kubernetes.core/issues/43).
|
|
||||||
- k8s - add support for waiting on statefulsets (https://github.com/ansible-collections/kubernetes.core/pull/195).
|
|
||||||
- k8s_log - Add since-seconds parameter to the k8s_log module (https://github.com/ansible-collections/kubernetes.core/pull/142).
|
|
||||||
- new lookup plugin to support kubernetes kustomize feature. (https://github.com/ansible-collections/kubernetes.core/issues/39).
|
|
||||||
- re-enable turbo mode for collection. The default is initially set to off (https://github.com/ansible-collections/kubernetes.core/pull/169).
|
|
||||||
fragments:
|
|
||||||
- 142-add-sinceseconds-param-for-logs.yaml
|
|
||||||
- 146-k8s-add-support-diff-mode.yml
|
|
||||||
- 147_lookup.yml
|
|
||||||
- 154-template-param-support.yaml
|
|
||||||
- 158-k8s-add-support-label_selectors.yml
|
|
||||||
- 162_import_error.yml
|
|
||||||
- 164-add-history-max.yaml
|
|
||||||
- 169-reenable-turbo-mode.yaml
|
|
||||||
- 195-k8s-add-wait-statefulsets.yml
|
|
||||||
- 196_kubectl.yaml
|
|
||||||
- 212-in-memory-kubeconfig.yml
|
|
||||||
- 223-add-deprecation-notice.yaml
|
|
||||||
- 223-k8s-cp-uploading.yaml
|
|
||||||
- 225-kustomize-lookup-plugin.yml
|
|
||||||
- 228-fix-resource-cache.yml
|
|
||||||
- 230-k8sexec-has-new-returnvalue.yml
|
|
||||||
modules:
|
|
||||||
- description: Copy files and directories to and from pod.
|
|
||||||
name: k8s_cp
|
|
||||||
namespace: ''
|
|
||||||
- description: Drain, Cordon, or Uncordon node in k8s cluster
|
|
||||||
name: k8s_drain
|
|
||||||
namespace: ''
|
|
||||||
plugins:
|
|
||||||
lookup:
|
|
||||||
- description: Build a set of kubernetes resources using a 'kustomization.yaml'
|
|
||||||
file.
|
|
||||||
name: kustomize
|
|
||||||
namespace: null
|
|
||||||
release_date: '2021-09-15'
|
|
||||||
2.3.0:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- Various modules and plugins - use vendored version of ``distutils.version``
|
|
||||||
instead of the deprecated Python standard library ``distutils`` (https://github.com/ansible-collections/kubernetes.core/pull/314).
|
|
||||||
- common - Ensure the label_selectors parameter of _wait_for method is optional.
|
|
||||||
- helm_template - evaluate release_values after values_files, insuring highest
|
|
||||||
precedence (now same behavior as in helm module). (https://github.com/ansible-collections/kubernetes.core/pull/348)
|
|
||||||
- import exception from ``kubernetes.client.rest``.
|
|
||||||
- k8s_drain - fix error caused by accessing an undefined variable when pods
|
|
||||||
have local storage (https://github.com/ansible-collections/kubernetes.core/issues/292).
|
|
||||||
- k8s_info - don't wait on empty List resources (https://github.com/ansible-collections/kubernetes.core/pull/253).
|
|
||||||
- k8s_scale - fix waiting on statefulset when scaled down to 0 replicas (https://github.com/ansible-collections/kubernetes.core/issues/203).
|
|
||||||
- module_utils.common - change default opening mode to read-bytes to avoid bad
|
|
||||||
interpretation of non ascii characters and strings, often present in 3rd party
|
|
||||||
manifests.
|
|
||||||
- remove binary file from k8s_cp test suite (https://github.com/ansible-collections/kubernetes.core/pull/298).
|
|
||||||
- use resource prefix when finding resource and apiVersion is v1 (https://github.com/ansible-collections/kubernetes.core/issues/351).
|
|
||||||
minor_changes:
|
|
||||||
- add support for dry run with kubernetes client version >=18.20 (https://github.com/ansible-collections/kubernetes.core/pull/245).
|
|
||||||
- fixed module_defaults by removing routing hacks from runtime.yml (https://github.com/ansible-collections/kubernetes.core/pull/347).
|
|
||||||
- helm - add support for timeout cli parameter to allow setting Helm timeout
|
|
||||||
independent of wait (https://github.com/ansible-collections/kubernetes.core/issues/67).
|
|
||||||
- helm - add support for wait parameter for helm uninstall command. (https://github.com/ansible-collections/kubernetes/core/issues/33).
|
|
||||||
- helm - support repo location for helm diff (https://github.com/ansible-collections/kubernetes.core/issues/174).
|
|
||||||
- helm - when ansible is executed in check mode, return the diff between what's
|
|
||||||
deployed and what will be deployed.
|
|
||||||
- helm_info - add release state as a module argument (https://github.com/ansible-collections/kubernetes.core/issues/377).
|
|
||||||
- helm_plugin - Add plugin_version parameter to the helm_plugin module (https://github.com/ansible-collections/kubernetes.core/issues/157).
|
|
||||||
- helm_plugin - Add support for helm plugin update using state=update.
|
|
||||||
- helm_repository - add support for pass-credentials cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/282).
|
|
||||||
- helm_repository - added support for ``host``, ``api_key``, ``validate_certs``,
|
|
||||||
and ``ca_cert``.
|
|
||||||
- helm_template - add show_only and release_namespace as module arguments (https://github.com/ansible-collections/kubernetes.core/issues/313).
|
|
||||||
- k8s - add no_proxy support to k8s* (https://github.com/ansible-collections/kubernetes.core/pull/272).
|
|
||||||
- k8s - add support for server_side_apply. (https://github.com/ansible-collections/kubernetes.core/issues/87).
|
|
||||||
- k8s - add support for user impersonation. (https://github.com/ansible-collections/kubernetes/core/issues/40).
|
|
||||||
- k8s - allow resource definition using metadata.generateName (https://github.com/ansible-collections/kubernetes.core/issues/35).
|
|
||||||
- k8s lookup plugin - Enable turbo mode via environment variable (https://github.com/ansible-collections/kubernetes.core/issues/291).
|
|
||||||
- k8s_drain - Adds ``delete_emptydir_data`` option to ``k8s_drain.delete_options``
|
|
||||||
to evict pods with an ``emptyDir`` volume attached (https://github.com/ansible-collections/kubernetes.core/pull/322).
|
|
||||||
- k8s_exec - select first container from the pod if none specified (https://github.com/ansible-collections/kubernetes.core/issues/358).
|
|
||||||
- k8s_rollback - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/243).
|
|
||||||
- k8s_scale - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/244).
|
|
||||||
- kubectl - wait for dd command to complete before proceeding (https://github.com/ansible-collections/kubernetes.core/pull/321).
|
|
||||||
fragments:
|
|
||||||
- 0-copy_ignore_txt.yml
|
|
||||||
- 226-add-version-parameter-to-helm_plugin.yml
|
|
||||||
- 231-helm-add-timeout-parameter.yaml
|
|
||||||
- 238-helm-add-support-for-helm-uninstall-wait.yaml
|
|
||||||
- 238-k8s-add-support-for-generate_name.yml
|
|
||||||
- 245-add-dry-run.yaml
|
|
||||||
- 250-k8s-add-support-for-impersonation.yaml
|
|
||||||
- 253-dont-wait-on-list-resources.yaml
|
|
||||||
- 255-k8s_scale-k8s_rollback-add-support-for-check_mode.yml
|
|
||||||
- 260-k8s-add-support-for-server_side_apply.yml
|
|
||||||
- 272-k8s-add-support-no_proxy.yaml
|
|
||||||
- 282-helm-repository-add-pass-credentials.yaml
|
|
||||||
- 290-returns-diff-in-check-mode.yaml
|
|
||||||
- 295-fix-k8s-drain-variable-declaration.yaml
|
|
||||||
- 298-remove-binary-file.yaml
|
|
||||||
- 308-fix-for-common-non-ascii-characters-in-resources.yaml
|
|
||||||
- 313-helm-template-add-support-for-show-only-and-release-namespace.yml
|
|
||||||
- 321-kubectl_sleep.yml
|
|
||||||
- 322-Add-delete_emptydir_data-to-drain-delete_options.yaml
|
|
||||||
- 335-k8s-lookup-add-support-for-turbo-mode.yml
|
|
||||||
- 347-routing.yml
|
|
||||||
- 348-helm_template-fix-precedence-of-release-values-over-values-files.yaml
|
|
||||||
- 358-k8s_exec.yml
|
|
||||||
- 364-use-resource-prefix.yaml
|
|
||||||
- 377-helm-info-state.yml
|
|
||||||
- 389-helm-add-support-chart_repo_url-on-helm_diff.yml
|
|
||||||
- 391-fix-statefulset-wait.yaml
|
|
||||||
- _wait_for_label_selector_optional.yaml
|
|
||||||
- disutils.version.yml
|
|
||||||
- exception.yml
|
|
||||||
- helm_repository.yml
|
|
||||||
modules:
|
|
||||||
- description: Taint a node in a Kubernetes/OpenShift cluster
|
|
||||||
name: k8s_taint
|
|
||||||
namespace: ''
|
|
||||||
release_date: '2022-03-11'
|
|
||||||
2.3.1:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- Catch expectation raised when the process is waiting for resources (https://github.com/ansible-collections/kubernetes.core/issues/407).
|
|
||||||
- Remove `omit` placeholder when defining resource using template parameter
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/issues/431).
|
|
||||||
- k8s - fix the issue when trying to delete resources using label_selectors
|
|
||||||
options (https://github.com/ansible-collections/kubernetes.core/issues/433).
|
|
||||||
- k8s_cp - fix issue when using parameter local_path with file on managed node.
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/issues/421).
|
|
||||||
- k8s_drain - fix error occurring when trying to drain node with disable_eviction
|
|
||||||
set to yes (https://github.com/ansible-collections/kubernetes.core/issues/416).
|
|
||||||
fragments:
|
|
||||||
- 408-fix-wait-on-exception.yml
|
|
||||||
- 417-fix-k8s-drain-delete-options.yaml
|
|
||||||
- 422-k8s_cp-fix-issue-when-issue-local_path.yaml
|
|
||||||
- 432-fix-issue-when-using-template-parameter.yaml
|
|
||||||
- 434-fix-k8s-delete-using-label_selector.yaml
|
|
||||||
release_date: '2022-05-02'
|
|
||||||
2.4.0:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- Fix dry_run logic - Pass the value dry_run=All instead of dry_run=True to
|
|
||||||
the client, add conditional check on kubernetes client version as this feature
|
|
||||||
is supported only for kubernetes >= 18.20.0 (https://github.com/ansible-collections/kubernetes.core/pull/561).
|
|
||||||
- Fix kubeconfig parameter when multiple config files are provided (https://github.com/ansible-collections/kubernetes.core/issues/435).
|
|
||||||
- Helm - Fix issue with alternative kubeconfig provided with validate_certs=False
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/issues/538).
|
|
||||||
- Various modules and plugins - use vendored version of ``distutils.version``
|
|
||||||
instead of the deprecated Python standard library ``distutils`` (https://github.com/ansible-collections/kubernetes.core/pull/314).
|
|
||||||
- add missing documentation for filter plugin kubernetes.core.k8s_config_resource_name
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/issues/558).
|
|
||||||
- common - Ensure the label_selectors parameter of _wait_for method is optional.
|
|
||||||
- common - handle ``aliases`` passed from inventory and lookup plugins.
|
|
||||||
- helm_template - evaluate release_values after values_files, insuring highest
|
|
||||||
precedence (now same behavior as in helm module). (https://github.com/ansible-collections/kubernetes.core/pull/348)
|
|
||||||
- import exception from ``kubernetes.client.rest``.
|
|
||||||
- k8s - Fix issue with check_mode when using server side apply (https://github.com/ansible-collections/kubernetes.core/issues/547).
|
|
||||||
- k8s - Fix issue with server side apply with kubernetes release '25.3.0' (https://github.com/ansible-collections/kubernetes.core/issues/548).
|
|
||||||
- k8s_cp - add support for check_mode (https://github.com/ansible-collections/kubernetes.core/issues/380).
|
|
||||||
- k8s_drain - fix error caused by accessing an undefined variable when pods
|
|
||||||
have local storage (https://github.com/ansible-collections/kubernetes.core/issues/292).
|
|
||||||
- k8s_info - don't wait on empty List resources (https://github.com/ansible-collections/kubernetes.core/pull/253).
|
|
||||||
- k8s_info - fix issue when module returns successful true after the resource
|
|
||||||
cache has been established during periods where communication to the api-server
|
|
||||||
is not possible (https://github.com/ansible-collections/kubernetes.core/issues/508).
|
|
||||||
- k8s_log - Fix module traceback when no resource found (https://github.com/ansible-collections/kubernetes.core/issues/479).
|
|
||||||
- k8s_log - fix exception raised when the name is not provided for resources
|
|
||||||
requiring. (https://github.com/ansible-collections/kubernetes.core/issues/514)
|
|
||||||
- k8s_scale - fix waiting on statefulset when scaled down to 0 replicas (https://github.com/ansible-collections/kubernetes.core/issues/203).
|
|
||||||
- module_utils.common - change default opening mode to read-bytes to avoid bad
|
|
||||||
interpretation of non ascii characters and strings, often present in 3rd party
|
|
||||||
manifests.
|
|
||||||
- module_utils/k8s/client.py - fix issue when trying to authenticate with host,
|
|
||||||
client_cert and client_key parameters only.
|
|
||||||
- remove binary file from k8s_cp test suite (https://github.com/ansible-collections/kubernetes.core/pull/298).
|
|
||||||
- use resource prefix when finding resource and apiVersion is v1 (https://github.com/ansible-collections/kubernetes.core/issues/351).
|
|
||||||
major_changes:
|
|
||||||
- refactor K8sAnsibleMixin into module_utils/k8s/ (https://github.com/ansible-collections/kubernetes.core/pull/481).
|
|
||||||
minor_changes:
|
|
||||||
- Adjust k8s_user_impersonation tests to be compatible with Kubernetes 1.24
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/520).
|
|
||||||
- add support for dry run with kubernetes client version >=18.20 (https://github.com/ansible-collections/kubernetes.core/pull/245).
|
|
||||||
- added ignore.txt for Ansible 2.14 devel branch.
|
|
||||||
- fixed module_defaults by removing routing hacks from runtime.yml (https://github.com/ansible-collections/kubernetes.core/pull/347).
|
|
||||||
- helm - add support for -set-file, -set-json, -set and -set-string options
|
|
||||||
when running helm install (https://github.com/ansible-collections/kubernetes.core/issues/533).
|
|
||||||
- helm - add support for helm dependency update (https://github.com/ansible-collections/kubernetes.core/pull/208).
|
|
||||||
- helm - add support for post-renderer flag (https://github.com/ansible-collections/kubernetes.core/issues/30).
|
|
||||||
- helm - add support for timeout cli parameter to allow setting Helm timeout
|
|
||||||
independent of wait (https://github.com/ansible-collections/kubernetes.core/issues/67).
|
|
||||||
- helm - add support for wait parameter for helm uninstall command. (https://github.com/ansible-collections/kubernetes/core/issues/33).
|
|
||||||
- helm - support repo location for helm diff (https://github.com/ansible-collections/kubernetes.core/issues/174).
|
|
||||||
- helm - when ansible is executed in check mode, return the diff between what's
|
|
||||||
deployed and what will be deployed.
|
|
||||||
- helm, helm_plugin, helm_info, helm_plugin_info, kubectl - add support for
|
|
||||||
in-memory kubeconfig. (https://github.com/ansible-collections/kubernetes.core/issues/492).
|
|
||||||
- helm_info - add hooks, notes and manifest as part of returned information
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/546).
|
|
||||||
- helm_info - add release state as a module argument (https://github.com/ansible-collections/kubernetes.core/issues/377).
|
|
||||||
- helm_info - added possibility to get all values by adding get_all_values parameter
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/531).
|
|
||||||
- helm_plugin - Add plugin_version parameter to the helm_plugin module (https://github.com/ansible-collections/kubernetes.core/issues/157).
|
|
||||||
- helm_plugin - Add support for helm plugin update using state=update.
|
|
||||||
- helm_repository - Ability to replace (overwrite) the repo if it already exists
|
|
||||||
by forcing (https://github.com/ansible-collections/kubernetes.core/issues/491).
|
|
||||||
- helm_repository - add support for pass-credentials cli parameter (https://github.com/ansible-collections/kubernetes.core/pull/282).
|
|
||||||
- helm_repository - added support for ``host``, ``api_key``, ``validate_certs``,
|
|
||||||
and ``ca_cert``.
|
|
||||||
- helm_repository - mark `pass_credentials` as no_log=True to silence false
|
|
||||||
warning (https://github.com/ansible-collections/kubernetes.core/issues/412).
|
|
||||||
- helm_template - add name (NAME of release) and disable_hook as optional module
|
|
||||||
arguments (https://github.com/ansible-collections/kubernetes.core/issues/313).
|
|
||||||
- helm_template - add show_only and release_namespace as module arguments (https://github.com/ansible-collections/kubernetes.core/issues/313).
|
|
||||||
- helm_template - add support for -set-file, -set-json, -set and -set-string
|
|
||||||
options when running helm template (https://github.com/ansible-collections/kubernetes.core/pull/546).
|
|
||||||
- k8s - add no_proxy support to k8s* (https://github.com/ansible-collections/kubernetes.core/pull/272).
|
|
||||||
- k8s - add support for server_side_apply. (https://github.com/ansible-collections/kubernetes.core/issues/87).
|
|
||||||
- k8s - add support for user impersonation. (https://github.com/ansible-collections/kubernetes/core/issues/40).
|
|
||||||
- k8s - allow resource definition using metadata.generateName (https://github.com/ansible-collections/kubernetes.core/issues/35).
|
|
||||||
- k8s lookup plugin - Enable turbo mode via environment variable (https://github.com/ansible-collections/kubernetes.core/issues/291).
|
|
||||||
- k8s, k8s_scale, k8s_service - add support for resource definition as manifest
|
|
||||||
via. (https://github.com/ansible-collections/kubernetes.core/issues/451).
|
|
||||||
- k8s_cp - remove dependency with 'find' executable on remote pod when state=from_pod
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/issues/486).
|
|
||||||
- k8s_drain - Adds ``delete_emptydir_data`` option to ``k8s_drain.delete_options``
|
|
||||||
to evict pods with an ``emptyDir`` volume attached (https://github.com/ansible-collections/kubernetes.core/pull/322).
|
|
||||||
- k8s_exec - select first container from the pod if none specified (https://github.com/ansible-collections/kubernetes.core/issues/358).
|
|
||||||
- k8s_exec - update deprecation warning for `return_code` (https://github.com/ansible-collections/kubernetes.core/issues/417).
|
|
||||||
- k8s_json_patch - minor typo fix in the example section (https://github.com/ansible-collections/kubernetes.core/issues/411).
|
|
||||||
- k8s_log - add the ``all_containers`` for retrieving all containers' logs in
|
|
||||||
the pod(s).
|
|
||||||
- k8s_log - added the `previous` parameter for retrieving the previously terminated
|
|
||||||
pod logs (https://github.com/ansible-collections/kubernetes.core/issues/437).
|
|
||||||
- k8s_log - added the `tail_lines` parameter to limit the number of lines to
|
|
||||||
be retrieved from the end of the logs (https://github.com/ansible-collections/kubernetes.core/issues/488).
|
|
||||||
- k8s_rollback - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/243).
|
|
||||||
- k8s_scale - add support for check_mode. (https://github.com/ansible-collections/kubernetes/core/issues/244).
|
|
||||||
- kubectl - wait for dd command to complete before proceeding (https://github.com/ansible-collections/kubernetes.core/pull/321).
|
|
||||||
- kubectl.py - replace distutils.spawn.find_executable with shutil.which in
|
|
||||||
the kubectl connection plugin (https://github.com/ansible-collections/kubernetes.core/pull/456).
|
|
||||||
fragments:
|
|
||||||
- 0-copy_ignore_txt.yml
|
|
||||||
- 208-add-dependency-update.yaml
|
|
||||||
- 226-add-version-parameter-to-helm_plugin.yml
|
|
||||||
- 231-helm-add-timeout-parameter.yaml
|
|
||||||
- 238-helm-add-support-for-helm-uninstall-wait.yaml
|
|
||||||
- 238-k8s-add-support-for-generate_name.yml
|
|
||||||
- 245-add-dry-run.yaml
|
|
||||||
- 250-k8s-add-support-for-impersonation.yaml
|
|
||||||
- 253-dont-wait-on-list-resources.yaml
|
|
||||||
- 255-k8s_scale-k8s_rollback-add-support-for-check_mode.yml
|
|
||||||
- 260-k8s-add-support-for-server_side_apply.yml
|
|
||||||
- 272-k8s-add-support-no_proxy.yaml
|
|
||||||
- 282-helm-repository-add-pass-credentials.yaml
|
|
||||||
- 290-returns-diff-in-check-mode.yaml
|
|
||||||
- 295-fix-k8s-drain-variable-declaration.yaml
|
|
||||||
- 298-remove-binary-file.yaml
|
|
||||||
- 30-helm-add-post-renderer-support.yml
|
|
||||||
- 308-fix-for-common-non-ascii-characters-in-resources.yaml
|
|
||||||
- 313-helm-template-add-support-for-name-and-disablehook.yml
|
|
||||||
- 313-helm-template-add-support-for-show-only-and-release-namespace.yml
|
|
||||||
- 321-kubectl_sleep.yml
|
|
||||||
- 322-Add-delete_emptydir_data-to-drain-delete_options.yaml
|
|
||||||
- 335-k8s-lookup-add-support-for-turbo-mode.yml
|
|
||||||
- 347-routing.yml
|
|
||||||
- 348-helm_template-fix-precedence-of-release-values-over-values-files.yaml
|
|
||||||
- 358-k8s_exec.yml
|
|
||||||
- 364-use-resource-prefix.yaml
|
|
||||||
- 377-helm-info-state.yml
|
|
||||||
- 389-helm-add-support-chart_repo_url-on-helm_diff.yml
|
|
||||||
- 391-fix-statefulset-wait.yaml
|
|
||||||
- 411_k8s_json_patch.yml
|
|
||||||
- 412_pass_creds.yml
|
|
||||||
- 417_deprecation.yml
|
|
||||||
- 428-fix-kubeconfig-parameter-with-multiple-config-files.yaml
|
|
||||||
- 437-k8s-add-support-for-previous-logs.yaml
|
|
||||||
- 456-replace-distutils.yml
|
|
||||||
- 478-add-support-for-manifest-url.yaml
|
|
||||||
- 481-refactor-common.yml
|
|
||||||
- 488-add-support-for-tail-logs.yaml
|
|
||||||
- 493-k8s_log-fix-module-when-pod-does-exist.yaml
|
|
||||||
- 497-helm-add-support-for-in-memory-kubeconfig.yml
|
|
||||||
- 498-k8s-honor-aliases.yaml
|
|
||||||
- 505-add-from-yaml-all-example.yml
|
|
||||||
- 509-helm-repo-add-force_update-argument.yaml
|
|
||||||
- 512-k8s_cp-add-support-for-check_mode-update-command-for-listing-files-into-pod.yaml
|
|
||||||
- 515-update-sanity-for-2-15.yml
|
|
||||||
- 522-fix-helm-tests.yml
|
|
||||||
- 523-helm_info-get-all-values.yaml
|
|
||||||
- 528-k8s_log-support-all_containers-options.yml
|
|
||||||
- 532-k8s_crd-fix-integration-test.yml
|
|
||||||
- 546-helm-install-add-support-for-set-options.yaml
|
|
||||||
- 549-fix-server-side-apply.yaml
|
|
||||||
- 552-k8s_cp-fix-issue-when-copying-item-with-space-in-its-name.yml
|
|
||||||
- 561-fix-dry-run.yml
|
|
||||||
- 562-helm-fix-issue-when-alternative-kubeconfig-is-provided.yaml
|
|
||||||
- 571-k8s_info-fix-issue-with-api-server.yaml
|
|
||||||
- _wait_for_label_selector_optional.yaml
|
|
||||||
- disutils.version.yml
|
|
||||||
- exception.yml
|
|
||||||
- fix-ci-unit-tests.yaml
|
|
||||||
- helm_repository.yml
|
|
||||||
- ignore_2.14.yml
|
|
||||||
- k8s_config_resource_name-add-missing-documentation.yml
|
|
||||||
- k8s_rollback_reduce_tmeouts.yaml
|
|
||||||
- k8s_user_impersonation_k8s_1_24.yaml
|
|
||||||
- minor-tests-duration.yaml
|
|
||||||
modules:
|
|
||||||
- description: download a chart from a repository and (optionally) unpack it in
|
|
||||||
local directory.
|
|
||||||
name: helm_pull
|
|
||||||
namespace: ''
|
|
||||||
release_date: '2023-01-24'
|
|
||||||
3.0.0:
|
|
||||||
changes:
|
|
||||||
breaking_changes:
|
|
||||||
- Remove support for ansible-core < 2.14
|
|
||||||
- Update python kubernetes library to 24.2.0, helm/kind-action to 1.8.0, kubernetes
|
|
||||||
>= 1.24.
|
|
||||||
bugfixes:
|
|
||||||
- helm - Put the chart_ref into quotes when running ``helm show chart``, ``helm
|
|
||||||
upgrade`` and ``helm dependency update`` commands (https://github.com/ansible-collections/kubernetes.core/issues/653).
|
|
||||||
- helm - delete temporary file created when deploying chart with option ``release_values``
|
|
||||||
set (https://github.com/ansible-collections/kubernetes.core/issues/530).
|
|
||||||
- helm - fix issue occurring when uninstalling chart with statues others than
|
|
||||||
``deployed`` (https://github.com/ansible-collections/kubernetes.core/issues/319).
|
|
||||||
- helm - fix post_renderer argument breaking the helm deploy_command (https://github.com/ansible-collections/kubernetes.core/pull/586).
|
|
||||||
- helm - use post_renderer when checking ``changed`` status for a helm release
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/588).
|
|
||||||
- k8s_scale - clean handling of ResourceTimeout exception (https://github.com/ansible-collections/kubernetes.core/issues/583).
|
|
||||||
- k8s_scale - fix issue when scaling StatefulSets with ``updateStrategy=OnDelete``
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/issues/579).
|
|
||||||
deprecated_features:
|
|
||||||
- k8s - the ``k8s`` inventory plugin has been deprecated and will be removed
|
|
||||||
in release 4.0.0 (https://github.com/ansible-collections/kubernetes.core/issues/31).
|
|
||||||
minor_changes:
|
|
||||||
- helm - add ``reuse_values`` and ``reset_values`` support to helm module (https://github.com/ansible-collections/kubernetes.core/issues/394).
|
|
||||||
- k8s - add new option ``delete_all`` to support deletion of all resources when
|
|
||||||
state is set to ``absent``. (https://github.com/ansible-collections/kubernetes.core/issues/504)
|
|
||||||
- k8s, k8s_info - add a hidden_fields option to allow fields to be hidden in
|
|
||||||
the results of k8s and k8s_info
|
|
||||||
- k8s_drain - add ability to filter the list of pods to be drained by a pod
|
|
||||||
label selector (https://github.com/ansible-collections/kubernetes.core/issues/474).
|
|
||||||
release_summary: This major release drops support for ansible-core versions
|
|
||||||
lower than 2.14, Python versions lower than 3.9 and updates python kubernetes
|
|
||||||
library to 24.2.0, helm/kind-action to 1.8.0, kubernetes >= 1.24, along with
|
|
||||||
bug fixes and minor changes.
|
|
||||||
fragments:
|
|
||||||
- 20230206-deprecate-k8s-inventory.yml
|
|
||||||
- 20231110-helm-quote-ref.yaml
|
|
||||||
- 517-k8s-make-name-optional.yaml
|
|
||||||
- 575-helm-add-support-for-reuse_values-and-reset_values.yml
|
|
||||||
- 579-k8s_scale-fix-issue-with-scaling-statefulsets.yml
|
|
||||||
- 583-k8s_scale-clean-handling-of-ResourceTimeout-exception.yaml
|
|
||||||
- 586-helm-fix-post-renderer-arg.yml
|
|
||||||
- 588-helm-use-post-renderer-for-helmdiff.yml
|
|
||||||
- 589-helm-uninstall-chart-releases-with-statuses-different-than-deployed.yaml
|
|
||||||
- 606-k8s_drain-add-pod_selectors-parameter.yaml
|
|
||||||
- 612-fix-helm-tests.yaml
|
|
||||||
- 629-add-hidden-fields-option.yaml
|
|
||||||
- gha-sanity-fixes.yaml
|
|
||||||
- helm-delete-temporary-file-created-when-using-option-release_values.yaml
|
|
||||||
- remove_ansible_2_13.yaml
|
|
||||||
- update_supported_versions.yaml
|
|
||||||
release_date: '2023-11-17'
|
|
||||||
3.0.1:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- Resolve Collections util resource discovery fails when complex subresources
|
|
||||||
present (https://github.com/ansible-collections/kubernetes.core/pull/676).
|
|
||||||
- align `helmdiff_check()` function commandline rendering with the `deploy()`
|
|
||||||
function (https://github.com/ansible-collections/kubernetes.core/pull/670).
|
|
||||||
- helm - use ``reuse-values`` when running ``helm diff`` command (https://github.com/ansible-collections/kubernetes.core/issues/680).
|
|
||||||
- integrations test helm_kubeconfig - set helm version to v3.10.3 to avoid incompatability
|
|
||||||
with new bitnami charts (https://github.com/ansible-collections/kubernetes.core/pull/670).
|
|
||||||
release_summary: This release fixes issue with resources discovery when complex
|
|
||||||
subresources are present, and fixes issues with `reuse-values` parameter for
|
|
||||||
helm module.
|
|
||||||
fragments:
|
|
||||||
- 20240117-fix-helm-diff-cmd-line-rendering.yml
|
|
||||||
- 20240222-Collections-util-resource-discovery-fails-when-complex-subresources-present.yml
|
|
||||||
- 20240228-fix-helm-diff-with-reuse-values.yml
|
|
||||||
- 3.0.1.yml
|
|
||||||
release_date: '2024-03-01'
|
|
||||||
3.1.0:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- helm - expand kubeconfig path with user's home directory for consistency with
|
|
||||||
k8s
|
|
||||||
- k8s_json_patch - rename action symlink to ensure k8s action plugin is used
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/652).
|
|
||||||
minor_changes:
|
|
||||||
- kubectl - added support of local enviroment variable that will be used for
|
|
||||||
kubectl and may be requried for establishing connections ifself (https://github.com/ansible-collections/kubernetes.core/pull/702)
|
|
||||||
- kustomize - new parameter added to --enable-helm (https://github.com/ansible-collections/kubernetes.core/issues/568)
|
|
||||||
release_summary: This release comes with some bugfixes and documentation updates.
|
|
||||||
It also adds new features to the kubectl connection plugin and the kustomize
|
|
||||||
lookup plugin.
|
|
||||||
fragments:
|
|
||||||
- 20240426-add-support-of-kubectl-local-env-vars-for-connection-plugin.yml
|
|
||||||
- 3.1.0.yml
|
|
||||||
- 592-kustomize-helm-support.yml
|
|
||||||
- 652-fix-json-patch-action.yml
|
|
||||||
- 654-helm-expand-user.yml
|
|
||||||
release_date: '2024-05-16'
|
|
||||||
3.2.0:
|
|
||||||
changes:
|
|
||||||
minor_changes:
|
|
||||||
- connection/kubectl.py - Added an example of using the kubectl connection plugin
|
|
||||||
to the documentation (https://github.com/ansible-collections/kubernetes.core/pull/741).
|
|
||||||
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 5.0 (https://github.com/ansible-collections/kubernetes.core/pull/723).
|
|
||||||
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 6.0.0
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/734).
|
|
||||||
release_summary: This release comes with documentation updates.
|
|
||||||
fragments:
|
|
||||||
- 20240530-defer-removal-and-ansible-core-support-update.yaml
|
|
||||||
- 20240601-doc-example-of-using-kubectl.yaml
|
|
||||||
- 3.2.0.yml
|
|
||||||
- inventory-update_removal_date.yml
|
|
||||||
release_date: '2024-06-14'
|
|
||||||
3.3.0:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- helm - Helm version checks did not support RC versions. They now accept any
|
|
||||||
version tags. (https://github.com/ansible-collections/kubernetes.core/pull/745).
|
|
||||||
- helm_pull - Apply no_log=True to pass_credentials to silence false positive
|
|
||||||
warning. (https://github.com/ansible-collections/kubernetes.core/pull/796).
|
|
||||||
- k8s_drain - Fix k8s_drain does not wait for single pod (https://github.com/ansible-collections/kubernetes.core/issues/769).
|
|
||||||
- k8s_drain - Fix k8s_drain runs into a timeout when evicting a pod which is
|
|
||||||
part of a stateful set (https://github.com/ansible-collections/kubernetes.core/issues/792).
|
|
||||||
- kubeconfig option should not appear in module invocation log (https://github.com/ansible-collections/kubernetes.core/issues/782).
|
|
||||||
- kustomize - kustomize plugin fails with deprecation warnings (https://github.com/ansible-collections/kubernetes.core/issues/639).
|
|
||||||
- waiter - Fix waiting for daemonset when desired number of pods is 0. (https://github.com/ansible-collections/kubernetes.core/pull/756).
|
|
||||||
minor_changes:
|
|
||||||
- k8s_drain - Improve error message for pod disruption budget when draining
|
|
||||||
a node (https://github.com/ansible-collections/kubernetes.core/issues/797).
|
|
||||||
release_summary: This release comes with improvements to the error messages
|
|
||||||
in the k8s_drain module and several bug fixes.
|
|
||||||
fragments:
|
|
||||||
- 20240530-ansible-core-support-update.yaml
|
|
||||||
- 20240611-helm-rc-version.yaml
|
|
||||||
- 20240620-fix-kustomize-plugin-fails-with-deprecation-warnings.yml
|
|
||||||
- 20241102-fix-ci-post-2.18-issue.yaml
|
|
||||||
- 20241213-kubeconfig-set-no_log-true.yaml
|
|
||||||
- 756-fix-daemonset-waiting.yaml
|
|
||||||
- 770-fix-k8s-drain-doesnt-wait-for-single-pod.yaml
|
|
||||||
- 793-fix-k8s-drain-runs-into-timeout.yaml
|
|
||||||
- 796-false-positive-helmull.yaml
|
|
||||||
- 798-drain-pdb-error-message.yaml
|
|
||||||
- readme_template_update.yml
|
|
||||||
release_date: '2025-01-20'
|
|
||||||
4.0.0:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- Resolve Collections util resource discovery fails when complex subresources
|
|
||||||
present (https://github.com/ansible-collections/kubernetes.core/pull/676).
|
|
||||||
- align `helmdiff_check()` function commandline rendering with the `deploy()`
|
|
||||||
function (https://github.com/ansible-collections/kubernetes.core/pull/670).
|
|
||||||
- avoid unsafe conditions in integration tests (https://github.com/ansible-collections/kubernetes.core/pull/665).
|
|
||||||
- helm - use ``reuse-values`` when running ``helm diff`` command (https://github.com/ansible-collections/kubernetes.core/issues/680).
|
|
||||||
- integrations test helm_kubeconfig - set helm version to v3.10.3 to avoid incompatability
|
|
||||||
with new bitnami charts (https://github.com/ansible-collections/kubernetes.core/pull/670).
|
|
||||||
minor_changes:
|
|
||||||
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 5.0 (https://github.com/ansible-collections/kubernetes.core/pull/723).
|
|
||||||
- k8s - The module and K8sService were changed so warnings returned by the K8S
|
|
||||||
API are now displayed to the user.
|
|
||||||
release_summary: This major release brings several bug fixes. We have also removed
|
|
||||||
support for ``ansible-core<2.15`` and deprecated functions and class from
|
|
||||||
``module_utils/common.py``.
|
|
||||||
removed_features:
|
|
||||||
- k8s - Support for ``merge_type=json`` has been removed in version 4.0.0. Please
|
|
||||||
use ``kubernetes.core.k8s_json_patch`` instead (https://github.com/ansible-collections/kubernetes.core/pull/722).
|
|
||||||
- k8s_exec - the previously deprecated ``result.return_code`` return value has
|
|
||||||
been removed, consider using ``result.rc`` instead (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
- module_utils/common.py - the previously deprecated ``K8sAnsibleMixin`` class
|
|
||||||
has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
- module_utils/common.py - the previously deprecated ``configuration_digest()``
|
|
||||||
function has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
- module_utils/common.py - the previously deprecated ``get_api_client()`` function
|
|
||||||
has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
- module_utils/common.py - the previously deprecated ``unique_string()`` function
|
|
||||||
has been removed (https://github.com/ansible-collections/kubernetes.core/pull/726).
|
|
||||||
fragments:
|
|
||||||
- 20231206-fix-unsafe-condition-in-integration.yml
|
|
||||||
- 20240117-fix-helm-diff-cmd-line-rendering.yml
|
|
||||||
- 20240222-Collections-util-resource-discovery-fails-when-complex-subresources-present.yml
|
|
||||||
- 20240228-fix-helm-diff-with-reuse-values.yml
|
|
||||||
- 20240423-k8s-display-warnings-to-users.yml
|
|
||||||
- 4.0.0.yaml
|
|
||||||
- inventory-update_removal_date.yml
|
|
||||||
- k8s-merge_type-removed.yml
|
|
||||||
- module_utils-common-remove-deprecated-functions-and-class.yaml
|
|
||||||
release_date: '2024-05-24'
|
|
||||||
5.0.0:
|
|
||||||
changes:
|
|
||||||
breaking_changes:
|
|
||||||
- Remove support for ``ansible-core<2.15`` (https://github.com/ansible-collections/kubernetes.core/pull/737).
|
|
||||||
minor_changes:
|
|
||||||
- connection/kubectl.py - Added an example of using the kubectl connection plugin
|
|
||||||
to the documentation (https://github.com/ansible-collections/kubernetes.core/pull/741).
|
|
||||||
- inventory/k8s.py - Defer removal of k8s inventory plugin to version 6.0.0
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/734).
|
|
||||||
release_summary: This major release drops support for ``ansible-core<2.15``.
|
|
||||||
fragments:
|
|
||||||
- 20240530-ansible-core-support-update.yaml
|
|
||||||
- 20240530-defer-removal-and-ansible-core-support-update.yaml
|
|
||||||
- 5.0.0.yml
|
|
||||||
release_date: '2024-05-31'
|
|
||||||
5.1.0:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- helm - Helm version checks did not support RC versions. They now accept any
|
|
||||||
version tags. (https://github.com/ansible-collections/kubernetes.core/pull/745).
|
|
||||||
- helm_pull - Apply no_log=True to pass_credentials to silence false positive
|
|
||||||
warning. (https://github.com/ansible-collections/kubernetes.core/pull/796).
|
|
||||||
- k8s_drain - Fix k8s_drain does not wait for single pod (https://github.com/ansible-collections/kubernetes.core/issues/769).
|
|
||||||
- k8s_drain - Fix k8s_drain runs into a timeout when evicting a pod which is
|
|
||||||
part of a stateful set (https://github.com/ansible-collections/kubernetes.core/issues/792).
|
|
||||||
- kubeconfig option should not appear in module invocation log (https://github.com/ansible-collections/kubernetes.core/issues/782).
|
|
||||||
- kustomize - kustomize plugin fails with deprecation warnings (https://github.com/ansible-collections/kubernetes.core/issues/639).
|
|
||||||
- waiter - Fix waiting for daemonset when desired number of pods is 0. (https://github.com/ansible-collections/kubernetes.core/pull/756).
|
|
||||||
minor_changes:
|
|
||||||
- Bump version of ansible-lint to minimum 24.7.0 (https://github.com/ansible-collections/kubernetes.core/pull/765).
|
|
||||||
- Parameter insecure_registry added to helm_template as equivalent of insecure-skip-tls-verify
|
|
||||||
(https://github.com/ansible-collections/kubernetes.core/pull/805).
|
|
||||||
- k8s_drain - Improve error message for pod disruption budget when draining
|
|
||||||
a node (https://github.com/ansible-collections/kubernetes.core/issues/797).
|
|
||||||
release_summary: This release came with new module ``helm_registry_auth``, improvements
|
|
||||||
to the error messages in the k8s_drain module, new parameter ``insecure_registry``
|
|
||||||
for ``helm_template`` module and several bug fixes.
|
|
||||||
fragments:
|
|
||||||
- 0-readme.yml
|
|
||||||
- 20240601-doc-example-of-using-kubectl.yaml
|
|
||||||
- 20240611-helm-rc-version.yaml
|
|
||||||
- 20240620-fix-kustomize-plugin-fails-with-deprecation-warnings.yml
|
|
||||||
- 20241102-fix-ci-post-2.18-issue.yaml
|
|
||||||
- 20241103-completly-remove-obsolate-communication-channel.yaml
|
|
||||||
- 20241207-add-insecure-skip-tls-verify-to-helm-template.yaml
|
|
||||||
- 20241213-kubeconfig-set-no_log-true.yaml
|
|
||||||
- 756-fix-daemonset-waiting.yaml
|
|
||||||
- 765-bump-ansible-lint-version.yml
|
|
||||||
- 770-fix-k8s-drain-doesnt-wait-for-single-pod.yaml
|
|
||||||
- 793-fix-k8s-drain-runs-into-timeout.yaml
|
|
||||||
- 796-false-positive-helmull.yaml
|
|
||||||
- 798-drain-pdb-error-message.yaml
|
|
||||||
- readme_template_update.yml
|
|
||||||
modules:
|
|
||||||
- description: Helm registry authentication module
|
|
||||||
name: helm_registry_auth
|
|
||||||
namespace: ''
|
|
||||||
release_date: '2025-01-20'
|
|
||||||
5.2.0:
|
|
||||||
changes:
|
|
||||||
minor_changes:
|
|
||||||
- k8s - Extend hidden_fields to allow the expression of more complex field types
|
|
||||||
to be hidden (https://github.com/ansible-collections/kubernetes.core/pull/872)
|
|
||||||
- k8s_info - Extend hidden_fields to allow the expression of more complex field
|
|
||||||
types to be hidden (https://github.com/ansible-collections/kubernetes.core/pull/872)
|
|
||||||
- 'waiter.py - add ClusterOperator support. The module can now check OpenShift
|
|
||||||
cluster health by verifying ClusterOperator status requiring ''Available:
|
|
||||||
True'', ''Degraded: False'', and ''Progressing: False'' for success. (https://github.com/ansible-collections/kubernetes.core/issues/869)'
|
|
||||||
release_summary: This release adds more functionality to the hidden_fields option
|
|
||||||
and support for waiting on ClusterOperators to reach a ready state.
|
|
||||||
fragments:
|
|
||||||
- 5.2.0.yml
|
|
||||||
- 643-extend-hidden-fields.yaml
|
|
||||||
- 879-clusteroperator-waiter.py.yaml
|
|
||||||
release_date: '2025-03-27'
|
|
||||||
5.3.0:
|
|
||||||
changes:
|
|
||||||
bugfixes:
|
|
||||||
- module_utils/k8s/service - fix issue when trying to delete resource using
|
|
||||||
`delete_options` and `check_mode=true` (https://github.com/ansible-collections/kubernetes.core/issues/892).
|
|
||||||
minor_changes:
|
|
||||||
- Bump version of ansible-lint to 25.1.2 (https://github.com/ansible-collections/kubernetes.core/pull/919).
|
|
||||||
- action/k8s_info - update templating mechanism with changes from ``ansible-core
|
|
||||||
2.19`` (https://github.com/ansible-collections/kubernetes.core/pull/888).
|
|
||||||
- helm - add reset_then_reuse_values support to helm module (https://github.com/ansible-collections/kubernetes.core/issues/803).
|
|
||||||
- helm - add support for ``insecure_skip_tls_verify`` option to helm and helm_repository(https://github.com/ansible-collections/kubernetes.core/issues/694).
|
|
||||||
release_summary: This release includes minor changes, bug fixes and also bumps
|
|
||||||
ansible-lint version to ``25.1.2``.
|
|
||||||
fragments:
|
|
||||||
- 20250324-k8s_info-templating.yaml
|
|
||||||
- 5.3.0.yml
|
|
||||||
- 694-add-insecure-skip-tls-verify.yml
|
|
||||||
- 800-helm-add-reset_then_reuse_values-support.yml
|
|
||||||
- 898-k8s-dont-delete-in-check-mode.yaml
|
|
||||||
- 919-update-ansible-lint-version.yaml
|
|
||||||
release_date: '2025-05-16'
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ changelog_filename_template: ../CHANGELOG.rst
|
|||||||
changelog_filename_version_depth: 0
|
changelog_filename_version_depth: 0
|
||||||
changes_file: changelog.yaml
|
changes_file: changelog.yaml
|
||||||
changes_format: combined
|
changes_format: combined
|
||||||
keep_fragments: false
|
keep_fragments: true
|
||||||
mention_ancestor: true
|
mention_ancestor: true
|
||||||
new_plugins_after_name: removed_features
|
new_plugins_after_name: removed_features
|
||||||
notesdir: fragments
|
notesdir: fragments
|
||||||
|
|||||||
3
changelogs/fragments/100-k8s_scale-fix-wait.yaml
Normal file
3
changelogs/fragments/100-k8s_scale-fix-wait.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- k8s_scale - Fix scale wait and add tests (https://github.com/ansible-collections/community.kubernetes/pull/100).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Don't require project coverage check on PRs (https://github.com/ansible-collections/community.kubernetes/pull/102).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- Fix suboption docs structure for inventory plugins (https://github.com/ansible-collections/community.kubernetes/pull/103).
|
||||||
3
changelogs/fragments/105-improved-k8s-diffs.yaml
Normal file
3
changelogs/fragments/105-improved-k8s-diffs.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Use improved kubernetes diffs where possible (https://github.com/ansible-collections/community.kubernetes/pull/105).
|
||||||
2
changelogs/fragments/106-helm_replace.yml
Normal file
2
changelogs/fragments/106-helm_replace.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- helm - add replace parameter (https://github.com/ansible-collections/community.kubernetes/issues/106).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Add action groups for playbooks with module_defaults (https://github.com/ansible-collections/community.kubernetes/pull/107).
|
||||||
3
changelogs/fragments/110-helm-minor-refactor.yaml
Normal file
3
changelogs/fragments/110-helm-minor-refactor.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm - minor code refactoring (https://github.com/ansible-collections/community.kubernetes/pull/110).
|
||||||
3
changelogs/fragments/114-minor-docs-fixes.yaml
Normal file
3
changelogs/fragments/114-minor-docs-fixes.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Minor documentation fixes and use of FQCN in some examples (https://github.com/ansible-collections/community.kubernetes/pull/114).
|
||||||
3
changelogs/fragments/115-helm-add-atomic.yaml
Normal file
3
changelogs/fragments/115-helm-add-atomic.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm - add 'atomic' option (https://github.com/ansible-collections/community.kubernetes/pull/115).
|
||||||
3
changelogs/fragments/117-helm-minor-refactor.yaml
Normal file
3
changelogs/fragments/117-helm-minor-refactor.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm_info and helm_repository - minor code refactor (https://github.com/ansible-collections/community.kubernetes/pull/117).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- k8s - Handle set object retrieved from lookup plugin (https://github.com/ansible-collections/community.kubernetes/pull/118).
|
||||||
3
changelogs/fragments/119-handle-kubeconfig-error.yaml
Normal file
3
changelogs/fragments/119-handle-kubeconfig-error.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- Handle invalid kubeconfig parsing error (https://github.com/ansible-collections/community.kubernetes/pull/119).
|
||||||
2
changelogs/fragments/122_k8s_exec_rc.yml
Normal file
2
changelogs/fragments/122_k8s_exec_rc.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- k8s_exec - return RC for the command executed (https://github.com/ansible-collections/community.kubernetes/issues/122).
|
||||||
3
changelogs/fragments/123-flake8.yaml
Normal file
3
changelogs/fragments/123-flake8.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Check Python code using flake8 (https://github.com/ansible-collections/community.kubernetes/pull/123).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Add requires_ansible version constraints to runtime.yml (https://github.com/ansible-collections/community.kubernetes/pull/126).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Remove action_groups_redirection entry from meta/runtime.yml (https://github.com/ansible-collections/community.kubernetes/pull/127).
|
||||||
3
changelogs/fragments/13-fix-elements-argspec.yaml
Normal file
3
changelogs/fragments/13-fix-elements-argspec.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- k8s - Fix argspec for 'elements' (https://github.com/ansible-collections/community.kubernetes/issues/13).
|
||||||
3
changelogs/fragments/130-add-sanity-ignore-211.yaml
Normal file
3
changelogs/fragments/130-add-sanity-ignore-211.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Add sanity test ignore file for Ansible 2.11 (https://github.com/ansible-collections/community.kubernetes/pull/130).
|
||||||
3
changelogs/fragments/131-changelog-fragments.yaml
Normal file
3
changelogs/fragments/131-changelog-fragments.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
major_changes:
|
||||||
|
- Add changelog and fragments and document changelog process (https://github.com/ansible-collections/community.kubernetes/pull/131).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- raw - handle condition when definition is none (https://github.com/ansible-collections/community.kubernetes/pull/139).
|
||||||
3
changelogs/fragments/14-k8s_exec-new-module.yaml
Normal file
3
changelogs/fragments/14-k8s_exec-new-module.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
major_changes:
|
||||||
|
- k8s_exec - New module for executing commands on pods via Kubernetes API (https://github.com/ansible-collections/community.kubernetes/pull/14).
|
||||||
4
changelogs/fragments/140-kubeconfig-env.yaml
Normal file
4
changelogs/fragments/140-kubeconfig-env.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm - add support for K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT environment variable (https://github.com/ansible-collections/community.kubernetes/issues/140).
|
||||||
|
- helm_info - add support for K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT environment variable (https://github.com/ansible-collections/community.kubernetes/issues/140).
|
||||||
3
changelogs/fragments/141-helm-add-k8s-env-vars.yaml
Normal file
3
changelogs/fragments/141-helm-add-k8s-env-vars.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm - Add support for K8S_AUTH_CONTEXT, K8S_AUTH_KUBECONFIG env (https://github.com/ansible-collections/community.kubernetes/pull/141).
|
||||||
3
changelogs/fragments/146-fqcn-in-docs.yaml
Normal file
3
changelogs/fragments/146-fqcn-in-docs.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Use FQCN in module docs and plugin examples (https://github.com/ansible-collections/community.kubernetes/pull/146).
|
||||||
3
changelogs/fragments/148-update-base-branch-main.yaml
Normal file
3
changelogs/fragments/148-update-base-branch-main.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Update base branch to 'main' (https://github.com/ansible-collections/community.kubernetes/issues/148).
|
||||||
4
changelogs/fragments/152-helm-context-aliases.yml
Normal file
4
changelogs/fragments/152-helm-context-aliases.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm - add aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152).
|
||||||
|
- helm_info - add aliases context for kube_context (https://github.com/ansible-collections/community.kubernetes/pull/152).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- Update openshift requirements in k8s module doc (https://github.com/ansible-collections/community.kubernetes/pull/153).
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
major_changes:
|
||||||
|
- helm_plugin - new module to manage Helm plugins (https://github.com/ansible-collections/community.kubernetes/pull/154).
|
||||||
|
- helm_plugin_info - new modules to gather information about Helm plugins (https://github.com/ansible-collections/community.kubernetes/pull/154).
|
||||||
3
changelogs/fragments/155-ensure-check-mode-waits.yaml
Normal file
3
changelogs/fragments/155-ensure-check-mode-waits.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Ensure check mode results are as expected (https://github.com/ansible-collections/community.kubernetes/pull/155).
|
||||||
3
changelogs/fragments/156-k8s_info-vars-example.yaml
Normal file
3
changelogs/fragments/156-k8s_info-vars-example.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- k8s_info - Update example using vars (https://github.com/ansible-collections/community.kubernetes/pull/156).
|
||||||
3
changelogs/fragments/157-helm-create-namespace.yaml
Normal file
3
changelogs/fragments/157-helm-create-namespace.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm - Allow creating namespaces with Helm (https://github.com/ansible-collections/community.kubernetes/pull/157).
|
||||||
3
changelogs/fragments/158-k8s_exec-return-rc.yaml
Normal file
3
changelogs/fragments/158-k8s_exec-return-rc.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
major_changes:
|
||||||
|
- k8s_exec - Return rc for the command executed (https://github.com/ansible-collections/community.kubernetes/pull/158).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
security_fixes:
|
||||||
|
- kubectl - redacted token and password from console log (https://github.com/ansible-collections/community.kubernetes/pull/159).
|
||||||
3
changelogs/fragments/16-k8s_log-new-module.yaml
Normal file
3
changelogs/fragments/16-k8s_log-new-module.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
major_changes:
|
||||||
|
- k8s_log - New module for retrieving pod logs (https://github.com/ansible-collections/community.kubernetes/pull/16).
|
||||||
3
changelogs/fragments/168-test-stable-ansible.yaml
Normal file
3
changelogs/fragments/168-test-stable-ansible.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- Test against stable ansible branch so molecule tests work (https://github.com/ansible-collections/community.kubernetes/pull/168).
|
||||||
3
changelogs/fragments/180_raw_handle_exception.yml
Normal file
3
changelogs/fragments/180_raw_handle_exception.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- raw - Handle exception raised by underlying APIs (https://github.com/ansible-collections/community.kubernetes/pull/180).
|
||||||
2
changelogs/fragments/18_k8s_info_wait.yml
Normal file
2
changelogs/fragments/18_k8s_info_wait.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- k8s_info - add wait functionality (https://github.com/ansible-collections/community.kubernetes/issues/18).
|
||||||
3
changelogs/fragments/191_contributing.yml
Normal file
3
changelogs/fragments/191_contributing.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Added a contribution guide (https://github.com/ansible-collections/community.kubernetes/pull/192).
|
||||||
3
changelogs/fragments/192_helm-status-check-mode.yml
Normal file
3
changelogs/fragments/192_helm-status-check-mode.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm - Return status in check mode (https://github.com/ansible-collections/community.kubernetes/pull/192).
|
||||||
3
changelogs/fragments/193_vault-kubeconfig-support.yml
Normal file
3
changelogs/fragments/193_vault-kubeconfig-support.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
major_changes:
|
||||||
|
- k8s_* - Add support for vaulted kubeconfig and src (https://github.com/ansible-collections/community.kubernetes/pull/193).
|
||||||
3
changelogs/fragments/196_probot-stale-bot.yml
Normal file
3
changelogs/fragments/196_probot-stale-bot.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Add probot stale bot configuration to autoclose issues (https://github.com/ansible-collections/community.kubernetes/pull/196).
|
||||||
3
changelogs/fragments/197_downstream-makefile.yml
Normal file
3
changelogs/fragments/197_downstream-makefile.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Add Makefile and downstream build script for kubernetes.core (https://github.com/ansible-collections/community.kubernetes/pull/197).
|
||||||
2
changelogs/fragments/200_kubectl_fix.yml
Normal file
2
changelogs/fragments/200_kubectl_fix.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- kubectl plugin - correct console log (https://github.com/ansible-collections/community.kubernetes/issues/200).
|
||||||
2
changelogs/fragments/202_k8s_info.yml
Normal file
2
changelogs/fragments/202_k8s_info.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- k8s_info - update custom resource example (https://github.com/ansible-collections/community.kubernetes/issues/202).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- k8s (inventory) - Set the connection plugin and transport separately (https://github.com/ansible-collections/community.kubernetes/pull/208).
|
||||||
3
changelogs/fragments/211_execution-env-meta.yml
Normal file
3
changelogs/fragments/211_execution-env-meta.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Add execution environment metadata (https://github.com/ansible-collections/community.kubernetes/pull/211).
|
||||||
3
changelogs/fragments/223_refactor-module_utils.yml
Normal file
3
changelogs/fragments/223_refactor-module_utils.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Refactor module_utils (https://github.com/ansible-collections/community.kubernetes/pull/223).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- common - handle exception raised due to DynamicClient (https://github.com/ansible-collections/community.kubernetes/pull/224).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Replace KubernetesAnsibleModule class with dummy class (https://github.com/ansible-collections/community.kubernetes/pull/227).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- common - Do not mark task as changed when diff is irrelevant (https://github.com/ansible-collections/community.kubernetes/pull/228).
|
||||||
3
changelogs/fragments/229_helm-vault-support.yml
Normal file
3
changelogs/fragments/229_helm-vault-support.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm_* - Support vaulted kubeconfig (https://github.com/ansible-collections/community.kubernetes/pull/229).
|
||||||
3
changelogs/fragments/230_k8s-template-parameter.yml
Normal file
3
changelogs/fragments/230_k8s-template-parameter.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
major_changes:
|
||||||
|
- k8s - Add support for template parameter (https://github.com/ansible-collections/community.kubernetes/pull/230).
|
||||||
3
changelogs/fragments/231_k8sansiblemixin-module.yml
Normal file
3
changelogs/fragments/231_k8sansiblemixin-module.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Replace KubernetesRawModule class with K8sAnsibleMixin (https://github.com/ansible-collections/community.kubernetes/pull/231).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- k8s - SelfSubjectAccessReviews supported when 405 response received (https://github.com/ansible-collections/community.kubernetes/pull/237).
|
||||||
3
changelogs/fragments/235_k8s_info-wait-support.yml
Normal file
3
changelogs/fragments/235_k8s_info-wait-support.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- k8s_info - Add support for wait (https://github.com/ansible-collections/community.kubernetes/pull/235).
|
||||||
2
changelogs/fragments/243_template.yml
Normal file
2
changelogs/fragments/243_template.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- k8s - add testcase for adding multiple resources using template parameter (https://github.com/ansible-collections/community.kubernetes/issues/243).
|
||||||
3
changelogs/fragments/246_helm-appversion-check.yml
Normal file
3
changelogs/fragments/246_helm-appversion-check.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- helm - Add appVersion idempotence check to Helm (https://github.com/ansible-collections/community.kubernetes/pull/246).
|
||||||
3
changelogs/fragments/252_connection-plugin-fqcn-fix.yml
Normal file
3
changelogs/fragments/252_connection-plugin-fqcn-fix.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- k8s (inventory) - Specify FQCN for k8s inventory plugin to fix use with Ansible 2.9 (https://github.com/ansible-collections/community.kubernetes/pull/250).
|
||||||
3
changelogs/fragments/260_k8s-positional-args.yml
Normal file
3
changelogs/fragments/260_k8s-positional-args.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- k8s - Fix sanity test 'compile' failing because of positional args (https://github.com/ansible-collections/community.kubernetes/issues/260).
|
||||||
2
changelogs/fragments/280_helm_status.yml
Normal file
2
changelogs/fragments/280_helm_status.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- helm - return values in check mode when release is not present (https://github.com/ansible-collections/community.kubernetes/issues/280).
|
||||||
3
changelogs/fragments/307_remote_src.yml
Normal file
3
changelogs/fragments/307_remote_src.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
minor_changes:
|
||||||
|
- k8s - check if src file is located on remote node or on Ansible Controller (https://github.com/ansible-collections/community.kubernetes/issues/307).
|
||||||
|
- k8s - check if kubeconfig file is located on remote node or on Ansible Controller (https://github.com/ansible-collections/community.kubernetes/issues/307).
|
||||||
2
changelogs/fragments/308_k8s_info.yml
Normal file
2
changelogs/fragments/308_k8s_info.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- k8s_info - add information about api_version while returning facts (https://github.com/ansible-collections/community.kubernetes/pull/308).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Adjust the documentation to clarify the fact ``wait_condition.status`` is a string.
|
||||||
2
changelogs/fragments/314_version.yml
Normal file
2
changelogs/fragments/314_version.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- runtime.yml - update minimum Ansible version required for Kubernetes collection (https://github.com/ansible-collections/community.kubernetes/issues/314).
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- The Helm modules (``helm``, ``helm_info``, ``helm_plugin``, ``helm_plugin_info``, ``helm_plugin_repository``) accept
|
||||||
|
the K8S environment variables like the other modules of the collections.
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Adjust the name of parameters of ``helm`` and ``helm_info`` to match the documentation. No playbook change required.
|
||||||
3
changelogs/fragments/33-k8s_service-fix-argspec.yaml
Normal file
3
changelogs/fragments/33-k8s_service-fix-argspec.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- k8s_service - Fix argspec (https://github.com/ansible-collections/community.kubernetes/issues/33).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- helm - ``release_values`` makes ansible always show changed state (https://github.com/ansible-collections/community.kubernetes/issues/274)
|
||||||
2
changelogs/fragments/334-delete-options.yaml
Normal file
2
changelogs/fragments/334-delete-options.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- k8s - add a ``delete_options`` parameter to control garbage collection behavior when deleting a resource (https://github.com/ansible-collections/community.kubernetes/issues/253).
|
||||||
2
changelogs/fragments/343-secret-check-mode.yaml
Normal file
2
changelogs/fragments/343-secret-check-mode.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- k8s - fix check_mode always showing changes when using stringData on Secrets (https://github.com/ansible-collections/community.kubernetes/issues/282).
|
||||||
2
changelogs/fragments/349-skip-crds.yaml
Normal file
2
changelogs/fragments/349-skip-crds.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- helm - add a ``skip_crds`` option to skip the installation of CRDs when installing or upgrading a chart (https://github.com/ansible-collections/community.kubernetes/issues/296).
|
||||||
3
changelogs/fragments/35-wait-conditions.yaml
Normal file
3
changelogs/fragments/35-wait-conditions.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- Improve k8s Deployment and Daemonset wait conditions (https://github.com/ansible-collections/community.kubernetes/pull/35).
|
||||||
2
changelogs/fragments/352-k8s.yml
Normal file
2
changelogs/fragments/352-k8s.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- k8s - add an example for downloading manifest file and applying (https://github.com/ansible-collections/community.kubernetes/issues/352).
|
||||||
2
changelogs/fragments/355-helm-diff.yaml
Normal file
2
changelogs/fragments/355-helm-diff.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- helm - add optional support for helm diff (https://github.com/ansible-collections/community.kubernetes/issues/248).
|
||||||
3
changelogs/fragments/357_helm_plugin.yml
Normal file
3
changelogs/fragments/357_helm_plugin.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
bugfixes:
|
||||||
|
- helm_plugin - make unused ``release_namespace`` parameter as optional (https://github.com/ansible-collections/community.kubernetes/issues/357).
|
||||||
|
- helm_plugin_info - make unused ``release_namespace`` parameter as optional (https://github.com/ansible-collections/community.kubernetes/issues/357).
|
||||||
2
changelogs/fragments/360-k8s_info-wait-timeout.yaml
Normal file
2
changelogs/fragments/360-k8s_info-wait-timeout.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- respect the ``wait_timeout`` parameter in the ``k8s`` and ``k8s_info`` modules when a resource does not exist (https://github.com/ansible-collections/community.kubernetes/issues/344).
|
||||||
2
changelogs/fragments/361-k8s_exec-permission-hint.yaml
Normal file
2
changelogs/fragments/361-k8s_exec-permission-hint.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- k8s_exec - add a note about required permissions for the module (https://github.com/ansible-collections/community.kubernetes/issues/339).
|
||||||
2
changelogs/fragments/362-helm-has_plugin-fix.yaml
Normal file
2
changelogs/fragments/362-helm-has_plugin-fix.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- helm - make helm-diff plugin detection more reliable by splitting by any whitespace instead of explicit whitespace (``\s``) (https://github.com/ansible-collections/community.kubernetes/pull/362).
|
||||||
2
changelogs/fragments/368-helm_template.yaml
Normal file
2
changelogs/fragments/368-helm_template.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- helm_template - add helm_template module to support template functionality (https://github.com/ansible-collections/community.kubernetes/issues/367).
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user