Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-1138

`spec.application.image`, `spec.application.replicas` and `spec.application.imagePullSecrets` fields are deprecated

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • RHIDP-1431 - Engineering Improvements
    • Hide
      `spec.application.image`, `spec.application.replicas` and `spec.application.imagePullSecrets` fields are deprecated in `v1alpha2` in favour of `spec.deployment`.

      Procedure:

      To update your {product-short} Operation configuration:

      . Remove the `spec.application.image`, `spec.application.replicas` and `spec.application.imagePullSecrets` fields from the Operator configuration:
      +
      [source,yaml]
      ----
      spec:
        application:
          replicas: 2 # <1>
          imagePullSecrets: # <2>
            - my-secret-name
          image: quay.io/my/my-rhdh:latest # <3>
      ----
      <1> Replica count.
      <2> Array of image pull secrets names.
      <3> Image name.


      . Replace the removed fields by new `spec.deployment` fields, such as:
      +
      [source,yaml]
      ----
      spec:
        deployment:
          patch:
            spec:
              replicas: 2 # <1>
              imagePullSecrets: # <2>
                - name: my-secret-name
              template:
                metadata:
                  labels:
                    my: true
                spec:
                  containers:
                    - name: backstage-backend
                      image: quay.io/my/my-rhdh:latest # <3>
      ----
      <1> Replica count.
      <2> Array of image pull secrets names.
      <3> Image name.

      // https://github.com/redhat-developer/rhdh-operator/blob/main/docs/configuration.md#deployment-parameters
      Show
      `spec.application.image`, `spec.application.replicas` and `spec.application.imagePullSecrets` fields are deprecated in `v1alpha2` in favour of `spec.deployment`. Procedure: To update your {product-short} Operation configuration: . Remove the `spec.application.image`, `spec.application.replicas` and `spec.application.imagePullSecrets` fields from the Operator configuration: + [source,yaml] ---- spec:   application:     replicas: 2 # <1>     imagePullSecrets: # <2>       - my-secret-name     image: quay.io/my/my-rhdh:latest # <3> ---- <1> Replica count. <2> Array of image pull secrets names. <3> Image name. . Replace the removed fields by new `spec.deployment` fields, such as: + [source,yaml] ---- spec:   deployment:     patch:       spec:         replicas: 2 # <1>         imagePullSecrets: # <2>           - name: my-secret-name         template:           metadata:             labels:               my: true           spec:             containers:               - name: backstage-backend                 image: quay.io/my/my-rhdh:latest # <3> ---- <1> Replica count. <2> Array of image pull secrets names. <3> Image name. // https://github.com/redhat-developer/rhdh-operator/blob/main/docs/configuration.md#deployment-parameters
    • Deprecated Functionality
    • Done

      [2109524066] Upstream Reporter: Gennady Azarenkov
      Upstream issue status: Open
      Upstream description:

      By idea, spec.Application section is for configuration Backstage Application container (app-configs, extra files, env vars...) and it is quite confusing to see configuration of workload k8s objects (such as replicas, network, image etc) here as well.

      Proposal is to:

      • move backstage runtime configuration (image, replicas, image-pull secrets) on top level
      • move route to new Network section

      So CR.spec would look like this:

      spec:
        image: my-img
        imagePullSecrets: []
        replicas: 2
        application:
          appConfig: {}
          extraFiles: {}
          extraEnvs: {}
          dynamicPluginsConfigMapName: my-dp-cm
        database:
          enableLocalDb: true
        network:
         route: {}

      Upstream URL: https://github.com/janus-idp/operator/issues/178

            gazarenk-1 Gennady Azarenkov
            gazarenk-1 Gennady Azarenkov
            RHIDP - Install Methods
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: