Skip to content

Commit

Permalink
[installer] Do not start binaries in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jan 25, 2022
1 parent 9e5d13a commit 18a2c54
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions components/ws-daemon/pkg/resources/dispatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ func (d *DispatchListener) WorkspaceAdded(ctx context.Context, ws *dispatch.Work
limit, err := resource.ParseQuantity(fixedLimit)
if err != nil {
log.WithError(err).WithField("limitReq", fixedLimit).Warn("workspace requested a fixed CPU limit, but we cannot parse the value")
return xerrors.Errorf("cannot parse CPU limit annotation value: %w", err)
}

// we need to scale from milli jiffie to jiffie - see governer code for details
scaledLimit = limit.MilliValue() / 10
cpuLimiter = FixedLimiter(scaledLimit)
Expand Down
2 changes: 1 addition & 1 deletion installer/pkg/components/agent-smith/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
Name: Component,
Image: common.ImageName(ctx.Config.Repository, Component, ctx.VersionManifest.Components.AgentSmith.Version),
ImagePullPolicy: corev1.PullIfNotPresent,
Args: []string{"run", "-v", "--config", "/config/config.json"},
Args: []string{"run", "--config", "/config/config.json"},
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
"cpu": resource.MustParse("100m"),
Expand Down
2 changes: 1 addition & 1 deletion installer/pkg/components/blobserve/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
}},
Containers: []corev1.Container{{
Name: Component,
Args: []string{"run", "-v", "/mnt/config/config.json"},
Args: []string{"run", "/mnt/config/config.json"},
Image: common.ImageName(ctx.Config.Repository, Component, ctx.VersionManifest.Components.Blobserve.Version),
ImagePullPolicy: corev1.PullIfNotPresent,
Ports: []corev1.ContainerPort{{
Expand Down
2 changes: 1 addition & 1 deletion installer/pkg/components/registry-facade/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
Name: Component,
Image: common.ImageName(ctx.Config.Repository, Component, ctx.VersionManifest.Components.RegistryFacade.Version),
ImagePullPolicy: corev1.PullIfNotPresent,
Args: []string{"run", "-v", "/mnt/config/config.json"},
Args: []string{"run", "/mnt/config/config.json"},
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
"cpu": resource.MustParse("100m"),
Expand Down
1 change: 0 additions & 1 deletion installer/pkg/components/ws-daemon/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ fi
Image: common.ImageName(ctx.Config.Repository, Component, ctx.VersionManifest.Components.WSDaemon.Version),
Args: []string{
"run",
"-v",
"--config",
"/config/config.json",
},
Expand Down
2 changes: 1 addition & 1 deletion installer/pkg/components/ws-manager/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
},
Containers: []corev1.Container{{
Name: Component,
Args: []string{"run", "-v", "--config", "/config/config.json"},
Args: []string{"run", "--config", "/config/config.json"},
Image: common.ImageName(ctx.Config.Repository, Component, ctx.VersionManifest.Components.WSManager.Version),
ImagePullPolicy: corev1.PullIfNotPresent,
Resources: corev1.ResourceRequirements{
Expand Down
2 changes: 1 addition & 1 deletion installer/pkg/components/ws-proxy/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
}}, volumes...),
Containers: []corev1.Container{{
Name: Component,
Args: []string{"run", "-v", "/config/config.json"},
Args: []string{"run", "/config/config.json"},
Image: common.ImageName(ctx.Config.Repository, Component, ctx.VersionManifest.Components.WSProxy.Version),
ImagePullPolicy: corev1.PullIfNotPresent,
Resources: corev1.ResourceRequirements{
Expand Down

0 comments on commit 18a2c54

Please sign in to comment.