https://rancher.com/ logo
Title
f

few-jordan-3349

05/03/2023, 7:35 AM
hey, before elemental upgrade is applied there is a check for isHigherVersion. How to apply the FORCE flag befor upgrade to ignore this check ? https://github.com/rancher/elemental/blob/7ef045208a2eb054208ea03d19b4775d43eab99e/framework/files/usr/sbin/suc-upgrade#L71 i was not able to find it in the docs. Thanks for the help!:)
w

witty-table-40840

05/03/2023, 7:38 AM
Hey!
When specifying the managedOsImage you can apply flags in this way:
apiVersion: <http://elemental.cattle.io/v1beta1|elemental.cattle.io/v1beta1>
kind: ManagedOSImage
metadata:
  name: upgrade3
  namespace: fleet-default
spec:
  clusterTargets:
    - clusterName: my-cluster
  upgradeContainer:
    command:
      - "/usr/sbin/suc-upgrade"
    envs:
      - name: FORCE
        value: "true"
    image: myimage:mytag
👍 1
f

few-jordan-3349

05/03/2023, 7:40 AM
ok thanks, i will check it out! 🙂
w

witty-table-40840

05/03/2023, 7:41 AM
great! I will add the example to the upgrade docs as well! 👍
🙌 1
f

few-jordan-3349

05/03/2023, 9:08 AM
works as expected👍
w

witty-table-40840

05/03/2023, 9:08 AM
very nice!