From 78249aa5cf5926f05971c15390310503878a1aee Mon Sep 17 00:00:00 2001 From: Tim <32556895+Avarei@users.noreply.github.com> Date: Sun, 30 Jun 2024 01:44:01 +0200 Subject: [PATCH 1/2] Add default value to severity Signed-off-by: Tim <32556895+Avarei@users.noreply.github.com> --- pkl/crossplane.contrib/CompositionResponse.pkl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkl/crossplane.contrib/CompositionResponse.pkl b/pkl/crossplane.contrib/CompositionResponse.pkl index 6649f9a..b47f21c 100644 --- a/pkl/crossplane.contrib/CompositionResponse.pkl +++ b/pkl/crossplane.contrib/CompositionResponse.pkl @@ -41,7 +41,7 @@ class ResponseMeta { /// A Result of running a Function. class Result { /// Severity of this result. - severity: Severity + severity: Severity = SEVERITY_UNSPECIFIED /// Human-readable details about the result. message: String From b28727efb6684e020b5d7d4aeb6d496672bcb81a Mon Sep 17 00:00:00 2001 From: Tim <32556895+Avarei@users.noreply.github.com> Date: Mon, 1 Jul 2024 02:10:51 +0200 Subject: [PATCH 2/2] add default for resource readiness Signed-off-by: Tim <32556895+Avarei@users.noreply.github.com> --- pkl/crossplane.contrib/Resource.pkl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkl/crossplane.contrib/Resource.pkl b/pkl/crossplane.contrib/Resource.pkl index c339cae..b0fdb43 100644 --- a/pkl/crossplane.contrib/Resource.pkl +++ b/pkl/crossplane.contrib/Resource.pkl @@ -34,7 +34,7 @@ typealias Ready = Int(isBetween(0,2)) /// /// - A Function should not set this field in a RunFunctionResponse to indicate /// that the desired composite resource is ready. This will be ignored. -ready: Ready? +ready: Ready? = READY_UNSPECIFIED /// The resource's connection details. ///