-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename project to cluster-api-provider-ironcore-metal (#57)
* Rename project to cluster-api-provider-ironcore-metal * Update image and namespace for tilt * Change API from MetalMachine to IroncoreMetalMachine * Change API from MetalCluster to IroncoreMetalCluster * Autogenerate CRDs based on new APIs * Change file names from metalmachine to ironcoremetalmachine * Change file names from metalcluster to ironcoremetalcluster * Autogenerate CRD bases * Add samples file with naming * Fix kustomize for shorter CR names
- Loading branch information
Showing
58 changed files
with
604 additions
and
857 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: cluster-api-provider-metal | ||
Upstream-Name: cluster-api-provider-ironcore-metal | ||
Upstream-Contact: IronCore authors <[email protected]> | ||
Source: https://github.com/ironcore-dev/cluster-api-provider-metal | ||
Source: https://github.com/ironcore-dev/cluster-api-provider-ironcore-metal | ||
|
||
# -------------------------------------------------- | ||
# source code | ||
|
This file contains 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 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 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 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 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 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 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,68 @@ | ||
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1" | ||
) | ||
|
||
const ( | ||
// ClusterFinalizer allows IroncoreMetalClusterReconciler to clean up resources associated with IroncoreMetalCluster before | ||
// removing it from the apiserver. | ||
ClusterFinalizer = "ironcoremetalcluster.infrastructure.cluster.x-k8s.io" | ||
) | ||
|
||
// IroncoreMetalClusterSpec defines the desired state of IroncoreMetalCluster | ||
type IroncoreMetalClusterSpec struct { | ||
// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane. | ||
// +optional | ||
ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint,omitempty"` | ||
} | ||
|
||
// IroncoreMetalClusterStatus defines the observed state of IroncoreMetalCluster | ||
type IroncoreMetalClusterStatus struct { | ||
// Ready denotes that the cluster (infrastructure) is ready. | ||
// +optional | ||
Ready bool `json:"ready"` | ||
|
||
// Conditions defines current service state of the IroncoreMetalCluster. | ||
// +optional | ||
Conditions clusterv1.Conditions `json:"conditions,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
// +kubebuilder:subresource:status | ||
|
||
// IroncoreMetalCluster is the Schema for the ironcoremetalclusters API | ||
type IroncoreMetalCluster struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec IroncoreMetalClusterSpec `json:"spec,omitempty"` | ||
Status IroncoreMetalClusterStatus `json:"status,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
// IroncoreMetalClusterList contains a list of IroncoreMetalCluster | ||
type IroncoreMetalClusterList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []IroncoreMetalCluster `json:"items"` | ||
} | ||
|
||
// GetConditions returns the observations of the operational state of the IroncoreMetalCluster resource. | ||
func (c *IroncoreMetalCluster) GetConditions() clusterv1.Conditions { | ||
return c.Status.Conditions | ||
} | ||
|
||
// SetConditions sets the underlying service state of the IroncoreMetalCluster to the predescribed clusterv1.Conditions. | ||
func (c *IroncoreMetalCluster) SetConditions(conditions clusterv1.Conditions) { | ||
c.Status.Conditions = conditions | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&IroncoreMetalCluster{}, &IroncoreMetalClusterList{}) | ||
} |
This file contains 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 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,46 @@ | ||
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and IronCore contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1" | ||
) | ||
|
||
// IroncoreMetalMachineTemplateSpec defines the desired state of IroncoreMetalMachineTemplate | ||
type IroncoreMetalMachineTemplateSpec struct { | ||
Template IroncoreMetalMachineTemplateResource `json:"template"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
// IroncoreMetalMachineTemplate is the Schema for the ironcoremetalmachinetemplates API | ||
type IroncoreMetalMachineTemplate struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec IroncoreMetalMachineTemplateSpec `json:"spec,omitempty"` | ||
} | ||
|
||
// IroncoreMetalMachineTemplateResource defines the spec and metadata for IroncoreMetalMachineTemplate supported by capi. | ||
type IroncoreMetalMachineTemplateResource struct { | ||
// Standard object's metadata. | ||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | ||
// +optional | ||
ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"` | ||
Spec IroncoreMetalMachineSpec `json:"spec"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
// IroncoreMetalMachineTemplateList contains a list of IroncoreMetalMachineTemplate | ||
type IroncoreMetalMachineTemplateList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []IroncoreMetalMachineTemplate `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&IroncoreMetalMachineTemplate{}, &IroncoreMetalMachineTemplateList{}) | ||
} |
Oops, something went wrong.