Skip to content

Commit 3e3c8db

Browse files
committed
Add ipamctl command
1 parent 90cc849 commit 3e3c8db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+460
-49
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY go.sum go.sum
1212
RUN go mod download
1313

1414
# Copy the go source
15-
COPY cmd/main.go cmd/main.go
15+
COPY cmd/manager/main.go cmd/manager/main.go
1616
COPY api/ api/
1717
COPY internal/ internal/
1818

@@ -24,7 +24,7 @@ COPY internal/ internal/
2424
# Build
2525
RUN --mount=type=cache,target=/root/.cache/go-build \
2626
--mount=type=cache,target=/go/pkg \
27-
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go
27+
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/manager/main.go
2828

2929
# Use distroless as minimal base image to package the manager binary
3030
# Refer to https://github.com/GoogleContainerTools/distroless for more details

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ lint-config: golangci-lint ## Verify golangci-lint linter configuration
109109

110110
.PHONY: build
111111
build: manifests generate fmt vet ## Build manager binary.
112-
go build -o bin/manager cmd/main.go
112+
go build -o bin/manager cmd/manager/main.go
113113

114114
.PHONY: run
115115
run: manifests generate fmt vet ## Run a controller from your host.
116-
go run ./cmd/main.go
116+
go run ./cmd/manager/main.go
117117

118118
# If you wish built the manager image targeting other platforms you can use the --platform flag.
119119
# (i.e. docker build --platform linux/arm64 ). However, you must enable docker buildKit for it.

api/ipam/v1alpha1/cidr_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/ipam/v1alpha1/cidr_types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/ipam/v1alpha1/cidrutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/ipam/v1alpha1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
22
// SPDX-License-Identifier: Apache-2.0
33

44
// +k8s:deepcopy-gen=package

api/ipam/v1alpha1/groupversion_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
22
// SPDX-License-Identifier: Apache-2.0
33

44
// Package v1alpha1 contains API Schema definitions for the ipam v1alpha1 API group

api/ipam/v1alpha1/ip_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/ipam/v1alpha1/ipaddr_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/ipam/v1alpha1/ipaddr_types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

0 commit comments

Comments
 (0)