Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskery committed Jan 10, 2024
1 parent 1018d45 commit de9daee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ WORKDIR /workspace
COPY go.mod go.mod
COPY go.sum go.sum

RUN go env -w GOPROXY=https://goproxy.cn,dirRUN
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download
Expand Down
14 changes: 0 additions & 14 deletions pkg/apis/kubecluster.org/v1alpha1/hadoopcluster_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ package v1alpha1

import (
"fmt"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/utils/pointer"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -79,18 +77,6 @@ func setDefaultsYarnNodeManager(yarnSpec *YarnNodeManagerSpecTemplate) {
if yarnSpec.ImagePullPolicy == "" {
yarnSpec.ImagePullPolicy = "IfNotPresent"
}
if len(yarnSpec.Resources.Limits) == 0 && len(yarnSpec.Resources.Requests) == 0 {
yarnSpec.Resources = corev1.ResourceRequirements{
Limits: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("1"),
corev1.ResourceMemory: resource.MustParse("1Gi"),
},
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("1"),
corev1.ResourceMemory: resource.MustParse("1Gi"),
},
}
}
}

func setDefaultsHDFS(r *HDFSSpec) {
Expand Down

0 comments on commit de9daee

Please sign in to comment.