k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/releng/config-rotator/README.md (about)

     1  # config-rotator
     2  
     3  config-rotator rotated forked presubmit, periodic, and postsubmit job configs created by `config-forker`.
     4  
     5  ## Usage
     6  
     7  * `--config-file`: Path to the job config to rotate
     8  * `--new`: Version to rotate to (one of stable1, stable2, stable3)
     9  * `--old`: Version to rotate from (one of beta, stable1, stable2)
    10  
    11  ## Actions taken
    12  
    13  For the sake of clarity, all the below will assume we are rotating with `--old stable1 --new stable2`.
    14  
    15  For all jobs:
    16  
    17  - References to `stable1` in `args` will be replaced with `stable2`
    18  - References to `stable1` in `command` will be replaced with `stable2`
    19  - References to `stable1` in the job name will be replaced with `stable2`
    20  
    21  For periodics:
    22  
    23  - References to `stable1` in the job `tags` will replaced with `stable2`
    24  - If `fork-per-release-periodic-interval` or `fork-per-release-cron` has a non-empty list of values, the leftmost
    25    value will be popped off and used to replace the current `interval` or `cron`, respectively.