Skip to content

Commit

Permalink
Merge pull request #621 from linode/dev
Browse files Browse the repository at this point in the history
Release v0.32.1
  • Loading branch information
vshanthe authored Nov 13, 2024
2 parents aaceff8 + 903de3d commit d1ba3a5
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 20 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
name: Run Integration Tests

on:
workflow_dispatch: null
workflow_dispatch:
inputs:
python-version:
description: 'Specify Python version to use'
required: false
run-eol-python-version:
description: 'Run EOL python version?'
required: false
default: 'false'
type: choice
options:
- 'true'
- 'false'
push:
branches:
- main
- dev

env:
DEFAULT_PYTHON_VERSION: "3.10"
EOL_PYTHON_VERSION: "3.8"
EXIT_STATUS: 0

jobs:
integration-tests:
runs-on: ubuntu-latest
Expand All @@ -29,7 +46,7 @@ jobs:
- name: Setup Python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}

- name: Install dependencies
run: make deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v4
-
name: Run Labeler
uses: crazy-max/ghaction-github-labeler@de749cf181958193cb7debf1a9c5bb28922f3e1b
uses: crazy-max/ghaction-github-labeler@b54af0c25861143e7c8813d7cbbf46d2c341680c
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
# TODO:
# Upgrade back to ubuntu-latest when the permission issue fixed
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ '3.9','3.10','3.11', '3.12' ]
defaults:
run:
working-directory: .ansible/collections/ansible_collections/linode/cloud
Expand All @@ -23,7 +26,7 @@ jobs:
- name: setup python 3
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: ${{ matrix.python-version }}

- name: install dependencies
run: make deps
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/lke_type_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ List and filter on LKE Types.

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable fields can be found [here](https://techdocs.akamai.com/linode-api/reference/api). |
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable fields can be found [here](https://techdocs.akamai.com/linode-api/reference/get-lke-types). |
| `values` | <center>`list`</center> | <center>**Required**</center> | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |

## Return Values
Expand Down Expand Up @@ -75,6 +75,6 @@ List and filter on LKE Types.
}
]
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/api) for a list of returned fields
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-lke-types) for a list of returned fields


4 changes: 2 additions & 2 deletions docs/modules/nodebalancer_type_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ List and filter on Node Balancer Types.

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable fields can be found [here](https://techdocs.akamai.com/linode-api/reference/api). |
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable fields can be found [here](https://techdocs.akamai.com/linode-api/reference/get-node-balancer-types). |
| `values` | <center>`list`</center> | <center>**Required**</center> | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |

## Return Values
Expand Down Expand Up @@ -75,6 +75,6 @@ List and filter on Node Balancer Types.
}
]
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/api) for a list of returned fields
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-node-balancer-types) for a list of returned fields


6 changes: 3 additions & 3 deletions docs/modules/region_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ List and filter on Regions.
```
```yaml
- name: Resolve all Linode regions
- name: Filtered Linode regions
linode.cloud.region_list:
filters:
- name: id
values: us-east
- name: site_type
values: core
```
Expand Down
6 changes: 3 additions & 3 deletions plugins/module_utils/doc_fragments/region_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
specdoc_examples = ['''
- name: List all of the Linode regions
linode.cloud.region_list: {}''', '''
- name: Resolve all Linode regions
- name: Filtered Linode regions
linode.cloud.region_list:
filters:
- name: id
values: us-east''']
- name: site_type
values: core''']

result_regions_samples = ['''[
{
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/lke_type_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
result_display_name="LKE Types",
result_field_name="lke_types",
endpoint_template="/lke/types",
result_docs_url="https://techdocs.akamai.com/linode-api/reference/get-lke-types",
examples=docs.specdoc_examples,
result_samples=docs.result_lke_type_samples,
)
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/nodebalancer_type_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
result_display_name="Node Balancer Types",
result_field_name="nodebalancer_types",
endpoint_template="/nodebalancers/types",
result_docs_url="https://techdocs.akamai.com/linode-api/reference/get-node-balancer-types",
examples=docs.specdoc_examples,
result_samples=docs.result_nodebalancer_type_samples,
)
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ line_length = 80
[tool.black]
line-length = 80
target-version = [
"py37",
"py38",
"py39",
"py310",
"py311",
"py312",
]
exclude = "plugins/module_utils/doc_fragments"

Expand Down Expand Up @@ -57,5 +56,5 @@ disable = [
"fixme",
]
max-positional-arguments = 12
py-version = "3.8"
py-version = "3.9"
extension-pkg-whitelist = "math"
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ isort>=5.12.0
autoflake>=2.0.1
pytest>=7.3.1
pytest-forked>=1.6.0
pytest-xdist>=3.3.1
pytest-xdist>=3.3.1
types-requests==2.31.0.1
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
linode-api4>=5.22.0
polling>=0.3.2
types-requests==2.32.0.20241016
polling==0.3.2
ansible-specdoc>=0.0.15

0 comments on commit d1ba3a5

Please sign in to comment.