You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): remove unwanted ready field, use dep variable in readyExpr values
The `Ready` field is removed from the `DependencyReference` type.
To perform an existence check on a dependency, `ReadyExpr` can be
set to `"true"`, effectively disabling readiness checks.
Tests now use the `dep` variable as expected by Applier controllers.
Signed-off-by: Vincent Dely <vincent.dely@ik.me>
Copy file name to clipboardExpand all lines: apis/meta/dependencies.go
+5-19Lines changed: 5 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,6 @@ limitations under the License.
17
17
package meta
18
18
19
19
import (
20
-
"strconv"
21
20
"strings"
22
21
"unicode"
23
22
)
@@ -33,18 +32,15 @@ type ObjectWithDependencies interface {
33
32
// objects. Each dependency string can be in one of the following formats:
34
33
// - "name" - a Flux Applier API (Kustomization or HelmRelease) dependency in the same namespace
35
34
// - "namespace/name" - a Flux Applier API (Kustomization or HelmRelease) dependency in a specific namespace
36
-
// - "name@readyExpr" - a Flux Applier API (Kustomization or HelmRelease) dependency with a CEL readiness expression (enabled)
37
-
// - "namespace/name@readyExpr" - a Flux Applier API (Kustomization or HelmRelease) dependency in a specific namespace with a CEL expression (enabled)
35
+
// - "name@readyExpr" - a Flux Applier API (Kustomization or HelmRelease) dependency with a CEL readiness expression
36
+
// - "namespace/name@readyExpr" - a Flux Applier API (Kustomization or HelmRelease) dependency in a specific namespace with a CEL expression
38
37
// - "apiVersion/Kind/name" - a Kubernetes resource dependency in the same namespace
39
-
// - "apiVersion/Kind/name@readyExpr" - a Kubernetes resource dependency with a CEL readiness expression (disabled)
40
-
// - "apiVersion/Kind/name:true@readyExpr" - a Kubernetes resource dependency with a CEL readiness expression (enabled)
38
+
// - "apiVersion/Kind/name@readyExpr" - a Kubernetes resource dependency with a CEL readiness expression
41
39
// - "apiVersion/Kind/namespace/name" - a Kubernetes resource dependency in a specific namespace
42
-
// - "apiVersion/Kind/namespace/name@readyExpr" - a Kubernetes resource dependency in a specific namespace with a CEL readiness expression (disabled)
43
-
// - "apiVersion/Kind/namespace/name:true@readyExpr" - a Kubernetes resource dependency in a specific namespace with a CEL readiness expression (enabled)
40
+
// - "apiVersion/Kind/namespace/name@readyExpr" - a Kubernetes resource dependency in a specific namespace with a CEL readiness expression
44
41
//
45
-
// The : symbol is used to separate the resource reference from the readiness check enablement.
46
42
// The @ symbol is used to separate the resource reference from the CEL expression.
47
-
// Note that : and @ cannot be part of resource names or namespaces per Kubernetes naming conventions:
43
+
// Note that @ cannot be part of resource names or namespaces per Kubernetes naming conventions:
0 commit comments