-
Notifications
You must be signed in to change notification settings - Fork 2
rfc: add Interface resource + controller and initial provider setup
#2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c1b7f7a
rfc: add `Interface` resource + controller and initial provider setup
felix-kaestner 91afed2
chore: don't use unsigned integer types in resource definitions
felix-kaestner 56d0984
chore: use go tool to install code generators
felix-kaestner 1dd3f02
Revert "chore: use go tool to install code generators"
felix-kaestner 168f3ac
chore: run pinned version of tools using `go run`
felix-kaestner f0441d8
chore: rename api group to networking.cloud.sap as a placeholder
felix-kaestner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| // SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and IronCore contributors | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| // Package v1alpha1 contains API Schema definitions for the network.ironcore.dev v1alpha1 API group. | ||
| // +kubebuilder:validation:Required | ||
| // +kubebuilder:object:generate=true | ||
| // +groupName=network.ironcore.dev | ||
| package v1alpha1 | ||
|
|
||
| import ( | ||
| "k8s.io/apimachinery/pkg/runtime/schema" | ||
| "sigs.k8s.io/controller-runtime/pkg/scheme" | ||
| ) | ||
|
|
||
| var ( | ||
| // GroupVersion is group version used to register these objects. | ||
| GroupVersion = schema.GroupVersion{Group: "network.ironcore.dev", Version: "v1alpha1"} | ||
felix-kaestner marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| // SchemeBuilder is used to add go types to the GroupVersionKind scheme. | ||
| SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} | ||
|
|
||
| // AddToScheme adds the types in this group-version to the given scheme. | ||
| AddToScheme = SchemeBuilder.AddToScheme | ||
| ) | ||
|
|
||
| // WatchLabel is a label that can be applied to any Network API object. | ||
| // | ||
| // Controllers which allow for selective reconciliation may check this label and proceed | ||
| // with reconciliation of the object only if this label and a configured value is present. | ||
| const WatchLabel = "network.ironcore.dev/watch-filter" | ||
|
|
||
| // FinalizerName is the identifier used by the controllers to perform cleanup before a resource is deleted. | ||
| // It is added when the resource is created and ensures that the controller can handle teardown logic | ||
| // (e.g., deleting external dependencies) before Kubernetes finalizes the deletion. | ||
| const FinalizerName = "network.ironcore.dev/finalizer" | ||
|
|
||
| // Condition types that are used across different objects. | ||
| const ( | ||
| // Ready is the top-level status condition that reports if an object is ready. | ||
| // This condition indicates whether the resource is ready to be used and will be calculated by the | ||
| // controller based on child conditions, if present. | ||
| ReadyCondition = "Ready" | ||
| ) | ||
|
|
||
| // Reasons that are used across different objects. | ||
| const ( | ||
| // ReadyReason indicates that the resource is ready for use. | ||
| ReadyReason = "Ready" | ||
|
|
||
| // NotReadyReason indicates that the resource is not ready for use. | ||
| NotReadyReason = "NotReady" | ||
|
|
||
| // ReconcilePendingReason indicates that the controller is waiting for resources to be reconciled. | ||
| ReconcilePendingReason = "ReconcilePending" | ||
| ) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.