Skip to content

Feat: add flag in AgentBuild CRD to automatically remove PipelineRun artifacts at the end of a successfull build #2

Description

@pdettori

At the end of each build there are several pods in completed state, which accumulates as we start building more agents - see for example after building 3 agents:

$ k get pods
NAME                                                       READY   STATUS      RESTARTS   AGE
a2a-contact-extractor-agent-183ad56d-build-and-push-pod    0/1     Completed   0          170m
a2a-contact-extractor-agent-183ad56d-check-subfolder-pod   0/1     Completed   0          170m
a2a-contact-extractor-agent-183ad56d-git-clone-pod         0/1     Completed   0          170m
a2a-contact-extractor-agent-8594854868-2rtmf               1/1     Running     0          169m
a2a-currency-agent-183ad4c0-build-and-push-pod             0/1     Completed   0          3h3m
a2a-currency-agent-183ad4c0-check-subfolder-pod            0/1     Completed   0          3h3m
a2a-currency-agent-183ad4c0-git-clone-pod                  0/1     Completed   0          3h3m
a2a-currency-agent-b7bf674b7-kfg8x                         1/1     Running     0          3h2m
acp-ollama-researcher-183ad40f-build-and-push-pod          0/1     Completed   0          3h15m
acp-ollama-researcher-183ad40f-check-subfolder-pod         0/1     Completed   0          3h15m
acp-ollama-researcher-183ad40f-git-clone-pod               0/1     Completed   0          3h15m
acp-ollama-researcher-6944ddc487-xbfsv                     1/1     Running     0          3h15m
kagenti-operator-controller-manager-585c587f7f-xhclk       1/1     Running     0          3h47m

It would be helpful to have the option (as a flag) to have the operator automatically remove the build artifacts for a successful run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions