Fix teamId field.

This commit is contained in:
Jan Mussler 2021-11-23 11:53:55 +01:00
parent cc4d5c1c77
commit 8705ab49f9
1 changed files with 2 additions and 3 deletions

View File

@ -46,7 +46,7 @@ func (c *Cluster) GetDesiredMajorVersion() string {
func isTeamWhitelisted(c *Cluster) bool {
whitelistedTeams := c.OpConfig.MajorVersionUpgradeTeamWhitelist
owningTeam := c.Spec.teamID
owningTeam := c.Spec.TeamID
if len(whitelistedTeams) == 0 {
return false
@ -64,8 +64,7 @@ func isTeamWhitelisted(c *Cluster) bool {
Execute upgrade when mode is set to manual or full or when the owning team is whitelisted for upgrade.
Manual upgrade means, it us triggered by the user via manifest version change
Full upgrade means, operator also determins the minimal version used accross all clusters and upgrades violators.
Full upgrade means, operator also determines the minimal version used accross all clusters and upgrades violators.
*/
func (c *Cluster) majorVersionUpgrade() error {