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

feat: Pod Disruption Budget API #10009

Merged
merged 11 commits into from
Mar 3, 2025
Merged

feat: Pod Disruption Budget API #10009

merged 11 commits into from
Mar 3, 2025

Conversation

maciaszczykm
Copy link
Member

@maciaszczykm maciaszczykm commented Mar 3, 2025

List endpoint:

{
  "listMeta": {
    "totalItems": 1
  },
  "items": [
    {
      "objectMeta": {
        "name": "zk-pdb",
        "namespace": "default",
        "annotations": {
          "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"policy/v1\",\"kind\":\"PodDisruptionBudget\",\"metadata\":{\"annotations\":{},\"name\":\"zk-pdb\",\"namespace\":\"default\"},\"spec\":{\"maxUnavailable\":1,\"selector\":{\"matchLabels\":{\"app\":\"zookeeper\"}}}}\n"
        },
        "creationTimestamp": "2025-03-03T13:09:17Z",
        "uid": "d941ff71-8a5d-4ffa-9757-1be294f23049"
      },
      "typeMeta": {
        "kind": "poddisruptionbudget"
      },
      "minAvailable": null,
      "maxUnavailable": 1,
      "unhealthyPodEvictionPolicy": null,
      "labelSelector": {
        "matchLabels": {
          "app": "zookeeper"
        }
      },
      "currentHealthy": 0,
      "desiredHealthy": 0,
      "disruptionsAllowed": 0,
      "expectedPods": 0
    }
  ],
  "errors": []
}

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 3, 2025
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 3, 2025
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 3, 2025
@maciaszczykm maciaszczykm changed the title Pod Disruption Budget API feat: Pod Disruption Budget API Mar 3, 2025
@maciaszczykm maciaszczykm added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 3, 2025
@maciaszczykm maciaszczykm marked this pull request as ready for review March 3, 2025 12:25
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 3, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: floreks, maciaszczykm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [floreks,maciaszczykm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 3, 2025
@k8s-ci-robot k8s-ci-robot added language/de Updates or issues for German translations. language/fr Updates or issues for French translations. language/ja Updates or issues for Japanese translations. labels Mar 3, 2025
@k8s-ci-robot k8s-ci-robot added language/ko Updates or issues for Korean translations. language/zh Updates or issues for Chinese translations. labels Mar 3, 2025
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

Attention: Patch coverage is 49.65517% with 73 lines in your changes missing coverage. Please review.

Project coverage is 35.95%. Comparing base (abba0ef) to head (b6f84e1).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10009      +/-   ##
==========================================
+ Coverage   35.81%   35.95%   +0.13%     
==========================================
  Files         303      306       +3     
  Lines       14566    14711     +145     
  Branches      183      183              
==========================================
+ Hits         5217     5289      +72     
- Misses       9125     9198      +73     
  Partials      224      224              

@maciaszczykm maciaszczykm merged commit 1fac58a into master Mar 3, 2025
23 of 24 checks passed
@maciaszczykm maciaszczykm deleted the pdb branch March 3, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. language/de Updates or issues for German translations. language/fr Updates or issues for French translations. language/ja Updates or issues for Japanese translations. language/ko Updates or issues for Korean translations. language/zh Updates or issues for Chinese translations. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants