-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* some initial design Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com> * new patch Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com> * fixed manifest generation Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com> * Update README.md Co-authored-by: Andrew Block <andy.block@gmail.com> * Update README.md Co-authored-by: Andrew Block <andy.block@gmail.com> * Update README.md Co-authored-by: Andrew Block <andy.block@gmail.com> * Update README.md Co-authored-by: Andrew Block <andy.block@gmail.com> * fixes from andy's comments Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com> Co-authored-by: Andrew Block <andy.block@gmail.com>
- Loading branch information
1 parent
db103cf
commit b22e79c
Showing
36 changed files
with
2,094 additions
and
2,031 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
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,39 @@ | ||
package v1alpha1 | ||
|
||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
|
||
// +patchMergeKey=type | ||
// +patchStrategy=merge | ||
// +listType=map | ||
// +listMapKey=type | ||
type Conditions []metav1.Condition | ||
|
||
// +mapType=granular | ||
type ConditionMap map[string]Conditions | ||
|
||
// EnforcingReconcileStatus represents the status of the last reconcile cycle. It's used to communicate success or failure and the error message | ||
type EnforcingReconcileStatus struct { | ||
|
||
// ReconcileStatus this is the general status of the main reconciler | ||
// +kubebuilder:validation:Optional | ||
// +patchMergeKey=type | ||
// +patchStrategy=merge | ||
// +listType=map | ||
// +listMapKey=type | ||
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` | ||
|
||
//LockedResourceStatuses contains the reconcile status for each of the managed resources | ||
// +kubebuilder:validation:Optional | ||
LockedResourceStatuses map[string]Conditions `json:"lockedResourceStatuses,omitempty"` | ||
|
||
//LockedResourceStatuses contains the reconcile status for each of the managed resources | ||
// +kubebuilder:validation:Optional | ||
LockedPatchStatuses map[string]ConditionMap `json:"lockedPatchStatuses,omitempty"` | ||
} | ||
|
||
// EnforcingReconcileStatusAware is an interfce that must be implemented by a CRD type that has been enabled with ReconcileStatus, it can then benefit of a series of utility methods. | ||
// +kubebuilder:object:generate:=false | ||
type EnforcingReconcileStatusAware interface { | ||
GetEnforcingReconcileStatus() EnforcingReconcileStatus | ||
SetEnforcingReconcileStatus(enforcingReconcileStatus EnforcingReconcileStatus) | ||
} |
Oops, something went wrong.