Coder Social home page Coder Social logo

doodlescheduling / k8s-pause Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 6.74 MB

Suspend/Resume kubernetes namespaces

License: Apache License 2.0

Dockerfile 0.32% Makefile 17.53% Mustache 4.60% Go 75.09% Shell 2.46%
kubernetes-controller kubernetes-admission-webhook suspend-namespace pause-kubernetes pause-pods greenhouse

k8s-pause's People

Contributors

paride5745 avatar petardoodle avatar raffis avatar tycale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sortlist

k8s-pause's Issues

Question about `ResumeProfile`

Describe the bug

I expected that declaring a ResumeProfile would allow me to specify pods that should always remain active, even when the namespace is suspended. However, this does not seem to be the case.

To Reproduce

Steps to reproduce the behavior:

  1. Define a ResumeProfile targeting specific pods.
  2. Set the annotation k8s-pause/suspend to "true" on the namespace.
  3. Observe that all pods in the namespace are paused, including those specified in the ResumeProfile.
  4. Set the annotation k8s-pause/suspend to "false".
  5. Observe that only the targeted pods in the ResumeProfile are resumed, while the others remain paused.

Expected behavior

I expected that the pods specified in the ResumeProfile would always remain up and running, regardless of the namespace suspension state. Specifically:

  • When k8s-pause/suspend is set to "true", the pods defined in the ResumeProfile should continue running, while all other pods are paused.
  • When k8s-pause/suspend is set to "false", all pods should resume, but the pods in the ResumeProfile should not have been paused in the first place.

Is this a bug or is it intentional behaviour? How can I create an exception such that a set of pods never pauses?

Thank you for looking into this issue.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps-dev): update sigstore/cosign-installer digest to c85d0e2
  • chore(deps): update module sigs.k8s.io/controller-runtime to v0.19.0
  • chore(deps): update quay.io/brancz/kube-rbac-proxy docker tag to v0.18.1
  • chore(deps-dev): update actions/setup-go action to v4.1.0
  • chore(deps-dev): update anchore/sbom-action action to v0.17.2
  • chore(deps-dev): update docker/login-action action to v2.2.0
  • chore(deps-dev): update goreleaser/goreleaser-action action to v4.6.0
  • chore(deps-dev): update helm/chart-testing-action action to v2.6.1
  • chore(deps-dev): update helm/kind-action action to v1.10.0
  • chore(deps-dev): update shogo82148/actions-goveralls action to v1.9.0
  • chore(deps-dev): update actions/cache action to v4
  • chore(deps-dev): update actions/checkout action to v4
  • chore(deps-dev): update actions/setup-go action to v5
  • chore(deps-dev): update actions/setup-python action to v5
  • chore(deps-dev): update docker/login-action action to v3
  • chore(deps-dev): update fossa-contrib/fossa-action action to v3
  • chore(deps-dev): update goreleaser/goreleaser-action action to v6
  • chore(deps-dev): update sigstore/cosign-installer action to v3
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
github-actions
.github/workflows/main.yaml
  • actions/checkout v3@8f4b7f84864484a7bf31766abe9204da3cbe65b3
  • actions/setup-go v4.0.0@4d34df0c2316fe8122ab82dc22947d607c0c91f9
  • actions/cache v3.3.1@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
  • shogo82148/actions-goveralls v1.6.0@31ee804b8576ae49f6dc3caa22591bc5080e7920
.github/workflows/pr-build.yaml
  • actions/checkout v3@755da8c3cf115ac066823e79a1e1788f8940201b
  • actions/setup-go v3.5.0@6edd4406fa81c3da01a34fa6f6343087c207a568
  • actions/cache v3.2.2@4723a57e26efda3a62cbde1812113b730952852d
  • shogo82148/actions-goveralls v1.6.0@31ee804b8576ae49f6dc3caa22591bc5080e7920
  • engineerd/setup-kind v0.5.0@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0
.github/workflows/pr-chart.yaml
  • actions/checkout v3@755da8c3cf115ac066823e79a1e1788f8940201b
  • azure/setup-helm v3.5@5119fcb9089d432beecbf79bb2c7915207344b78
  • actions/setup-python v4.4.0@5ccb29d8773c3f3f653e1705f474dfaa8a06a912
  • helm/chart-testing-action v2.3.1@afea100a513515fbd68b0e72a7bb0ae34cb62aec
  • helm/kind-action v1.5.0@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00
.github/workflows/pr-label.yaml
  • pascalgn/size-label-action 1619680c5ac1ef360b944bb56a57587ba4aa2af8
.github/workflows/rebase.yaml
  • actions/checkout v3@755da8c3cf115ac066823e79a1e1788f8940201b
  • cirrus-actions/rebase 1.8@b87d48154a87a85666003575337e27b8cd65f691
.github/workflows/release-chart.yaml
  • actions/checkout v3@755da8c3cf115ac066823e79a1e1788f8940201b
  • azure/setup-helm v3.5@5119fcb9089d432beecbf79bb2c7915207344b78
.github/workflows/release.yaml
  • actions/checkout v3@755da8c3cf115ac066823e79a1e1788f8940201b
  • actions/setup-go v3.5.0@6edd4406fa81c3da01a34fa6f6343087c207a568
  • docker/login-action v2.1.0@f4ef78c080cd8ba55a85445d5b36e214a81df20a
  • sigstore/cosign-installer v2.8.1@9becc617647dfa20ae7b1151972e9b3a2c338a2b
  • anchore/sbom-action v0.13.1@06e109483e6aa305a2b2395eabae554e51530e1d
  • goreleaser/goreleaser-action v4.1.0@8f67e590f2d095516493f017008adc464e63adb1
.github/workflows/scan.yaml
  • actions/checkout v3@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
  • fossa-contrib/fossa-action v2.0.0@6728dc6fe9a068c648d080c33829ffbe56565023
  • actions/checkout v3@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
  • github/codeql-action codeql-bundle-20221020@dc046388f30eacf938aadd32064285f437bd9c04
  • github/codeql-action codeql-bundle-20221020@dc046388f30eacf938aadd32064285f437bd9c04
  • github/codeql-action codeql-bundle-20221020@dc046388f30eacf938aadd32064285f437bd9c04
gomod
go.mod
  • go 1.20
  • github.com/go-logr/logr v1.2.3
  • github.com/onsi/ginkgo/v2 v2.9.1
  • github.com/onsi/gomega v1.27.4
  • github.com/spf13/pflag v1.0.5
  • github.com/spf13/viper v1.14.0
  • k8s.io/api v0.26.1
  • k8s.io/apimachinery v0.26.1
  • k8s.io/client-go v0.26.1
  • sigs.k8s.io/controller-runtime v0.14.6
helm-values
chart/k8s-pause/values.yaml
  • quay.io/brancz/kube-rbac-proxy v0.14.2
kustomize
config/base/manager/kustomization.yaml

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.