mirror of
https://github.com/openshift/community.okd.git
synced 2026-11-22 07:00:26 +00:00
Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c21952e87b | ||
|
|
7b56706004 | ||
|
|
2418bceeec | ||
|
|
d50d64d5d9 | ||
|
|
1fbf4ae009 | ||
|
|
a09c2dcacb | ||
|
|
4595487f78 | ||
|
|
232f9add7a | ||
|
|
620de63a26 |
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
profile: production
|
||||
|
||||
exclude_paths:
|
||||
- tests/unit
|
||||
- tests/sanity
|
||||
- molecule
|
||||
- changelogs
|
||||
- docs
|
||||
- .ansible
|
||||
- .github
|
||||
|
||||
warn_list:
|
||||
- no-log-password
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
profile: production
|
||||
exclude_paths:
|
||||
- molecule
|
||||
- tests/sanity
|
||||
+27
-3
@@ -4,6 +4,25 @@ OKD Collection Release Notes
|
||||
|
||||
.. contents:: Topics
|
||||
|
||||
v5.0.0
|
||||
======
|
||||
|
||||
Release Summary
|
||||
---------------
|
||||
|
||||
This release drops support for ansible-lint < 25.1.2 and removes deprecated openshift inventory plugin.
|
||||
|
||||
Breaking Changes / Porting Guide
|
||||
--------------------------------
|
||||
|
||||
- Remove openshift inventory plugin deprecated in 3.0.0 (https://github.com/openshift/community.okd/pull/252).
|
||||
|
||||
Minor Changes
|
||||
-------------
|
||||
|
||||
- Bump version of ansible-lint to 25.1.2 (https://github.com/openshift/community.okd/pull/255).
|
||||
- Bump version of ansible-lint to minimum 24.7.0 (https://github.com/openshift/community.okd/pull/240).
|
||||
|
||||
v4.0.2
|
||||
======
|
||||
|
||||
@@ -15,10 +34,15 @@ This patch updates the k8s dependency version to the 5.x range and modifies test
|
||||
v4.0.1
|
||||
======
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
Release Summary
|
||||
---------------
|
||||
|
||||
- openshift_auth - fix issue where openshift_auth module sometimes does not delete the auth token (https://github.com/openshift/community.okd/pull/242)
|
||||
This is a bug fix release
|
||||
|
||||
Minor Changes
|
||||
-------------
|
||||
|
||||
- openshift_auth - fix issue where openshift_auth module sometimes does not delete the auth token. Based on stale PR (https://github.com/openshift/community.okd/pull/194).
|
||||
|
||||
v4.0.0
|
||||
======
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.PHONY: molecule
|
||||
|
||||
# Also needs to be updated in galaxy.yml
|
||||
VERSION = 6.0.0-dev0
|
||||
VERSION = 5.0.0
|
||||
|
||||
SANITY_TEST_ARGS ?= --docker --color
|
||||
UNITS_TEST_ARGS ?= --docker --color
|
||||
|
||||
@@ -244,8 +244,8 @@ releases:
|
||||
4.0.1:
|
||||
changes:
|
||||
minor_changes:
|
||||
- openshift_auth - fix issue where openshift_auth module sometimes does not delete the auth
|
||||
token. Based on stale PR (https://github.com/openshift/community.okd/pull/194).
|
||||
- openshift_auth - fix issue where openshift_auth module sometimes does not
|
||||
delete the auth token. Based on stale PR (https://github.com/openshift/community.okd/pull/194).
|
||||
release_summary: This is a bug fix release
|
||||
fragments:
|
||||
- 242-fix-failed-token-deletion.yml
|
||||
@@ -257,3 +257,17 @@ releases:
|
||||
fragments:
|
||||
- 4.0.2.yml
|
||||
release_date: '2025-05-28'
|
||||
5.0.0:
|
||||
changes:
|
||||
breaking_changes:
|
||||
- Remove openshift inventory plugin deprecated in 3.0.0 (https://github.com/openshift/community.okd/pull/252).
|
||||
minor_changes:
|
||||
- Bump version of ansible-lint to 25.1.2 (https://github.com/openshift/community.okd/pull/255).
|
||||
- Bump version of ansible-lint to minimum 24.7.0 (https://github.com/openshift/community.okd/pull/240).
|
||||
release_summary: This release drops support for ansible-lint < 25.1.2 and removes deprecated openshift inventory plugin.
|
||||
fragments:
|
||||
- 240-bump-ansible-lint-version.yml
|
||||
- 5.0.0.yml
|
||||
- ansible-lint-update.yml
|
||||
- readme_template_update.yml
|
||||
release_date: '2025-06-10'
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
minor_changes:
|
||||
- Bump version of ansible-lint to minimum 24.7.0 (https://github.com/openshift/community.okd/pull/240).
|
||||
@@ -0,0 +1,3 @@
|
||||
minor_changes:
|
||||
- Replace ``ansible.module_utils.six`` imports (``iteritems``, ``string_types``) with Python 3 stdlib equivalents (https://github.com/openshift/community.okd/pull/287).
|
||||
- Add sanity test ignore files for ansible-core 2.20 and 2.21 (https://github.com/openshift/community.okd/pull/287).
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
minor_changes:
|
||||
- Bump version of ansible-lint to 25.1.2 (https://github.com/openshift/community.okd/pull/255).
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
trivial:
|
||||
- Update the README doc to match https://access.redhat.com/articles/7068606.
|
||||
+8
-8
@@ -5,26 +5,26 @@ ENV OPERATOR=/usr/local/bin/ansible-operator \
|
||||
USER_NAME=ansible-operator\
|
||||
HOME=/opt/ansible \
|
||||
ANSIBLE_LOCAL_TMP=/opt/ansible/tmp \
|
||||
DOWNSTREAM_BUILD_PYTHON=python3.9
|
||||
DOWNSTREAM_BUILD_PYTHON=python3.12
|
||||
|
||||
RUN yum install -y \
|
||||
glibc-langpack-en \
|
||||
git \
|
||||
make \
|
||||
python3 \
|
||||
python3-devel \
|
||||
python3-pip \
|
||||
python3-setuptools \
|
||||
python3.12 \
|
||||
python3.12-devel \
|
||||
python3.12-pip \
|
||||
python3.12-setuptools \
|
||||
gcc \
|
||||
openldap-devel \
|
||||
&& python3.9 -m pip install --no-cache-dir --upgrade setuptools pip \
|
||||
&& python3.9 -m pip install --no-cache-dir \
|
||||
&& python3.12 -m pip install --no-cache-dir --upgrade setuptools pip \
|
||||
&& python3.12 -m pip install --no-cache-dir \
|
||||
kubernetes \
|
||||
"ansible-core" \
|
||||
"molecule" \
|
||||
&& yum clean all \
|
||||
&& rm -rf $HOME/.cache \
|
||||
&& curl -L https://github.com/openshift/okd/releases/download/4.12.0-0.okd-2023-04-16-041331/openshift-client-linux-4.12.0-0.okd-2023-04-16-041331.tar.gz | tar -xz -C /usr/local/bin
|
||||
&& curl -L https://github.com/okd-project/okd/releases/download/4.20.0-okd-scos.17/openshift-client-linux-amd64-rhel9-4.20.0-okd-scos.17.tar.gz | tar -xz -C /usr/local/bin
|
||||
# TODO: Is there a better way to install this client in ubi8?
|
||||
|
||||
COPY . /opt/ansible
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@
|
||||
# - All functions are prefixed with f_ so it's obvious where they come
|
||||
# from when in use throughout the script
|
||||
|
||||
DOWNSTREAM_VERSION="6.0.0-dev0"
|
||||
DOWNSTREAM_VERSION="5.0.0"
|
||||
KEEP_DOWNSTREAM_TMPDIR="${KEEP_DOWNSTREAM_TMPDIR:-''}"
|
||||
INSTALL_DOWNSTREAM_COLLECTION_PATH="${INSTALL_DOWNSTREAM_COLLECTION_PATH:-}"
|
||||
_build_dir=""
|
||||
@@ -64,6 +64,7 @@ f_prep()
|
||||
# Files to copy downstream (relative repo root dir path)
|
||||
_file_manifest=(
|
||||
.gitignore
|
||||
.ansible-lint
|
||||
CHANGELOG.rst
|
||||
galaxy.yml
|
||||
LICENSE
|
||||
@@ -77,7 +78,6 @@ f_prep()
|
||||
|
||||
# Directories to recursively copy downstream (relative repo root dir path)
|
||||
_dir_manifest=(
|
||||
.config
|
||||
changelogs
|
||||
ci
|
||||
meta
|
||||
|
||||
+1
-1
@@ -24,4 +24,4 @@ tags:
|
||||
- okd
|
||||
- cluster
|
||||
# Also needs to be updated in the Makefile
|
||||
version: 6.0.0-dev0
|
||||
version: 5.0.0
|
||||
|
||||
@@ -18,8 +18,8 @@ provisioner:
|
||||
host_vars:
|
||||
localhost:
|
||||
virtualenv: ${MOLECULE_EPHEMERAL_DIRECTORY}/virtualenv
|
||||
virtualenv_command: '{{ ansible_playbook_python }} -m virtualenv'
|
||||
virtualenv_interpreter: '{{ virtualenv }}/bin/python'
|
||||
virtualenv_command: '{{ ansible_playbook_python }} -m venv'
|
||||
virtualenv_interpreter: '{{ virtualenv }}/bin/python3'
|
||||
playbook_namespace: molecule-tests
|
||||
env:
|
||||
ANSIBLE_FORCE_COLOR: 'true'
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
- kubernetes>=12.0.0
|
||||
- coverage
|
||||
- python-ldap
|
||||
- packaging
|
||||
virtualenv: "{{ virtualenv }}"
|
||||
virtualenv_command: "{{ virtualenv_command }}"
|
||||
virtualenv_site_packages: no
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- admins_group
|
||||
- devs_group
|
||||
- admins_group | length > 0
|
||||
- devs_group | length > 0
|
||||
- '"jane.smith@ansible.org" in admins_group.users'
|
||||
- '"jim.adams@ansible.org" in admins_group.users'
|
||||
- '"jordanbulls@ansible.org" in devs_group.users'
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- banking_group
|
||||
- insurance_group
|
||||
- banking_group | length > 0
|
||||
- insurance_group | length > 0
|
||||
- '"james-allan@ansible.org" in banking_group.users'
|
||||
- '"gordon-kane@ansible.org" in banking_group.users'
|
||||
- '"alice-courtney@ansible.org" in insurance_group.users'
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
spec:
|
||||
containers:
|
||||
- name: ldap
|
||||
image: bitnami/openldap
|
||||
# bitnami is no longer supporting this image. we should probably find a replacement
|
||||
image: docker.io/bitnamilegacy/openldap:latest
|
||||
env:
|
||||
- name: LDAP_ADMIN_USERNAME
|
||||
value: "{{ ldap_admin_user }}"
|
||||
|
||||
@@ -13,10 +13,8 @@
|
||||
|
||||
- pip:
|
||||
name:
|
||||
- kubernetes
|
||||
virtualenv: "{{ venv }}"
|
||||
virtualenv_command: "{{ virtualenv_command }}"
|
||||
virtualenv_site_packages: false
|
||||
- python-ldap
|
||||
state: absent
|
||||
|
||||
- name: Load test configurations
|
||||
set_fact:
|
||||
@@ -27,8 +25,6 @@
|
||||
config: "{{ configs.simple }}"
|
||||
register: result
|
||||
ignore_errors: true
|
||||
vars:
|
||||
ansible_python_interpreter: "{{ venv }}/bin/python"
|
||||
|
||||
- name: Check that module failed gracefully
|
||||
assert:
|
||||
@@ -36,6 +32,9 @@
|
||||
- '"Failed to import the required Python library (python-ldap)" in result.msg'
|
||||
|
||||
always:
|
||||
- pip:
|
||||
name:
|
||||
- python-ldap
|
||||
- name: Remove temp directory
|
||||
file:
|
||||
path: "{{ test_dir }}"
|
||||
|
||||
@@ -68,8 +68,8 @@
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- admins_group
|
||||
- devs_group
|
||||
- admins_group | length > 0
|
||||
- devs_group | length > 0
|
||||
- '"jane.smith@ansible.org" in admins_group.users'
|
||||
- '"jim.adams@ansible.org" in devs_group.users'
|
||||
- '"jordanbulls@ansible.org" in devs_group.users'
|
||||
@@ -89,8 +89,8 @@
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- admins_group
|
||||
- devs_group
|
||||
- admins_group | length > 0
|
||||
- devs_group | length > 0
|
||||
- '"jane.smith@ansible.org" in admins_group.users'
|
||||
- '"jim.adams@ansible.org" in devs_group.users'
|
||||
- '"jordanbulls@ansible.org" in devs_group.users'
|
||||
@@ -110,8 +110,8 @@
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- admins_group
|
||||
- devs_group
|
||||
- admins_group | length > 0
|
||||
- devs_group | length > 0
|
||||
- '"cn=Jane,ou=people,ou=rfc2307,"+ldap_root in admins_group.users'
|
||||
- '"cn=Jim,ou=people,ou=rfc2307,"+ldap_root in devs_group.users'
|
||||
- '"cn=Jordan,ou=people,ou=rfc2307,"+ldap_root in devs_group.users'
|
||||
@@ -131,8 +131,8 @@
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- admins_group
|
||||
- devs_group
|
||||
- admins_group | length > 0
|
||||
- devs_group | length > 0
|
||||
- '"jane.smith@ansible.org" in admins_group.users'
|
||||
- '"jim.adams@ansible.org" in devs_group.users'
|
||||
- '"jordanbulls@ansible.org" in devs_group.users'
|
||||
|
||||
@@ -213,5 +213,6 @@
|
||||
ignore_errors: true
|
||||
|
||||
when:
|
||||
- registry.public_hostname
|
||||
- registry.public_hostname is not none
|
||||
- registry.public_hostname | length > 0
|
||||
- registry.check.reached
|
||||
|
||||
@@ -66,10 +66,7 @@
|
||||
|
||||
tasks:
|
||||
- pip:
|
||||
name: kubernetes-validate==1.12.0
|
||||
virtualenv: "{{ virtualenv }}"
|
||||
virtualenv_command: "{{ virtualenv_command }}"
|
||||
virtualenv_site_packages: no
|
||||
name: kubernetes-validate==1.34.1
|
||||
|
||||
- import_tasks: tasks/validate_installed.yml
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import copy
|
||||
|
||||
from ansible.module_utils._text import to_native
|
||||
from ansible.module_utils.parsing.convert_bool import boolean
|
||||
from ansible.module_utils.six import iteritems
|
||||
|
||||
from ansible_collections.community.okd.plugins.module_utils.openshift_common import (
|
||||
AnsibleOpenshiftModule,
|
||||
@@ -106,7 +105,7 @@ class OpenShiftAdmPruneImages(AnsibleOpenshiftModule):
|
||||
|
||||
def list_objects(self):
|
||||
result = {}
|
||||
for kind, version in iteritems(ApiConfiguration):
|
||||
for kind, version in ApiConfiguration.items():
|
||||
namespace = None
|
||||
if self.params.get("namespace") and kind.lower() == "imagestream":
|
||||
namespace = self.params.get("namespace")
|
||||
|
||||
@@ -8,7 +8,6 @@ from datetime import datetime
|
||||
from ansible_collections.community.okd.plugins.module_utils.openshift_docker_image import (
|
||||
parse_docker_image_ref,
|
||||
)
|
||||
from ansible.module_utils.six import iteritems
|
||||
|
||||
|
||||
def get_image_blobs(image):
|
||||
@@ -119,7 +118,7 @@ class OpenShiftAnalyzeImageStream(object):
|
||||
"CronJob",
|
||||
)
|
||||
|
||||
for k, objects in iteritems(resources):
|
||||
for k, objects in resources.items():
|
||||
if k not in keys:
|
||||
continue
|
||||
for obj in objects:
|
||||
@@ -222,7 +221,7 @@ class OpenShiftAnalyzeImageStream(object):
|
||||
def analyze_refs_from_build_strategy(self, resources):
|
||||
# Json Path is always spec.strategy
|
||||
keys = ("BuildConfig", "Build")
|
||||
for k, objects in iteritems(resources):
|
||||
for k, objects in resources.items():
|
||||
if k not in keys:
|
||||
continue
|
||||
for obj in objects:
|
||||
|
||||
@@ -7,7 +7,6 @@ __metaclass__ = type
|
||||
import copy
|
||||
|
||||
from ansible.module_utils.parsing.convert_bool import boolean
|
||||
from ansible.module_utils.six import string_types
|
||||
|
||||
from ansible_collections.community.okd.plugins.module_utils.openshift_common import (
|
||||
AnsibleOpenshiftModule,
|
||||
@@ -370,7 +369,7 @@ class OpenShiftImportImage(AnsibleOpenshiftModule):
|
||||
def execute_module(self):
|
||||
names = []
|
||||
name = self.params.get("name")
|
||||
if isinstance(name, string_types):
|
||||
if isinstance(name, str):
|
||||
names.append(name)
|
||||
elif isinstance(name, list):
|
||||
names = name
|
||||
|
||||
@@ -12,7 +12,6 @@ import os
|
||||
import copy
|
||||
|
||||
from ansible.module_utils.parsing.convert_bool import boolean
|
||||
from ansible.module_utils.six import iteritems
|
||||
|
||||
try:
|
||||
import ldap
|
||||
@@ -46,7 +45,7 @@ def validate_ldap_sync_config(config):
|
||||
return "could not read ca file: {0}.".format(ca_file)
|
||||
|
||||
nameMapping = config.get("groupUIDNameMapping", {})
|
||||
for k, v in iteritems(nameMapping):
|
||||
for k, v in nameMapping.items():
|
||||
if len(k) == 0 or len(v) == 0:
|
||||
return "groupUIDNameMapping has empty key or value"
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
plugins/modules/k8s.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/k8s.py validate-modules:return-syntax-error
|
||||
plugins/modules/openshift_process.py validate-modules:parameter-type-not-in-doc
|
||||
@@ -0,0 +1,5 @@
|
||||
plugins/modules/k8s.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/k8s.py validate-modules:return-syntax-error
|
||||
plugins/modules/k8s.py validate-modules:bad-return-value-key
|
||||
plugins/modules/openshift_process.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/openshift_process.py validate-modules:bad-return-value-key
|
||||
Reference in New Issue
Block a user