-
Notifications
You must be signed in to change notification settings - Fork 67
🌱 OPRUN-4077: Remove the kustomize config #2213
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
Merged
openshift-merge-bot
merged 3 commits into
operator-framework:main
from
tmshort:oprun-4077
Sep 24, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,5 @@ | ||
# OPERATOR-CONTROLLER CONFIGURATION | ||
|
||
The main kustomize targets are all located in the `config/overlays` directory. These are the directories that should be passed to kustomize: | ||
|
||
e.g. | ||
``` | ||
kustomize build config/overlays/standard > standard.yaml | ||
``` | ||
|
||
# Overlays | ||
|
||
All other directories are in support of of these overlays. | ||
|
||
## config/overlays/basic-olm | ||
|
||
This includes basic support for an insecure (non-TLS) OLMv1 deployment. | ||
|
||
## config/overlays/standard | ||
|
||
This includes support for a secure (i.e. with TLS) configuration of OLMv1. This configuration requires cert-manager. | ||
|
||
This configuration is used to generate `manifests/standard.yaml`. | ||
|
||
## config/overlays/standard-e2e | ||
|
||
This provides additional configuration support for end-to-end testing, including code coverage. This configuration requires cert-manager. | ||
|
||
This configuration is used to generate `manifests/standard-e2e.yaml`. | ||
|
||
## config/overlays/prometheus | ||
|
||
Overlay containing manifest files which enable prometheus scraping of the catalogd and operator-controller pods. Used during e2e runs to measure performance over the lifetime of the test. | ||
|
||
These manifests will not end up in the `manifests/` folder, as they must be applied in two distinct steps to avoid issues with applying prometheus CRDs and CRs simultaneously. | ||
|
||
Performance alert settings can be found in: `config/overlays/prometheus/prometheus_rule.yaml` | ||
|
||
## config/overlays/experimental | ||
|
||
This provides additional configuration used to support experimental features, including CRDs. This configuration requires cert-manager. | ||
|
||
This configuration is used to generate `manifests/experimental.yaml`. | ||
|
||
## config/overlays/experimental-e2e | ||
|
||
This provides experimental configuration and support for end-to-end testing, includng code coverage. This configuration requires cert-manager. | ||
|
||
This configuration is used to generate `manifests/experimental-e2e.yaml`. | ||
|
||
## config/overlays/tilt-local-dev | ||
|
||
This provides configuration for Tilt debugging support. | ||
|
||
# Components | ||
|
||
Components are the kustomize configuration building blocks. | ||
|
||
## config/components/base | ||
|
||
This directory provides multiple configurations for organizing the base configuration into standard and experimental configurations. | ||
|
||
:bangbang: *The following rules should be followed when configurating a feature:* | ||
|
||
* Feature components that are GA'd and should be part of the standard manifest should be listed in `config/components/base/common/kustomization.yaml`. This `commmon` kustomization file is included by *both* the **standard** and **experimental** configurations. | ||
* Feature components that are still experimental and should be part of the standard manifest should be listed only in `config/components/base/experimental/kustomization.yaml`. | ||
|
||
## config/components/features | ||
|
||
This directory contains contains configuration for features (experimental or otherwise). | ||
|
||
:bangbang: *Feature configuration should be placed into a subdirectory here.* | ||
|
||
## config/components/cert-manager | ||
|
||
This directory provides configuration for using cert-manager with OLMv1. | ||
|
||
## config/components/e2e | ||
|
||
This directory provides configuration for end-to-end testing of OLMv1. | ||
|
||
# Base Configuration | ||
|
||
The `config/base` directory contains the base kubebuilder-generated configuration, along with CRDs. | ||
|
||
# Samples | ||
## Samples | ||
|
||
The `config/samples` directory contains example ClusterCatalog and ClusterExtension resources. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why do we actually need the base?
It feels more like a kustomize-style layout.
Since everything is already managed under Helm, why wouldn’t those manifests live under templates instead?
Also, I noticed we have CRDs under templates — shouldn’t this be consistent?
Uh oh!
There was an error while loading. Please reload this page.
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.
The
base
directory is storing the output of the CRDs - these is the "raw" CRDs. This is kept outside of thetemplates
directory and is purposely not put into acrds
directory.Because the CRDs are be conditionally included into the manifest (i.e. standard vs experimental), and because they are autogenerated, and because we don't want to go through a messy process of post-processing them to include Helm directives, they are put into that
base
directory.So, the CRDs are not under
templates
directory, but instead those files in thetemplates/crds
directory conditionally include CRDs from thebase
directory:operator-controller/helm/olmv1/templates/crds/customresourcedefinition-clustercatalogs.olm.operatorframework.io.yml
Lines 1 to 9 in 16d1089
operator-controller/helm/olmv1/templates/crds/customresourcedefinition-clusterextensionrevisions.olm.operatorframework.io.yml
Lines 1 to 9 in 16d1089
(i.e. We don't want to do any post-processing of the CRDs to include the above.)
This PR, because it's removing the
config
directory, is merely changing the location of where the "raw" CRDs live. It is NOT changing the process of how they are generated nor included into the Helm manifest.