Este conteúdo não está disponível no idioma selecionado.
Chapter 3. Customizing the config.yaml file
Use this procedure to customize the config.yaml file before integrating products and external services. Customizing this file ensures that your integrations and preferences are preserved during installation.
Prerequisites
- You have access to the OpenShift Web Console.
- You plan to integrate at least one external product or service (For example, RHACS or Quay).
(Optional) Forked software catalog repository URL. RHTAP provides a catalog of software templates that help developers scaffold applications. To customize these templates, fork the repository before installation.
- In your browser, go to the RHTAP software catalog repository.
Click Fork to fork the repository.
-
Uncheck the box labeled Copy the
mainbranch only.
-
Uncheck the box labeled Copy the
-
When the fork is created, copy its URL and save it in the
private.envfile. - In the forked repository, click main to open the branch/tag dropdown.
Under Tags, select the release that matches your RHTAP version.
NoteUpdate your fork periodically to include changes from the upstream repository.
Procedure
- In the OpenShift console, switch to the Administrator perspective.
- Go to Workloads > ConfigMaps.
- From the Project drop down list, select RHTAP.
-
Open the
rhtap-cli-configConfigMap. Select the YAML view and navigate to where
config.yamlparameters are defined.NoteIf your cluster already includes the required subscriptions or operators, you can prevent the installer from creating new ones by setting the
manageSubscriptionproperty tofalse.-
manageSubscription: true(default): The installer manages and installs all required operator subscriptions.
-
manageSubscription: false: The installer skips installing required operator subscriptions because it assumes they already exist on the cluster.- Ensure that the pre-installed operators are compatible with RHTAP. Incompatible versions or configurations may cause the installation to fail.
Update the following fields as needed:
To use a custom software catalog, set the
catalogURL:redhatDeveloperHub: properties: catalogURL: https://github.com/<your-org>/tssc-sample-templates/blob/releases/all.yamlTo disable installation of components you’ve integrated externally (for example, ACS and Quay):
redhatAdvancedClusterSecurity: enabled: &rhacsEnabled false namespace: &rhacsNamespace rhtap-rhacs redHatQuay: enabled: &quayEnabled false namespace: &quayNamespace rhtap-quayNoteIf you try to integrate outside products or pre-existing instances, but do not customize
config.yaml, Red Hat Trusted Application Pipeline still installs and uses its default products. You must customizeconfig.yamlfor yourrhtap-cli integrationcommands to take effect. However, if you do not customizeconfig.yamlfor yourrhtap-cli integration, the installer deploys the product and overrides the existing integrations.
To enable the RBAC plugin in Developer Hub, configure the
RBACproperty in theredhatDeveloperHubsection.RBAC: enabled: true # Enables the RBAC feature. adminUsers: # GitHub usernames that should have administrator access. - yourGitHubUsername - anotherGitHubAdmin orgs: # GitHub organizations whose members are imported into the Developer Hub catalog with access roles. - your-github-orgNoteIf you omit
adminUsersororgs, the installer defaults to the GitHub user and organization that were configured when integrating the GitHub application.
To use a custom namespace instead of the default one, configure the
namespacePrefixesproperty in theredhatDeveloperHubsection of theconfig.yamlfile. By default, RHTAP creates four namespaces during installation:-
rhtap-app-ci: For CI pipeline workloads rhtap-app-development,rhtap-app-stage, andrhtap-app-prod: For development, staging, and prod deploymentsYou can customize the prefixes for these namespaces and define additional namespace sets by using the
namespacePrefixesproperty. For example, you can configure custom prefixes to generate namespaces such asmy_prefix1-app-ci,my_prefix1-app-development,my_prefix1-app-stage, andmy_prefix1-app-prod.redhatDeveloperHub: namespacePrefixes: - my_prefix1 - my_prefix2- After you complete all necessary changes, select Save.
-