Skip to content

Commit

Permalink
Minimal manifest changes for the authorization module
Browse files Browse the repository at this point in the history
Signed-off-by: meghana_gm <meghana.gm@dell.com>
  • Loading branch information
meggm committed Sep 11, 2024
1 parent 3074c0c commit bcfe7bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/modules/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ func getAuthApplyCR(cr csmv1.ContainerStorageModule, op utils.OperatorConfig) (*
}
}

if authModule.Components == nil {
components := make([]csmv1.ContainerTemplate, 0)
components = append(components, csmv1.ContainerTemplate{
Name: "karavi-authorization-proxy",
})
authModule.Components = components
}

authConfigVersion := authModule.ConfigVersion
if authConfigVersion == "" {
authConfigVersion, err = utils.GetModuleDefaultVersion(cr.Spec.Driver.ConfigVersion, cr.Spec.Driver.CSIDriverType, csmv1.Authorization, op.ConfigDirectory)
Expand Down

0 comments on commit bcfe7bd

Please sign in to comment.