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

Define new WorkflowTemplates to allow partial builds and refactor existing WorkflowTemplates and Manifests to deploy Argo Workflows #50

Merged
merged 8 commits into from
Oct 17, 2023

Conversation

aleskandro
Copy link
Member

@aleskandro aleskandro commented Oct 12, 2023

This PR:

Fixes #52
Related to #55, #56

cc @LorbusChris @vrutkovs

@aleskandro aleskandro changed the title Allow partial builds via Argo workflows and Pivot to the default branches for all the BCs in the main branch WIP: Allow partial builds via Argo workflows and Pivot to the default branches for all the BCs in the main branch Oct 12, 2023
Copy link
Contributor

@LorbusChris LorbusChris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

superficial review

variants/fcos-multiarch/kustomization.yaml Outdated Show resolved Hide resolved
variants/fcos-multiarch/kustomization.yaml Outdated Show resolved Hide resolved
argo-workflows/README.md Outdated Show resolved Hide resolved
set -ex
echo "Preparing memoization params"
git_uri=$(oc get bc {{inputs.parameters.build-config-name}} -o jsonpath='{.spec.source.git.uri}')
git_revision=$(oc get bc {{inputs.parameters.build-config-name}} -o jsonpath='{.spec.source.git.ref}')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we deal with errors in oc commands/timeouts etc..?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Prashanth684 it would fail for such issues. However, we never wait for long-runing executions (as in oc wait bc) to conclude because Argo Workflow has its own ways for doing it.

buildconfigs/06-cli.yaml Outdated Show resolved Hide resolved
@aleskandro aleskandro force-pushed the partial-builds branch 2 times, most recently from 94e9cae to ea92b64 Compare October 16, 2023 17:05
@aleskandro aleskandro changed the title WIP: Allow partial builds via Argo workflows and Pivot to the default branches for all the BCs in the main branch Allow partial builds via Argo workflows and Pivot to the default branches for all the BCs in the main branch Oct 16, 2023
@aleskandro
Copy link
Member Author

/hold

splitting in more PRs to keep things cleaner.

@aleskandro aleskandro force-pushed the partial-builds branch 2 times, most recently from 3b90e5b to 6a62f78 Compare October 17, 2023 06:39
Let's use overlays to define the common namespace. In future, this will be usefule to test changes in this repo by having manifests and runs in different namespaces.
- Define the mirror-and-customize workflow template
- Define the mirror-and-rebuild-okd workflow template
- Pivot the build-from-scratch workflow template to mirror-and-customize
- Some images (ironic-related) are temporarily disabled in the mirror-and-rebuild-okd workflow template because they fail on arm64
The memoize feature does not support using configmaps in namespaces different from the one where argo workflows is deployed.
There is no way today for changing the OAuthClient redirectURIs given a resource created in the cluster while applying the kustomization. Creating a job with the proper permissions to patch the resource after the kustomization is applied.
@aleskandro aleskandro changed the title Allow partial builds via Argo workflows and Pivot to the default branches for all the BCs in the main branch Define new WorkflowTemplates to allow partial builds and refactor existing WorkflowTemplates and Manifests to deploy Argo Workflows Oct 17, 2023
@aleskandro
Copy link
Member Author

All is ready for further reviews or merge.

@vrutkovs vrutkovs merged commit c1c2a36 into okd-project:main Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the kustomization for Argo workflows and the okd-workflows
4 participants