-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable v1beta1 MC/IMC controllers (#466)
- Loading branch information
1 parent
93b59b4
commit 0b663c4
Showing
9 changed files
with
92 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package v1beta1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"sigs.k8s.io/controller-runtime/pkg/client" | ||
) | ||
|
||
// A Conditioned may have conditions set or retrieved. Conditions typically | ||
// indicate the status of both a resource and its reconciliation process. | ||
// +kubebuilder:object:generate=false | ||
type Conditioned interface { | ||
SetConditions(...metav1.Condition) | ||
GetCondition(string) *metav1.Condition | ||
} | ||
|
||
// A ConditionedWithType may have conditions set or retrieved based on agent type. Conditions typically | ||
// indicate the status of both a resource and its reconciliation process. | ||
// +kubebuilder:object:generate=false | ||
type ConditionedWithType interface { | ||
SetConditionsWithType(AgentType, ...metav1.Condition) | ||
GetConditionWithType(AgentType, string) *metav1.Condition | ||
} | ||
|
||
// A ConditionedObj is for kubernetes resource with conditions. | ||
// +kubebuilder:object:generate=false | ||
type ConditionedObj interface { | ||
client.Object | ||
Conditioned | ||
} | ||
|
||
// A ConditionedAgentObj is for kubernetes resources where multiple agents can set and update conditions within AgentStatus. | ||
// +kubebuilder:object:generate=false | ||
type ConditionedAgentObj interface { | ||
client.Object | ||
ConditionedWithType | ||
} |
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"sigs.k8s.io/controller-runtime/pkg/client" | ||
) | ||
|
||
// A Conditioned may have conditions set or retrieved. Conditions typically | ||
// indicate the status of both a resource and its reconciliation process. | ||
// +kubebuilder:object:generate=false | ||
type Conditioned interface { | ||
SetConditions(...metav1.Condition) | ||
GetCondition(string) *metav1.Condition | ||
} | ||
|
||
// A ConditionedWithType may have conditions set or retrieved based on agent type. Conditions typically | ||
// indicate the status of both a resource and its reconciliation process. | ||
// +kubebuilder:object:generate=false | ||
type ConditionedWithType interface { | ||
SetConditionsWithType(AgentType, ...metav1.Condition) | ||
GetConditionWithType(AgentType, string) *metav1.Condition | ||
} | ||
|
||
// A ConditionedObj is for kubernetes resource with conditions. | ||
// +kubebuilder:object:generate=false | ||
type ConditionedObj interface { | ||
client.Object | ||
Conditioned | ||
} | ||
|
||
// A ConditionedAgentObj is for kubernetes resources where multiple agents can set and update conditions within AgentStatus. | ||
// +kubebuilder:object:generate=false | ||
type ConditionedAgentObj interface { | ||
client.Object | ||
ConditionedWithType | ||
} |
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
Oops, something went wrong.