Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mitchell <[email protected]>
  • Loading branch information
wcmitchell committed Dec 16, 2024
1 parent e559421 commit e8e78c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion controllers/cloud.redhat.com/providers/sidecar/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (sc *sidecarProvider) Provide(app *crd.ClowdApp) error {
cont := getOtelCollector(app.Name)
if cont != nil {
if innerDeployment.UseStatefulSet {
sts.Spec.Template.Spec.Containers = append(d.Spec.Template.Spec.Containers, *cont)
sts.Spec.Template.Spec.Containers = append(sts.Spec.Template.Spec.Containers, *cont)
} else {
d.Spec.Template.Spec.Containers = append(d.Spec.Template.Spec.Containers, *cont)
}
Expand Down
9 changes: 0 additions & 9 deletions controllers/cloud.redhat.com/providers/statefulset/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,6 @@ func initStatefulSet(app *crd.ClowdApp, env *crd.ClowdEnvironment, s *apps.State
return nil
}

func setRecreateDeploymentStrategyForPVCs(vol core.Volume, d *apps.Deployment) {
if vol.VolumeSource.PersistentVolumeClaim == nil {
return
}
d.Spec.Strategy = apps.DeploymentStrategy{
Type: apps.RecreateDeploymentStrategyType,
}
}

func setVolumeSourceConfigMapDefaultMode(vol *core.Volume) {
if vol.VolumeSource.PersistentVolumeClaim != nil {
return
Expand Down
2 changes: 1 addition & 1 deletion controllers/cloud.redhat.com/providers/web/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func populateSideCar[D *apps.Deployment | *apps.StatefulSet](dOrS D, depl *crd.D
},
}

caddyConfigVol := core.Volume{}
var caddyConfigVol core.Volume

if depl.UseStatefulSet {
caddyConfigVol = core.Volume{
Expand Down

0 comments on commit e8e78c0

Please sign in to comment.