Skip to content

feat: adding KnativeServing CR ORCS support #2260

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

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

feat: adding KnativeServing CR ORCS support #2260

wants to merge 33 commits into from

Conversation

Ani1357
Copy link
Contributor

@Ani1357 Ani1357 commented Jun 20, 2025

📌 Summary

APL-887
This PR configures the KnativeServing CR to use images from ORCS when useORCS is set to true.
Knative documentation

🔍 Reviewer Notes

🧹 Checklist

  • Code is readable, maintainable, and robust.
  • Unit tests added/updated

default: "{{ $v.otomi.linodeLkeImageRepository }}/gcr/knative-releases/knative.dev/serving/cmd/${NAME}"
override:
migrate: "{{ $v.otomi.linodeLkeImageRepository }}/gcr/knative-releases/knative.dev/pkg/apiextensions/storageversion/cmd/migrate"
cleantup: "{{ $v.otomi.linodeLkeImageRepository }}/gcr/knative-releases/knative.dev/serving/pkg/cleanup/cmd/cleanup"
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like typo cleantup => cleanup?

@@ -6,6 +6,13 @@ metadata:
name: knative-serving
namespace: knative-serving
spec:
{{- if $v.otomi.linodeLkeImageRepository }}
registry:
default: "{{ $v.otomi.linodeLkeImageRepository }}/gcr/knative-releases/knative.dev/serving/cmd/${NAME}"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit confusing because you define images through both a pattern (implicitly) and through override (explicitly). I would rather use override only,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems the operator itself is using sha's to pull the images created for this CR. Overriding seems to use the latest tag if no specific version is configured.

#kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec['initContainers', 'containers'][*].image}" |tr -s '[[:space:]]' '\n' |sort |uniq -c | awk '{print $2}' | sort -u | grep "knative"
gcr.io/knative-releases/knative.dev/net-istio/cmd/controller@sha256:18376be76f77cd195e2bb4993eebf86c6b8c34222247f2f8e4a265c5c4e9b9a8
gcr.io/knative-releases/knative.dev/net-istio/cmd/webhook@sha256:dcc32d23e1565c26620c3735c28ea294215e8b01dd9a30b58e19152879b89422
gcr.io/knative-releases/knative.dev/operator/cmd/operator:v1.18.1
gcr.io/knative-releases/knative.dev/operator/cmd/webhook:v1.18.1
gcr.io/knative-releases/knative.dev/serving/cmd/activator@sha256:80b2e4bf6df496c692f8e148b3a72afcb88165cb7428e52b788fa53075989655
gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler-hpa@sha256:b954b12cf7575d1d505a243f71aa252922f973a614d878549a4758ed92fd7f77
gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler@sha256:6ff1f7816c67954f4533edd7a7e35882e2d52613cc3343594ff3eddfd0c1fca2
gcr.io/knative-releases/knative.dev/serving/cmd/controller@sha256:d4c6a0f926509e8d34795003635fdb8625dd3d4648ec55fe2ce781e0b8750e04
gcr.io/knative-releases/knative.dev/serving/cmd/webhook@sha256:6fb473eb7641c3f7174ed4064e6c3f5eeeb05e1420f5af425bbec33af53f4f92

After this change is applied:

#kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec['initContainers', 'containers'][*].image}" |tr -s '[[:space:]]' '\n' |sort |uniq -c | awk '{print $2}' | sort -u | grep "knative"
mirror.registry.linodelke.net/gcr/knative-releases/knative.dev/operator/cmd/operator:v1.18.1
mirror.registry.linodelke.net/gcr/knative-releases/knative.dev/operator/cmd/webhook:v1.18.1
mirror.registry.linodelke.net/gcr/knative-releases/knative.dev/serving/cmd/activator
mirror.registry.linodelke.net/gcr/knative-releases/knative.dev/serving/cmd/autoscaler
mirror.registry.linodelke.net/gcr/knative-releases/knative.dev/serving/cmd/autoscaler-hpa
mirror.registry.linodelke.net/gcr/knative-releases/knative.dev/serving/cmd/controller
mirror.registry.linodelke.net/gcr/knative-releases/knative.dev/serving/cmd/webhook
mirror.registry.linodelke.net/gcr/knative-releases/knative.dev/serving/pkg/cleanup/cmd/cleanup

Copy link
Contributor

Choose a reason for hiding this comment

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

I see it is a bit problematic because it seems that we can't lock the version tag.

Copy link
Contributor

@j-zimnowoda j-zimnowoda left a comment

Choose a reason for hiding this comment

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

Some inconsistencies and typos.

@CasLubbers CasLubbers requested a review from j-zimnowoda June 30, 2025 14:35
@CasLubbers
Copy link
Contributor

Hardcoded the version in the gotmpl. Also there is already a version in there which needs to be updated. So I think its fine.

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.

4 participants