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

[release-v0.47.x] update affinity assistant creation implementation #6863

Commits on Jun 22, 2023

  1. update affinity assistant creation implementation

    Before this commit, the affinity assistant was created in the beginning of
    the pipleineRun. And the same affinity assistant was relied on for the
    entire lifecycle of a PR. Now, there could be a case when the node
    on which affinity assistant pod is created goes down. In this case,
    the rest of the pipelineRun is stuck and cannot run to the completition
    since the affinity assistant (StatefulSet) tries to schedule rest
    of the pods (taskRuns) on the same node but that node is cordoned or not
    scheduling anything new.
    
    This commit always makes an attempt to create Affinity Assistant (StatefulSet)
    in case it does not exist. If it exist, the controller checks if the node on
    which Affinity Assistant pod is created is healthy to schedule subsequent
    pods. If not, the controller deletes Affinity Assistant pod so that
    StatefulSet can upscale the replicas (set to 1) on other node in the cluster.
    
    Signed-off-by: Priti Desai <[email protected]>
    pritidesai authored and tekton-robot committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    9a291d3 View commit details
    Browse the repository at this point in the history