Skip to content

Commit

Permalink
Implement LAN provisioning (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfariasalves-ionos authored Jan 9, 2024
1 parent ba970dd commit 26bb266
Show file tree
Hide file tree
Showing 13 changed files with 507 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
capi
capic
decorder
reterr
ionos
4 changes: 4 additions & 0 deletions api/v1alpha1/ionoscloudcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ type IonosCloudClusterStatus struct {
// Conditions defines current service state of the IonosCloudCluster.
// +optional
Conditions clusterv1.Conditions `json:"conditions,omitempty"`

// PendingRequests is a map that maps data centers IDs with a pending provisioning request made during reconciliation.
// +optional
PendingRequests map[string]*ProvisioningRequest `json:"pendingRequests,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/ionoscloudmachine_types_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2023 IONOS Cloud.
Copyright 2023-2024 IONOS Cloud.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
23 changes: 17 additions & 6 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,37 @@ spec:
- type
type: object
type: array
pendingRequests:
additionalProperties:
description: ProvisioningRequest is a definition of a provisioning
request in the IONOS Cloud.
properties:
failureMessage:
description: Message is the request message, which can also
contain error information.
type: string
method:
description: Method is the request method
type: string
requestPath:
description: RequestPath is the sub path for the request URL
type: string
state:
description: RequestStatus is the status of the request in the
queue.
enum:
- QUEUED
- RUNNING
- DONE
- FAILED
type: string
required:
- method
- requestPath
type: object
description: PendingRequests is a map that maps data centers IDs with
a pending provisioning request made during reconciliation.
type: object
ready:
default: false
description: Ready indicates that the cluster is ready.
Expand Down
2 changes: 1 addition & 1 deletion hack/boilerplate.go.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2023 IONOS Cloud.
Copyright 2023-2024 IONOS Cloud.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/ionoscloudcluster_controller.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2023 IONOS Cloud.
Copyright 2023-2024 IONOS Cloud.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 26bb266

Please sign in to comment.