Commit 3bd6a03f authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

feat: Change boolean variable behaviour



BREAKING CHANGE: boolean variable now triggered on explicit 'true' value

Signed-off-by: default avatarCédric OLIVIER <cedric3.olivier@orange.com>
parent c3767f2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -318,7 +318,7 @@ Here are its parameters:
| Name                   | description                                                          | default value     |
| ---------------------- | -------------------------------------------------------------------- | ----------------- |
| `K8S_KUBE_SCORE_IMAGE` | Docker image to run [kube-score](https://github.com/zegl/kube-score) | `zegl/kube-score:latest-helm` **it is recommended to set a tool version compatible with your Kubernetes cluster** |
| `K8S_SCORE_DISABLED`   | Set to disable the `kube-score` analysis                             | _none_ (enabled) |
| `K8S_SCORE_DISABLED`   | Set to `true`to disable the `kube-score` analysis                             | _none_ (enabled) |
| `K8S_SCORE_EXTRA_OPTS` | [Additional options](https://github.com/zegl/kube-score#configuration) to `kube-score` command line | _none_ |

## Variants
+2 −2
Original line number Diff line number Diff line
@@ -522,7 +522,7 @@ stages:
    fi
  }

  if [[ -z "$TEMPLATE_CHECK_UPDATE_DISABLED" ]]; then check_for_update kubernetes "1.3.1"; fi
  if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update kubernetes "1.3.1"; fi

  # export tool functions (might be used in after_script)
  export -f log_info log_warn log_error assert_defined rollback
@@ -559,7 +559,7 @@ k8s-score:
    - if: $CI_MERGE_REQUEST_ID
      when: never
    # exclude when $K8S_SCORE_DISABLED is set
    - if: $K8S_SCORE_DISABLED
    - if: '$K8S_SCORE_DISABLED == "true"'
      when: never
    # else: allow failure
    - allow_failure: true