Skip to content

Commit

Permalink
Remove pointer from deployment containerSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Aug 29, 2024
1 parent d6bed53 commit f1a1229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type AdditionalOptions func(builder *Builder) (*Builder, error)

// NewBuilder creates a new instance of Builder.
func NewBuilder(
apiClient *clients.Settings, name, nsname string, labels map[string]string, containerSpec *corev1.Container) *Builder {
apiClient *clients.Settings, name, nsname string, labels map[string]string, containerSpec corev1.Container) *Builder {
glog.V(100).Infof(
"Initializing new deployment structure with the following params: "+
"name: %s, namespace: %s, labels: %s, containerSpec %v",
Expand All @@ -63,7 +63,7 @@ func NewBuilder(
},
}

builder.WithAdditionalContainerSpecs([]corev1.Container{*containerSpec})
builder.WithAdditionalContainerSpecs([]corev1.Container{containerSpec})

if name == "" {
glog.V(100).Infof("The name of the deployment is empty")
Expand Down

0 comments on commit f1a1229

Please sign in to comment.