Skip to content
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

feature request for k8s_scale - label_selector #112

Closed
haroonb opened this issue May 18, 2021 · 1 comment
Closed

feature request for k8s_scale - label_selector #112

haroonb opened this issue May 18, 2021 · 1 comment
Assignees
Labels
type/enhancement New feature or request

Comments

@haroonb
Copy link

haroonb commented May 18, 2021

SUMMARY

I would like to suggest a label_selector feature be added to the k8s_scale module

ISSUE TYPE
  • Feature Idea
    You can scale using labels instead of explicit names.
COMPONENT NAME

k8s_scale with a label_selector field

ADDITIONAL INFORMATION

You could scale groups of deployments/statefulsets, which are linked by labels

 
- name: scale all grafana related deployments
  community.kubernetes.k8s_scale:
    api_version: v1
    kind: Deployment
    label_selector: 
      - app=grafana-related
    namespace: custom-namespace
    replicas: 0
    wait_timeout: 60
@abikouo abikouo transferred this issue from ansible-collections/community.kubernetes May 21, 2021
@abikouo abikouo self-assigned this May 21, 2021
@gravesm gravesm added the type/enhancement New feature or request label May 24, 2021
@abikouo
Copy link
Contributor

abikouo commented Jun 7, 2021

Feature implemented. will be available with the 2.0 release.
For the time being can be used with the main branch

@abikouo abikouo closed this as completed Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants