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

Konflux - build all images #2707

Open
wants to merge 6 commits into
base: konflux
Choose a base branch
from

Conversation

mgencur
Copy link
Contributor

@mgencur mgencur commented Jun 13, 2024

Fixes JIRA #

Proposed Changes

  • Add Components, Pipelines, PipelineRuns for Ingress, knative-operator, metadata-webhook
  • Remove Pipeline serverless-openshift-knative-operator and reuse a common serverless-image Pipeline. All the PipelineRuns re-use the same Pipeline except for Index image that uses serverless-index Pipeline as this is a little different.
  • Add ImageRepository for each component. This resource is created automatically only when creating the component via UI. It needs to be created manually when using CLI as described in docs

Copy link
Contributor

openshift-ci bot commented Jun 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mgencur

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mgencur
Copy link
Contributor Author

mgencur commented Jun 13, 2024

Looks like the Image repositories need to be created manually on quay?

build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "konflux" && files.all.exists(x, !x.matches('^olm-catalog/|^knative-operator/'))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if this condition should be same for all images or different.

Copy link
Contributor Author

@mgencur mgencur Jun 14, 2024

Choose a reason for hiding this comment

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

Hmm. I would not do these optiomizations because the operators depend on each other. A simple grep gives me this:

  • knative-operator depends on openshift-knative-operator:
e.g. pkg/controller/knativekafka/knativekafka_controller.go:	socommon "github.com/openshift-knative/serverless-operator/openshift-knative-operator/pkg/common"
  • openshift-knative-operator depends o knative-operator:
pkg/common/deployment.go:	"github.com/openshift-knative/serverless-operator/knative-operator/pkg/common"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added commit to remove this optimization with explanation in the commit message: f72d433

* knative-operator and openshift-knative-operator depend on each other
as they import golang packages from each other
* serving/ingress and serving/metadata-webhook don't depend on each
other or on operators (and vice versa) but when somebody adds such
dependency the build will not be triggered even if it should
@mgencur mgencur changed the title [WIP] Konflux all images Konflux all images Jun 14, 2024
@mgencur mgencur changed the title Konflux all images Konflux - build all images Jun 14, 2024
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants