File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/common/runtime-upgrades Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { OtomiDebugger } from '../debug'
2
- import { k8s } from '../k8s'
2
+ import { k8s , restartOtomiApiDeployment } from '../k8s'
3
3
import { detectAndRestartOutdatedIstioSidecars } from './restart-istio-sidecars'
4
4
5
5
export interface RuntimeUpgradeContext {
@@ -28,6 +28,15 @@ export const runtimeUpgrades: RuntimeUpgrades = [
28
28
{
29
29
version : '4.7.0' ,
30
30
applications : {
31
+ 'keycloak-keycloak' : {
32
+ post : async ( context : RuntimeUpgradeContext ) => {
33
+ try {
34
+ await restartOtomiApiDeployment ( k8s . app ( ) )
35
+ } catch ( error ) {
36
+ context . debug . error ( 'Failed to check and restart otomi-api:' , error )
37
+ }
38
+ } ,
39
+ } ,
31
40
'istio-system-istiod' : {
32
41
post : async ( context : RuntimeUpgradeContext ) => {
33
42
try {
You can’t perform that action at this time.
0 commit comments