hierarchical-namespaces icon indicating copy to clipboard operation
hierarchical-namespaces copied to clipboard

Allow propagation of resources per root namespace

Open yiqigao217 opened this issue 3 years ago • 9 comments

Issue by hferentschik Tuesday Mar 16, 2021 at 09:25 GMT Originally opened as https://github.com/kubernetes-sigs/multi-tenancy/issues/1435


Currently, you can only globally (via the HNCConfiguration) configure the resources to be propagated, eg Secrets. However, propagation might differ between different root namespaces.

IMO it would be nice to be able to configure propagation rules per hierarchy.

For example, we are implementing an application that uses HNC to create and delete dynamically sub-namespaces. For the root namespace of our application and its children we want to propagate Secrets, but not for any other namespace.

ATM, we are installing HNC as part of our Helm chart, but we also have a flag where the HNC install is skipped in the case HNC is already installed on the cluster. In the latter case, our applications need to propagate Secrets might be in conflict with already existing usage of HNC.

Hope this makes sense. I have no idea whether there might be a technical limitation which propagation rules could not be configured per hierarchy.

yiqigao217 avatar May 05 '21 18:05 yiqigao217

Comment by adrianludwin Tuesday Mar 16, 2021 at 14:35 GMT


There's no technical barrier to doing this, but it's a pretty complicated design problem. For example, assume we add an "allow-propagate" mode as suggested in #1436. Does a "force-propagate" in a parent override an "allow-propagate" in a child, or vice versa? What's the API for controlling all this? I'm sure we can answer all these (after all, filesystems have done this kind of thing for years) but it will take nontrivial effort. The testing will also be quite complicated.

If you'd like to have a go at writing a design doc stating the precise API and semantics of this feature, I'd be happy to have a look, and then review any resulting PRs. However, before I ask the core team to work on this, I'd need to see more evidence of a strong demand. I hope this makes sense!

yiqigao217 avatar May 05 '21 18:05 yiqigao217

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale

k8s-triage-robot avatar Aug 04 '21 13:08 k8s-triage-robot

/remove-lifecycle stale

hferentschik avatar Aug 11 '21 11:08 hferentschik

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Nov 09 '21 11:11 k8s-triage-robot

/remove-lifecycle stale

hferentschik avatar Nov 19 '21 08:11 hferentschik

Hi @hferentschik , I don't think anyone's going to work on this unless there's a design doc that answers the questions I raised earlier on. If you'd like to write such a doc I'd be happy to look at it!

adrianludwin avatar Jan 14 '22 15:01 adrianludwin

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Apr 14 '22 15:04 k8s-triage-robot

/remove-lifecycle stale

hferentschik avatar Apr 19 '22 06:04 hferentschik

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jul 18 '22 07:07 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Aug 17 '22 08:08 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-triage-robot avatar Sep 16 '22 08:09 k8s-triage-robot

@k8s-triage-robot: Closing this issue.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Sep 16 '22 08:09 k8s-ci-robot