Skip to content

Support multiple Architectures | remove support for ubuntu 18.04 and EL7 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 25, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
strategy:
max-parallel: 10
matrix:
IMAGE: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster]
IMAGE: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, rockylinux-8, debian-bullseye, debian-buster]

steps:

Expand Down
36 changes: 22 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ Available variables are listed below (located in `defaults/main.yml`):
```yaml
kubens_app: kubens
kubens_version: 0.9.5
kubens_os: linux
kubens_arch: x86_64
kubens_dl_url: https://github.com/ahmetb/kubectx/releases/download/v{{ kubens_version }}/{{ kubens_app }}_v{{ kubens_version }}_{{ kubens_os }}_{{ kubens_arch }}.tar.gz
kubens_os: "{{ ansible_system | lower }}"
kubens_architecture_map:
amd64: x86_64
arm: arm64
x86_64: x86_64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: x86_64
kubens_dl_url: https://github.com/ahmetb/kubectx/releases/download/v{{ kubens_version }}/{{ kubens_app }}_v{{ kubens_version }}_{{ kubens_os }}_{{ kubens_architecture_map[ansible_architecture] }}.tar.gz
kubens_bin_path: /usr/local/bin
kubens_file_owner: root
kubens_file_group: root
Expand All @@ -28,17 +36,17 @@ kubens_file_mode: '0755'

### Variables table:

Variable | Description
----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------
kubens_app | Defines the app to install i.e. **kubens**
kubens_version | Defined to dynamically fetch the desired version to install. Defaults to: **0.9.5**
kubens_osarch | Used to specify OS type.
kubens_arch | Used to specify OS architecture type.
kubens_dl_url | Defines URL to download the kubens binary from.
kubens_bin_path | Defined to dynamically set the appropriate path to store kubens binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**
kubens_file_owner | Owner for the binary file of kubens.
kubens_file_group | Group for the binary file of kubens.
kubens_file_mode | Mode for the binary file of kubens.
Variable | Description
----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------
kubens_app | Defines the app to install i.e. **kubens**
kubens_version | Defined to dynamically fetch the desired version to install. Defaults to: **0.9.5**
kubens_osarch | Used to specify OS type.
kubens_architecture_map | Used to specify OS architecture type.
kubens_dl_url | Defines URL to download the kubens binary from.
kubens_bin_path | Defined to dynamically set the appropriate path to store kubens binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**
kubens_file_owner | Owner for the binary file of kubens.
kubens_file_group | Group for the binary file of kubens.
kubens_file_mode | Mode for the binary file of kubens.

## Dependencies

Expand Down
14 changes: 11 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@

kubens_app: kubens
kubens_version: 0.9.5
kubens_os: linux
kubens_arch: x86_64
kubens_dl_url: https://github.com/ahmetb/kubectx/releases/download/v{{ kubens_version }}/{{ kubens_app }}_v{{ kubens_version }}_{{ kubens_os }}_{{ kubens_arch }}.tar.gz
kubens_os: "{{ ansible_system | lower }}"
kubens_architecture_map:
amd64: x86_64
arm: arm64
x86_64: x86_64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: x86_64
kubens_dl_url: https://github.com/ahmetb/kubectx/releases/download/v{{ kubens_version }}/{{ kubens_app }}_v{{ kubens_version }}_{{ kubens_os }}_{{ kubens_architecture_map[ansible_architecture] }}.tar.gz
kubens_bin_path: /usr/local/bin
kubens_file_owner: root
kubens_file_group: root
Expand Down
2 changes: 0 additions & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ galaxy_info:
- noble
- jammy
- focal
- bionic
- name: Debian
versions:
- bullseye
- buster
- name: EL
versions:
- 8
- 7

galaxy_tags:
- kubens
Expand Down