-
Notifications
You must be signed in to change notification settings - Fork 71
[WIP] Add cluster runtime constraints handling #220
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Cluster Runtime Constraints | ||
|
||
Cluster runtime constraints are base constraints that always get applied to the resolution process to avoid installing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems more apt to call it something like "global" or "static" than "cluster runtime", since this could be conflated with the "virtual bundle" concept mapped out in some of the EPs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. damn - I see a lot of refactoring in my future now hahaha |
||
packages that might be unsuitable for the cluster (consumes too many resources, wrong kubernetes/ocp version, etc.). | ||
Currently, there's no first class way to do this. Until we design the canonical way to define | ||
cluster runtime constraints, we are making availing a stopgap solution for IBM and OCP, we: | ||
1. Are adding a file to the downstream OLM image that includes the runtime constraints | ||
2. Have modified the upstream catalog operator to load the runtime constraints in to the resolver if a `RUNTIME_CONSTRAINTS` environment variable is defined | ||
3. Update the deployment manifests for the olm catalog operator deployment to add the `RUNTIME_CONSTRAINTS` environment variable | ||
|
||
The upstream PR enabling this behavior is [https://github.com/operator-framework/operator-lifecycle-manager/pull/2498](#2498). |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"properties": [ | ||
{ | ||
"type": "olm.package", | ||
"value": { | ||
"packageName": "etcd", | ||
"version": "1.0.0" | ||
} | ||
} | ||
] | ||
} |
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.
Does this belong in
docs.go
? i.e. looks like something we want in the go docs.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.
Could you please be more specific for me: do you mean there's a docs place in this repo? do you mean upstream? do you mean docstrings in the code?
My intent here is to add developer documentation - just so people get the context of why that file exists there. Once we have the right way of doing things, then all of this should go away.
It is still my intention to add user facing docs though - but I was thinking of doing that in the upstream
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.
Sorry -- Go doc strings; e.g. https://github.com/kubernetes-sigs/controller-runtime/blob/master/doc.go autogenerates developer docs at https://pkg.go.dev/sigs.k8s.io/controller-runtime