Skip to content
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

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

powerfooI
Copy link
Collaborator

Summary

  1. Adjust topology fields for OBCluster to match real world usage
  2. Add API to
  • Modify OBCluster
  • Restart/Delete OBServers
  • List OBCluster parameters
  • Set deletion protection
  • Set backup/restore destination with S3

Solution Description

@powerfooI powerfooI self-assigned this Dec 2, 2024
@@ -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),
Copy link
Member

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

Copy link
Collaborator Author

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.

internal/dashboard/business/oceanbase/obcluster.go Outdated Show resolved Hide resolved
obcluster.Spec.BackupVolume = nil
} else if len(param.Parameters) > 0 {
// Update parameters if specified
obcluster.Spec.Parameters = buildOBClusterParameters(param.Parameters)
Copy link
Member

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

Copy link
Collaborator Author

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
Copy link
Member

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?

Copy link
Collaborator Author

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.

@chris-sun-star chris-sun-star merged commit 962e94f into oceanbase:master Dec 3, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants