You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/operator-service-manager/safe-upgrade-practices.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -296,6 +296,46 @@ The NF ARM template is used by operator to submit the roleOverrideValues variabl
296
296
}
297
297
```
298
298
299
+
## How to skip NfApps which have no changes
300
+
The SkipUpgrade feature is designed to optimize the time taken for CNF upgrades. By enabling this optional flag in the `RoleOverrideValues` under `UpgradeOptions`, AOSM at the service layer performs certain pre-checks to determine whether an upgrade for a specific `NFApplication` can be skipped. If all pre-check criteria are met, the upgrade is skipped for that application. Otherwise, a traditional full Helm upgrade is executed at the cluster level.
301
+
302
+
### Pre-Check Criteria
303
+
An upgrade can be skipped if all the following conditions are met:
304
+
1. The `NFApplication` provisioning state is "Succeeded".
305
+
2. There is no change in the Helm chart name or version.
306
+
3. There is no change in the Helm values.
307
+
308
+
### Enabling or Disabling the SkipUpgrade Feature
309
+
The SkipUpgrade feature is **disabled by default**. If this optional parameter is not specified in `RoleOverrideValues` under `UpgradeOptions`, CNF upgrades proceed in the traditional manner, where the `NFApplications` are upgraded at the cluster level.
310
+
311
+
#### Enabling SkipUpgrade withing Network Function Resource
312
+
To enable the SkipUpgrade feature via `RoleOverrideValues`, refer to the example below:
- The `skipUpgrade` flag is enabled. If the upgrade request for `hellotest` meets the pre-check criteria, the upgrade will be skipped at the service level.
336
+
-**NfApplication: `runnerTest`**
337
+
- The `skipUpgrade` flag is not specified. Therefore, `runnerTest` will always go through a traditional Helm upgrade at the cluster level, even if the pre-check criteria are met.
338
+
299
339
## Support for in service upgrades
300
340
Azure Operator Service Manager, where possible, supports in service upgrades, an upgrade method which advances a deployment version without interrupting the service. However, the ability for a given service to be upgraded without interruption is a feature of the service itself. Consult further with the service publisher to understand the in-service upgrade capabilities.
0 commit comments