Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-44798

[enterprise-4.17] Issue in file applications/deployments/deployment-strategies.adoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.13, 4.12, 4.14, 4.15, 4.16, 4.17
    • Documentation
    • None
    • Low
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Wrong YAML description of objects

      Issue 1

      At "Example rolling strategy definition":

      kind: DeploymentConfig
      apiVersion: apps.openshift.io/v1
      metadata:
        name: example-dc
      # ...
      spec:
      # ...
        strategy:
          type: Rolling
          rollingParams:
            updatePeriodSeconds: 1 
            intervalSeconds: 1 
            timeoutSeconds: 120 
            maxSurge: "20%" 
            maxUnavailable: "10%" 
            pre: {} 
           post: {}

      the last line with content `post: {}` requires an extra space so that `post: {}` is aligned with the previous line.

       

      Issue 2

      At "Example recreate strategy definition":

      kind: Deployment
      apiVersion: apps/v1
      metadata:
        name: hello-openshift
      # ...
      spec:
      # ...
        strategy:
          type: Recreate
          recreateParams: 
            pre: {} 
            mid: {}
            post: {}

      the first two lines should read:

      kind: DeploymentConfig
      apiVersion: apps.openshift.io/v1

       

       

              ocp-docs-bot OCP DocsBot
              rh-ee-lburigo Lucas Norberto Burigo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: