Skip to content

Commit ac82eb3

Browse files
committed
cleanup
1 parent c7d0209 commit ac82eb3

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

internal/controllers/provider/conditions.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,10 @@ func isInitialized(deploymentStatus *v1alpha1.DeploymentStatus) bool {
3838
return apimeta.IsStatusConditionTrue(deploymentStatus.Conditions, typeInitialized)
3939
}
4040

41-
// func initConditionReason(deploymentStatus *v1alpha1.DeploymentStatus) string {
42-
// condition := apimeta.FindStatusCondition(deploymentStatus.Conditions, typeInitialized)
43-
// if condition != nil {
44-
// return condition.Reason
45-
// }
46-
// return ""
47-
// }
48-
4941
func isProviderInstalledAndReady(deploymentStatus *v1alpha1.DeploymentStatus) bool {
5042
return apimeta.IsStatusConditionTrue(deploymentStatus.Conditions, typeReady)
5143
}
5244

53-
// func readyConditionReason(deploymentStatus *v1alpha1.DeploymentStatus) string {
54-
// condition := apimeta.FindStatusCondition(deploymentStatus.Conditions, typeReady)
55-
// if condition != nil {
56-
// return condition.Reason
57-
// }
58-
// return ""
59-
// }
60-
6145
func conditionInitUnknown(provider *unstructured.Unstructured) meta.Condition {
6246
return meta.Condition{
6347
Type: typeInitialized,
@@ -87,16 +71,6 @@ func conditionInitRunning(provider *unstructured.Unstructured, message string) m
8771
}
8872
}
8973

90-
// func conditionInitFailed(provider *unstructured.Unstructured) meta.Condition {
91-
// return meta.Condition{
92-
// Type: typeInitialized,
93-
// Status: meta.ConditionFalse,
94-
// ObservedGeneration: provider.GetGeneration(),
95-
// Reason: reasonInitFailed,
96-
// Message: "Initialization has failed",
97-
// }
98-
// }
99-
10074
func conditionInitCompleted(provider *unstructured.Unstructured) meta.Condition {
10175
return meta.Condition{
10276
Type: typeInitialized,

0 commit comments

Comments
 (0)