Este contenido no está disponible en el idioma seleccionado.

Chapter 2. Breaking changes


This section lists breaking changes in Red Hat Developer Hub 1.7.

Previously, the Operator could automatically detect and mount an optional Secret named dynamic-plugins-npmrc to configure a custom npm registry.

With this update, you can do any of the following workarounds:

  • Modify the default-config/secret-files.yaml key in the default configuration of the Operator (rhdh-default-config ConfigMap in the rhdh-operator namespace) to include custom .npmrc content.
  • In your Backstage custom resource (CR), complete the following steps:

    1. Create a new Secret containing the custom .npmrc content.
    2. Mount the Secret to the install-dynamic-plugins initContainer.
    3. Set the NPM_CONFIG_USERCONFIG environment variable to reference to the mounted .npmrc file in the spec.deployment.patch section.

      Example of a Secret containing the .npmrc file

      apiVersion: v1
      kind: Secret
      metadata:
        name: dynamic-plugins-npmrc
      type: Opaque
      stringData:
        .npmrc: |
          @my-company:registry=https://my-company.example.com
          //<registry-url>:_authToken=<auth-token>
      ---
      apiVersion: rhdh.redhat.com/v1alpha3
      kind: Backstage
      metadata:
        name: my-rhdh
      spec:
        application:
          dynamicPluginsConfigMapName: my-dynamic-plugins-rhdh
        # --- BEGIN WORKAROUND: Ensure you have the volumes, volume mounts and NPM_CONFIG_USERCONFIG env var listed below
        deployment:
          patch:
            spec:
              template:
                spec:
                  initContainers:
                    - name: install-dynamic-plugins
                      volumeMounts:
                        - mountPath: /opt/app-root/src/.my-dynamic-plugins-npmrc.dynamic-plugins
                          name: my-dynamic-plugins-npmrc
                      env:
                        - name:
                        - name: NPM_CONFIG_USERCONFIG
                          # path before .npmrc should be the same as in the mountPath above
                          # file name .npmrc should be the same as key in the dynamic-plugins-npmrc secret above
                          value: /opt/app-root/src/.my-dynamic-plugins-npmrc.dynamic-plugins/.npmrc
                  volumes:
                    - name: my-dynamic-plugins-npmrc
                      secret:
                        secretName: dynamic-plugins-npmrc
        # --- END WORKAROUND

Additional resources

Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2026 Red Hat
Volver arriba