generated from redhat-developer/new-project-template
-
Notifications
You must be signed in to change notification settings - Fork 55
RHIDP-7564-1 - Support Pre-Configured RHDH Deployments in Operator #1524
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
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1cf8c60
RHIDP-7564-1 - Support Pre-Configured RHDH Deployments in Operator
Gerry-Forde 4a8468a
Update modules/configuring/con-dynamic-plugins-dependencies.adoc
Gerry-Forde b4e4c76
Update modules/dynamic-plugins/proc-config-dynamic-plugins-rhdh-opera…
Gerry-Forde 838638f
Update modules/dynamic-plugins/proc-config-dynamic-plugins-rhdh-opera…
Gerry-Forde 2741891
Update modules/configuring/con-dynamic-plugins-dependencies.adoc
Gerry-Forde 229b5c1
Update modules/configuring/con-dynamic-plugins-dependencies.adoc
Gerry-Forde 33ae959
Update modules/configuring/con-dynamic-plugins-dependencies.adoc
Gerry-Forde 181b58f
Update modules/configuring/con-dynamic-plugins-dependencies.adoc
Gerry-Forde fb66a3f
Merge branch 'main' into RHIDP-7564-1
Gerry-Forde b9ea966
Update con-dynamic-plugins-dependencies.adoc
Gerry-Forde 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| :_mod-docs-content-type: CONCEPT | ||
|
|
||
| [id="dynamic-plugins-dependencies_{context}"] | ||
| = Dynamic plugins dependency management | ||
Gerry-Forde marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Dynamic plugins configured for the {backstage} custom resource (CR) may require certain Kubernetes resources to be configured to make the plugin work. These resources are referred to as 'plugin dependencies'. In {product}({product-very-short}), you can automatically create these resources when the {backstage} CR is applied to the cluster. | ||
Gerry-Forde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| == Profile Configuration | ||
Gerry-Forde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| For a specific profile, you can configure plugin dependency by including the required Kubernetes resources in the `/config/profile/{PROFILE}/plugin-deps` directory. You must add the required resources as Kubernetes manifests in YAML format in the `plugin-deps` directory. | ||
Gerry-Forde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .Example: Adding example-dep1.yaml and example-dep2.yaml as plugin dependencies | ||
Gerry-Forde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [source,terminal,subs="+quotes"] | ||
| ---- | ||
| config/ | ||
| profile/ | ||
| rhdh/ | ||
| kustomization.yaml | ||
| plugin-deps/ | ||
| example-dep1.yaml | ||
| example-dep2.yaml | ||
| ---- | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| * If a resource manifest does not specify a namespace, it will be created in the namespace of the {backstage} CR. | ||
| * Resources may contain *{{backstage-name}}* and *{{backstage-ns}}* placeholders, which will be replaced with the name and namespace of the {backstage} CR, respectively. | ||
| ==== | ||
|
|
||
| The `kustomization.yaml` file must contain the following lines: | ||
| [source,yaml,subs="+quotes"] | ||
| ---- | ||
Gerry-Forde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| configMapGenerator: | ||
| - files: | ||
| - plugin-deps/example-dep1.yaml | ||
| - plugin-deps/example-dep2.yaml | ||
| name: plugin-deps | ||
| ---- | ||
|
|
||
| == Plugin dependencies infrastructure | ||
| To install infrastructural resources that are required by plugin dependencies, for example, other operators or custom resources (CR), you can include these in the `/config/profile/{PROFILE}/plugin-infra` directory. | ||
|
|
||
| To create these infrastructural resources (along with the operator deployment), use the `make plugin-infra` command. | ||
Gerry-Forde marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [NOTE] | ||
| ==== | ||
| On a production cluster, use this command with caution as it may reconfigure cluster-scoped resources. | ||
Gerry-Forde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ==== | ||
|
|
||
| == Plugin configuration | ||
Gerry-Forde marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| You must reference the plugin dependenciesin the `dependencies` field of the plugin configuration when the {backstage} CR is applied. | ||
|
|
||
| The Operator creates the resources described in the files located in the `plugin-deps` directory. | ||
|
|
||
| You can reference plugin dependencies in the `dynamic-plugins` ConfigMap which can either be part of the default profile configuration for all {backstage} custom resources or part of the ConfigMap referenced in the {backstage} CR. In {product}, you can include plugin dependencies in the dynamic plugin configuration. | ||
|
|
||
| Each `dependencies.ref` value can either match the full file name or serve as a prefix for the file name. The operator will create the resources described in the files contained in the `plugin-deps` that start with the specified `ref` value or exactly match it | ||
|
|
||
| .Example: Adding example-dep plugin dependency | ||
Gerry-Forde marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [source,yaml,subs="+quotes"] | ||
| ---- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: default-dynamic-plugins | ||
| data: | ||
| dynamic-plugins.yaml: | | ||
| includes: | ||
| - dynamic-plugins.default.yaml | ||
| plugins: | ||
| - disabled: false | ||
| package: "path-or-url-to-example-plugin" | ||
| dependencies: | ||
| - ref: example-dep | ||
| ---- | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.