-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #530 from linode/dev
Release v0.27.0
- Loading branch information
Showing
69 changed files
with
1,576 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,8 @@ jobs: | |
with: | ||
ref: ${{ inputs.sha }} | ||
path: .ansible/collections/ansible_collections/linode/cloud | ||
fetch-depth: 0 | ||
submodules: 'recursive' | ||
|
||
# Install deps | ||
- name: update packages | ||
|
@@ -61,10 +63,25 @@ jobs: | |
- name: replace existing keys | ||
run: rm -rf ~/.ansible/test && mkdir -p ~/.ansible/test && ssh-keygen -m PEM -q -t rsa -N '' -f ~/.ansible/test/id_rsa | ||
|
||
- name: Download kubectl and calicoctl for LKE clusters | ||
run: | | ||
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" | ||
curl -LO "https://github.com/projectcalico/calico/releases/download/v3.25.0/calicoctl-linux-amd64" | ||
chmod +x calicoctl-linux-amd64 kubectl | ||
mv calicoctl-linux-amd64 /usr/local/bin/calicoctl | ||
mv kubectl /usr/local/bin/kubectl | ||
- run: make deps && make TEST_ARGS="-v ${{ inputs.tests }}" test | ||
if: ${{ steps.disallowed-char-check.outputs.match == '' }} | ||
env: | ||
LINODE_API_TOKEN: ${{ secrets.DX_LINODE_TOKEN }} | ||
|
||
- name: Apply Calico Rules to LKE | ||
if: always() | ||
run: | | ||
cd e2e_scripts/cloud_security_scripts/lke_calico_rules/ && ./lke_calico_rules_e2e.sh | ||
env: | ||
LINODE_TOKEN: ${{ secrets.DX_LINODE_TOKEN }} | ||
|
||
- name: Get the hash value of the latest commit from the PR branch | ||
uses: octokit/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "tod_scripts"] | ||
path = tod_scripts | ||
url = https://github.com/linode/TOD-test-report-uploader.git | ||
[submodule "e2e_scripts"] | ||
path = e2e_scripts | ||
url = https://github.com/linode/dx-e2e-test-scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# placement_group | ||
|
||
Manage a Linode Placement Group. | ||
|
||
NOTE: Placement Groups may not currently be available to all users. | ||
|
||
- [Minimum Required Fields](#minimum-required-fields) | ||
- [Examples](#examples) | ||
- [Parameters](#parameters) | ||
- [Return Values](#return-values) | ||
|
||
## Minimum Required Fields | ||
| Field | Type | Required | Description | | ||
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). | | ||
|
||
## Examples | ||
|
||
```yaml | ||
- name: Create a placement group | ||
linode.cloud.placement_group: | ||
label: my-pg | ||
region: us-east | ||
affinity_type: anti_affinity:local | ||
is_strict: True | ||
state: present | ||
``` | ||
```yaml | ||
- name: Update a Linode placement group label | ||
linode.cloud.placement_group: | ||
# id is required to update the label | ||
id: 123 | ||
label: my-pg-updated | ||
state: present | ||
``` | ||
```yaml | ||
- name: Delete a placement group by label | ||
linode.cloud.placement_group: | ||
label: my-pg | ||
state: absent | ||
``` | ||
```yaml | ||
- name: Delete a placement group by id | ||
linode.cloud.placement_group: | ||
id: 123 | ||
state: absent | ||
|
||
``` | ||
|
||
|
||
## Parameters | ||
|
||
| Field | Type | Required | Description | | ||
|-----------|------|----------|------------------------------------------------------------------------------| | ||
| `id` | <center>`int`</center> | <center>Optional</center> | The unique ID of the placement group. | | ||
| `label` | <center>`str`</center> | <center>Optional</center> | The label of the Placement Group. This field can only contain ASCII letters, digits and dashes. | | ||
| `region` | <center>`str`</center> | <center>Optional</center> | The region that the placement group is in. | | ||
| `affinity_type` | <center>`str`</center> | <center>Optional</center> | The affinity policy for Linodes in a placement group. | | ||
| `is_strict` | <center>`bool`</center> | <center>Optional</center> | Whether Linodes must be able to become compliant during assignment. **(Default: `False`)** | | ||
|
||
## Return Values | ||
|
||
- `placement_group` - The Placement Group in JSON serialized form. | ||
|
||
- Sample Response: | ||
```json | ||
{ | ||
"id": 123, | ||
"label": "my-pg", | ||
"region": "eu-west", | ||
"affinity_type": "anti_affinity:local", | ||
"is_strict": true, | ||
"is_compliant": true, | ||
"members": [ | ||
{ | ||
"linode_id": 123, | ||
"is_compliant": true | ||
} | ||
] | ||
} | ||
``` | ||
- See the [Linode API response documentation](TBD) for a list of returned fields | ||
|
||
|
Oops, something went wrong.