Skip to content
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

Implement LAN provisioning #22

Merged
merged 6 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading