8000 Remove podman driver from core by ssbarnea · Pull Request #2812 · ansible/molecule · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions bindep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ python3-libselinux [test platform:rpm !platform:centos-7]
python3-netifaces [test !platform:centos-7 platform:rpm]

openssl-devel [test platform:rpm]

podman [platform:rpm]
conmon [platform:centos-8]
8 changes: 0 additions & 8 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ Delegated
.. autoclass:: molecule.driver.delegated.Delegated()
:undoc-members:


Podman
^^^^^^

.. autoclass:: molecule.driver.podman.Podman()
:undoc-members:


.. _lint:

Lint
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

190 changes: 0 additions & 190 deletions molecule/driver/podman.py

This file was deleted.

69 changes: 0 additions & 69 deletions molecule/model/schema_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,69 +300,6 @@ def pre_validate_base_schema(env, keep_string):
}
}

platforms_podman_schema = {
"platforms": {
"type": "list",
"schema": {
"type": "dict",
"schema": {
"name": {"type": "string"},
"hostname": {"type": "string"},
"image": {"type": "string"},
"dockerfile": {"type": "string"},
"pull": {"type": "boolean"},
"pre_build_image": {"type": "boolean"},
"registry": {
"type": "dict",
"schema": {
"url": {"type": "string"},
"credentials": {
"type": "dict",
"schema": {
"username": {"type": "string"},
"password": {"type": "string"},
},
},
},
},
"override_command": {"type": "boolean", "nullable": True},
"command": {"type": "string", "nullable": True},
"tty": {"type": "boolean", "nullable": True},
"pid_mode": {"type": "string"},
"privileged": {"type": "boolean"},
"security_opts": {"type": "list", "schema": {"type": "string"}},
"volumes": {"type": "list", "schema": {"type": "string"}},
"tmpfs": {"type": "list", "schema": {"type": "string"}},
"capabilities": {"type": "list", "schema": {"type": "string"}},
"exposed_ports": {
"ty 8 pe" C039 : "list",
"schema": {"type": "string", "coerce": "exposed_ports"},
},
"published_ports": {"type": "list", "schema": {"type": "string"}},
"ulimits": {"type": "list", "schema": {"type": "string"}},
"dns_servers": {"type": "list", "schema": {"type": "string"}},
"etc_hosts": {
"type": ["string", "dict"],
"keysrules": {"type": "string"},
},
"env": {
"type": "dict",
"keysrules": {"type": "string", "regex": "^[a-zA-Z0-9._-]+$"},
},
"restart_policy": {"type": "string"},
"restart_retries": {"type": "integer"},
"network": {"type": "string"},
"cert_path": {"type": "string"},
"tls_verify": {"type": "boolean"},
"cgroup_manager": {"type": "string"},
"storage_opt": {"type": "string"},
"storage_driver": {"type": "string"},
"rootless": {"type": "boolean"},
},
},
}
}


dependency_command_nullable_schema = {
"dependency": {
Expand Down Expand Up @@ -447,12 +384,6 @@ def validate(c):
if c["dependency"]["name"] == "shell":
schema = util.merge_dicts(schema, dependency_command_nullable_schema)

# Driver
if c["driver"]["name"] == "docker":
schema = util.merge_dicts(schema, platforms_docker_schema)
elif c["driver"]["name"] == "podman":
schema = util.merge_dicts(schema, platforms_podman_schema)

# Verifier
schema = util.merge_dicts(schema, api.verifiers()[c["verifier"]["name"]].schema())

Expand Down
Loading
0