forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Automatically recreate pvc when sts pod is stuck in pending #1
Open
rrangith
wants to merge
1,970
commits into
master
Choose a base branch
from
fix/create-pvc-for-pending-pod
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+399,435
−185,021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5de3112
to
5a9b8da
Compare
f3243a0
to
3f21c6c
Compare
06a7a98
to
b7120e6
Compare
8d28e93
to
34da5a1
Compare
e0ee169
to
1031ed0
Compare
f3dbc4d
to
fe0652b
Compare
…hould correctly account for terminated pods after restart
Revert "bump golang.org/x/oauth2"
Signed-off-by: Dave Chen <dave.chen@arm.com>
This is mostly because the path, even for built-in, can change from test to test, so it's easier to make the whole thing configurable anyway.
Fix verify-licenses script
This reverts commit 0b93994. Signed-off-by: aimuz <mr.imuz@gmail.com>
`genCSRConfig.kubeadmConfig` is possible to be nil if there any error from the config loading, so access the field should only be done if there is no error in the previous step. Signed-off-by: Dave Chen <dave.chen@arm.com>
kubeadm: unittest might run as non-root
Before, in RunPostFilterPlugins, we didn't distinguish between unschedulable and unresolvable because we only have one postFilterPlugin by default, now, we have at least two, we should make sure that once a postFilterPlugin returns unresolvable, we'll return directly Signed-off-by: Kante Yin <kerthcet@gmail.com>
…tainer update should trigger a policy evaluation
…e-group-name-registration code-generator: refer to the API package for GV{R,K}
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
Fix:[Flake] [sig-node] Restart [Serial] [Slow] [Disruptive] Kubelet hould correctly account for terminated pods after restart
…ndler Drop unused EndpointsHandler / EndpointsConfig from pkg/proxy/config
tests: Ports volume unit tests to Windows
Revert "Add link to to file"
kubeadm: fix the nil pointer dereference in testcase
It should be possible to import `kms/api` for `kms/service` package. Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
…tstop Stop Cache in scheduler when tests tear down
While refactoring the backoff manager to simplify and unify the code in wait a race condition was encountered in TestSharedInformerWatchDisruption. The new implementation failed because the fake clock was not propagated to the backoff managers when the reflector was used in a controller. After ensuring the mangaers, reflector, controller, and informer shared the same clock the test needed was updated to avoid the race condition by advancing the fake clock and adding real sleeps to wait for asynchronous propagation of the various goroutines in the controller. Due to the deep structure of informers it is difficult to inject hooks to avoid having to perform sleeps. At a minimum the FakeClock interface should allow a caller to determine the number of waiting timers (to avoid the first sleep).
hack/pin-dependency.sh github.com/moby/ipvs v1.1.0 - go to a fixed tag for `vishvananda/netns` - no more references to `pkg/errors` Signed-off-by: Davanum Srinivas <davanum@gmail.com>
…ture/UpdateOrCreateTokenAddErrProcessing Revert "UpdateOrCreateToken get secrets err handling optimization"
use --null instead of -Z in grep invocation
…pvs-v1.1.0 Update to new release of moby/ipvs
…ck_clock cache: Reflector should have the same injected clock as its informer
…dition-for-terminated-pods PodGC should not add DisruptionTarget condition for pods which are in terminal phase
…ontainer annotation Signed-off-by: Paco Xu <paco.xu@daocloud.io>
add e2e test for kubectl default container annotation
…gv0-controller use klog instead of klog.V(0)--controller manager part
…nused-functions delete unused functions in pkg/util directory
…-unused-functions delete unused functions in pkg/volume directory
…-functions delete unused functions in pkg directory
…lumebinding feature(volumebinding): return Skip in PreFilter
kubectl: use autoscaling v2 for hpa
cleanup(kubectl-e2e): remove invalid comments
Wait for logs pod to complete before counting lines
8c9867f
to
2f0eb54
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
based on mucahitkurt@1ab4b97
there was some discussion on that change ^ here kubernetes#74374
I added in a check to see if the pod was pending for > 30 seconds (arbitrary value) so that we dont do anything if its a transient pending pod.
The code will check the informer for the pod's pvcs and if a pvc is not found, it will recreate it. since it is using the informer, this won't make a call directly to the api server each time. And the pvc create call should be idempotent (need to confirm through testing). So even if the informer is out of date, and it says a pvc is missing even though it exists, the create call should just do nothing