Skip to content

[SRVKS-701] Use upstream operator to install Kourier - #935

Merged
openshift-merge-robot merged 2 commits into
openshift-knative:mainfrom
markusthoemmes:srvks-701
May 18, 2021
Merged

openshift-merge-robot merged 2 commits into
openshift-knative:mainfrom
markusthoemmes:srvks-701

Conversation

@markusthoemmes

@markusthoemmes markusthoemmes commented May 10, 2021 •

Copy link
Copy Markdown
Contributor

As per title :)

This contains 2 small patches to the upstream operator's codebase which have meanwhile made it onto upstream's main, so they'll be part of the 0.23 release.

@openshift-ci
openshift-ci Bot requested review from skonto and warrenvw May 10, 2021 16:29
@markusthoemmes markusthoemmes changed the title [WIP] [SRVKS-701] Use upstream operator to install Kourier [SRVKS-701] Use upstream operator to install Kourier May 11, 2021
@markusthoemmes

Copy link
Copy Markdown
Contributor Author

/hold

To wait for 1.15 cut

Comment thread hack/update-deps.sh Outdated

# Apply patches

# TODO(markusthoemmes): Drop these in 1.17.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What changes in 1.17?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The patches are part of the upstream code on that release.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just initiated the necessary backports to 0.22 though, so we can prolly ditch these before merging this.


func (e *extension) Finalize(context.Context, v1alpha1.KComponent) error {
func (e *extension) Finalize(ctx context.Context, ks v1alpha1.KComponent) error {
// Delete the ingress namespaces (manifestival doesn't delete namespaces)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

From what I read it can be done if it is created by itself.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Interesting, I'm going to doublecheck the behavior there then.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Dug into a rabbit hole and figured out what was wrong. Tl;dr: We need the manual delete anyway because there is a bug in manifestival. See the new comment.

+++ b/vendor/knative.dev/operator/pkg/reconciler/knativeserving/ingress/kourier.go
@@ -38,13 +38,13 @@ var kourierFilter = ingressFilter("kourier")

func kourierTransformers(ctx context.Context, instance *v1alpha1.KnativeServing) []mf.Transformer {

@skonto skonto May 11, 2021 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think patching here could be avoided if we move extension transformers at the very end here (initially goal was not to change knative manifests only add platform specific).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As mentioned above, this is part of the upstream code in the respective release.

@nak3

nak3 commented May 12, 2021

Copy link
Copy Markdown
Contributor

LGTM!
But there is one issue I found.
It seems that deleting kourier deployment does not trigger the reconciler as owner reference was dropped.
I deployed serverless-operator from this branch (with rebased) and tried to delete 3scale-kourier-gateway deployment:

$ oc delete deploy -n knative-serving-ingress  3scale-kourier-gateway
deployment.apps "3scale-kourier-gateway" deleted

Then 3scale-kourier-gateway deployment did not spin up and knative-operator pod did not print any logs.
It would not be a big issue, though.

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

@nak3 yeah agree, this is basically then part of https://issues.redhat.com/browse/SRVKS-461. Though maybe we can do something for this specific case quite easily.

@nak3

nak3 commented May 13, 2021

Copy link
Copy Markdown
Contributor

/lgtm

@nak3

nak3 commented May 17, 2021

Copy link
Copy Markdown
Contributor

/lgtm

@nak3

nak3 commented May 18, 2021

Copy link
Copy Markdown
Contributor

/lgtm
/hold

upgrade test is broken due to another reason.

@openshift-ci openshift-ci Bot added the lgtm label May 18, 2021
@openshift-ci

openshift-ci Bot commented May 18, 2021

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markusthoemmes, nak3

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

The pull request process is described here

Details 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

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

/retest

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

/unhold

YAAAY!

@openshift-merge-robot
openshift-merge-robot merged commit f4d65e6 into openshift-knative:main May 18, 2021
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.

4 participants