-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some features that ob-operator supports to dashboard #659
Add some features that ob-operator supports to dashboard #659
Conversation
@@ -43,7 +43,6 @@ func MapZonesToTopology(zones map[string]string) ([]param.ZoneTopology, error) { | |||
Zone: zoneName, | |||
Replicas: replica, | |||
NodeSelector: make([]common.KVPair, 0), | |||
Tolerations: make([]common.KVPair, 0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this line is deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is what I need to do. Leaving zero values here is enough.
obcluster.Spec.BackupVolume = nil | ||
} else if len(param.Parameters) > 0 { | ||
// Update parameters if specified | ||
obcluster.Spec.Parameters = buildOBClusterParameters(param.Parameters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will overwrite all the parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that's what I want. The front end app does not filter which parameters are added and which are removed.
Value: p.Variables[i].Value, | ||
}) | ||
} | ||
tenant.Spec.Variables = newVars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overwrite all the parameters and variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the same as parameters of obcluster. The front end application will send all parameters here if the user desireds to modify parameters here.
Summary
Solution Description