Skip to content

Commit 7a73ff7

Browse files
committed
cruft
1 parent bf1e05e commit 7a73ff7

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ COPY ./ ./
4141
ARG package=.
4242
ARG ARCH
4343
ARG LDFLAGS
44-
ARG GCFLAGS
4544
RUN --mount=type=cache,target=/root/.cache/go-build \
4645
--mount=type=cache,target=/go/pkg/mod \
4746
--mount=type=cache,target=/root/.local/share/golang \
48-
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -gcflags "${GCFLAGS}" -ldflags "${LDFLAGS} -extldflags '-static'" -o manager ${package}
47+
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -ldflags "${LDFLAGS} -extldflags '-static'" -o manager ${package}
4948
ENTRYPOINT [ "/start.sh", "/workspace/manager" ]
5049

5150
# Copy the controller-manager into a thin image

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ RBAC_ROOT ?= $(MANIFEST_ROOT)/rbac
137137
# Allow overriding the imagePullPolicy
138138
PULL_POLICY ?= Always
139139

140-
# Allow overriding the GCFLAGS
141-
GCFLAGS ?=
142-
143140
# Set build time variables including version details
144141
LDFLAGS := $(shell source ./hack/version.sh; version::ldflags)
145142

@@ -384,12 +381,12 @@ binaries: managers clusterawsadm ## Builds and installs all binaries
384381

385382
.PHONY: clusterawsadm
386383
clusterawsadm: ## Build clusterawsadm binary
387-
go build -gcflags "$(GCFLAGS)" -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/clusterawsadm ./cmd/clusterawsadm
384+
go build -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/clusterawsadm ./cmd/clusterawsadm
388385

389386

390387
.PHONY: docker-build
391388
docker-build: docker-pull-prerequisites ## Build the docker image for controller-manager
392-
docker build --build-arg ARCH=$(ARCH) --build-arg builder_image=$(GO_CONTAINER_IMAGE) --build-arg GCFLAGS="$(GCFLAGS)" --build-arg LDFLAGS="$(LDFLAGS)" . -t $(CORE_CONTROLLER_IMG)-$(ARCH):$(TAG)
389+
docker build --build-arg ARCH=$(ARCH) --build-arg builder_image=$(GO_CONTAINER_IMAGE) --build-arg LDFLAGS="$(LDFLAGS)" . -t $(CORE_CONTROLLER_IMG)-$(ARCH):$(TAG)
393390

394391
.PHONY: docker-build-all ## Build all the architecture docker images
395392
docker-build-all: $(addprefix docker-build-,$(ALL_ARCH))
@@ -408,7 +405,7 @@ managers: ## Alias for manager-aws-infrastructure
408405

409406
.PHONY: manager-aws-infrastructure
410407
manager-aws-infrastructure: ## Build manager binary
411-
CGO_ENABLED=0 GOARCH=${ARCH} go build -gcflags "${GCFLAGS}" -ldflags "${LDFLAGS} -extldflags '-static'" -o $(BIN_DIR)/manager .
408+
CGO_ENABLED=0 GOARCH=${ARCH} go build -ldflags "${LDFLAGS} -extldflags '-static'" -o $(BIN_DIR)/manager .
412409

413410
##@ test:
414411

config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,7 @@ spec:
30253025
type: object
30263026
oidcIdentityProviderConfig:
30273027
description: |-
3028-
OIDCIdentityProviderConfig is used to specify the oidc provider config
3028+
IdentityProviderconfig is used to specify the oidc provider config
30293029
to be attached with this eks cluster
30303030
properties:
30313031
clientId:

controlplane/eks/api/v1beta2/awsmanagedcontrolplane_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ type AWSManagedControlPlaneSpec struct { //nolint: maligned
188188
// +optional
189189
Addons *[]Addon `json:"addons,omitempty"`
190190

191-
// OIDCIdentityProviderConfig is used to specify the oidc provider config
191+
// IdentityProviderconfig is used to specify the oidc provider config
192192
// to be attached with this eks cluster
193193
// +optional
194194
OIDCIdentityProviderConfig *OIDCIdentityProviderConfig `json:"oidcIdentityProviderConfig,omitempty"`

0 commit comments

Comments
 (0)