Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 83
🌱 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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| 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.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
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
basedirectory is storing the output of the CRDs - these is the "raw" CRDs. This is kept outside of thetemplatesdirectory and is purposely not put into acrdsdirectory.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
basedirectory.So, the CRDs are not under
templatesdirectory, but instead those files in thetemplates/crdsdirectory conditionally include CRDs from thebasedirectory: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
configdirectory, 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.