This section describes the
MCCUpgrade resource used in Mirantis
Container Cloud API to configure a schedule for the Container Cloud upgrade.
The Container Cloud
MCCUpgrade CR contains the following fields:
API version of the object that is
Object type that is
metadataobject field of the
MCCUpgraderesource contains the following fields:
The name of
MCCUpgradeobject, must be
specobject field of the
MCCUpgraderesource contains the schedule when Container Cloud upgrade is allowed or blocked. This field contains the following fields:
Time stamp in the ISO 8601 format, for example,
2021-12-31T12:30:00-05:00. Upgrades will be disabled until this time. You cannot set this field to more than 7 days in the future and more than 30 days after the latest Container Cloud release.
Name of a time zone in the IANA Time Zone Database. This time zone will be used for all schedule calculations. For example:
List of schedule items that allow an upgrade at specific hours or weekdays. The upgrade process can proceed if at least one of these items allows it. Schedule items allow upgrade when both
weekdaysconditions are met. When this list is empty or absent, upgrade is allowed at any hour of any day. Every schedule item contains the following fields:
Object with 2 fields:
to. Both must be non-negative integers not greater than 24. The
tofield must be greater than the
fromone. Upgrade is allowed if the current hour in the time zone specified by
timeZoneis greater or equals to
fromand is less than
hoursis absent, upgrade is allowed at any hour.
Object with boolean fields with these names:
Upgrade is allowed only on weekdays that have the corresponding field set to
true. If all fields are
falseor absent, or
weekdaysis empty or absent, upgrade is allowed on all weekdays.
spec: blockUntil: 2021-12-31T00:00:00 timeZone: CET schedule: - hours: from: 10 to: 17 weekdays: monday: true tuesday: true - hours: from: 7 to: 10 weekdays: monday: true friday: true
In this example:
Upgrades are blocked until December 31, 2021
All schedule calculations are done in the CET timezone
Upgrades are allowed only:
From 7:00 to 17:00 on Mondays
From 10:00 to 17:00 on Tuesdays
From 7:00 to 10:00 on Fridays
statusobject field of the
MCCUpgraderesource contains information about the next planned Container Cloud upgrade, if available. This field contains the following fields:
Time stamp in the ISO 8601 format indicating the time when the release controller will attempt to discover and install a new Container Cloud release. Set to the next allowed time according to the schedule configured in
specor one minute in the future if the schedule currently allows upgrade.
Message from the last upgrade step or attempt.
Object describing the next release that Container Cloud will be upgraded to. Absent if no new releases have been discovered. Contains the following fields:
Semver-compatible version of the next Container Cloud release, for example,
Time stamp in the ISO 8601 format indicating the time when the Container Cloud release defined in
versionhas been first discovered.