Post the storage limit to Hub after posting the worker

This commit is contained in:
M. Mert Yildiran
2022-12-29 03:25:22 +03:00
parent 872e4961dd
commit de38ef259e
7 changed files with 95 additions and 60 deletions

View File

@@ -171,14 +171,13 @@ func (provider *Provider) CreateNamespace(ctx context.Context, name string) (*co
}
type PodOptions struct {
Namespace string
PodName string
PodImage string
ServiceAccountName string
MaxEntriesDBSizeBytes int64
Resources models.Resources
ImagePullPolicy core.PullPolicy
Debug bool
Namespace string
PodName string
PodImage string
ServiceAccountName string
Resources models.Resources
ImagePullPolicy core.PullPolicy
Debug bool
}
func (provider *Provider) BuildHubPod(opts *PodOptions, mountVolumeClaim bool, volumeClaimName string) (*core.Pod, error) {
@@ -318,6 +317,7 @@ func (provider *Provider) BuildFrontPod(opts *PodOptions, mountVolumeClaim bool,
volumeMounts := []core.VolumeMount{}
volumes := []core.Volume{}
// TODO: Get host and port from ProxyConfig
containers := []core.Container{
{
Name: opts.PodName,