mirror of
https://github.com/portainer/portainer.git
synced 2026-08-07 09:04:48 +00:00
fix(rbac-policy): add rolebindings for non-explicit namespaces [C9S-325] (#3236)
This commit is contained in:
committed by
GitHub
parent
4c5ec443c6
commit
8d7d2a1c2b
@@ -27,6 +27,10 @@ type InstallOptions struct {
|
||||
KubernetesClusterAccess *KubernetesClusterAccess
|
||||
TakeOwnership bool
|
||||
CreateNamespace bool
|
||||
// MaxHistory caps the number of old revisions Helm keeps for this release
|
||||
// on upgrade (0, the zero value, means unlimited history, matching Helm's
|
||||
// own default).
|
||||
MaxHistory int
|
||||
|
||||
// GitOps related options
|
||||
AutoUpdate *portainer.AutoUpdateSettings
|
||||
|
||||
@@ -189,6 +189,7 @@ func initUpgradeClient(actionConfig *action.Configuration, upgradeOpts options.I
|
||||
upgradeClient.WaitStrategy = kube.HookOnlyStrategy
|
||||
}
|
||||
upgradeClient.TakeOwnership = upgradeOpts.TakeOwnership // Equivalent to --take-ownership flag
|
||||
upgradeClient.MaxHistory = upgradeOpts.MaxHistory
|
||||
err := configureChartPathOptions(&upgradeClient.ChartPathOptions, upgradeOpts.Version, upgradeOpts.Repo, upgradeOpts.Registry)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to configure chart path options for helm release upgrade")
|
||||
|
||||
Reference in New Issue
Block a user