-
Notifications
You must be signed in to change notification settings - Fork 170
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
base: main
Are you sure you want to change the base?
Conversation
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" |
There was a problem hiding this comment.
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}" |
There was a problem hiding this comment.
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,
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Hardcoded the version in the gotmpl. Also there is already a version in there which needs to be updated. So I think its fine. |
📌 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