From 29b5533e95acf8730a2ad6bab0d0d3834a4ec42a Mon Sep 17 00:00:00 2001 From: Brad Beck Date: Fri, 7 Mar 2025 11:32:48 -0600 Subject: [PATCH] Update Cue v0.9.0 -> v0.12.0 Release: https://github.com/cue-lang/cue/releases/tag/v0.12.0 Signed-off-by: Brad Beck --- .../pkg/apis/config/default_go_gen.cue | 7 +- .../pkg/apis/config/events_go_gen.cue | 3 +- .../pipeline/pkg/apis/config/store_go_gen.cue | 3 +- .../v1beta1/customrun_types_go_gen.cue | 2 +- .../v1beta1/pipeline_types_go_gen.cue | 2 +- .../v1beta1/pipelinerun_types_go_gen.cue | 8 +- .../v1beta1/resource_types_go_gen.cue | 2 +- .../pipeline/v1beta1/result_types_go_gen.cue | 2 +- .../pipeline/v1beta1/taskrun_types_go_gen.cue | 4 +- .../pipeline_resource_types_go_gen.cue | 7 +- .../v1beta1/event_listener_types_go_gen.cue | 6 +- .../v1beta1/trigger_binding_types_go_gen.cue | 3 +- .../v1beta1/trigger_template_types_go_gen.cue | 3 +- .../gen/k8s.io/api/core/v1/types_go_gen.cue | 21 +- .../apis/apiextensions/v1/types_go_gen.cue | 3 +- .../pkg/apis/meta/v1/types_go_gen.cue | 3 +- .../pkg/runtime/allocator_go_gen.cue | 3 +- .../apimachinery/pkg/runtime/codec_go_gen.cue | 6 +- .../pkg/runtime/helper_go_gen.cue | 3 +- .../knative.dev/pkg/apis/contexts_go_gen.cue | 33 +-- .../apis/duck/v1/cronjob_defaults_go_gen.cue | 3 +- .../duck/v1/cronjob_validation_go_gen.cue | 3 +- .../apis/duck/v1/knative_reference_go_gen.cue | 3 +- .../apis/duck/v1/podspec_defaults_go_gen.cue | 6 +- .../duck/v1/podspec_validation_go_gen.cue | 6 +- cue.mod/gen/time/format_go_gen.cue | 71 ----- cue.mod/gen/time/time_go_gen.cue | 268 ------------------ cue.mod/gen/time/zoneinfo_go_gen.cue | 19 -- cue.mod/gen/time/zoneinfo_read_go_gen.cue | 11 - cue.mod/module.cue | 2 +- platform/00-kubernetes-minikube-setup.sh | 2 +- 31 files changed, 51 insertions(+), 467 deletions(-) delete mode 100644 cue.mod/gen/time/format_go_gen.cue delete mode 100644 cue.mod/gen/time/time_go_gen.cue delete mode 100644 cue.mod/gen/time/zoneinfo_go_gen.cue delete mode 100644 cue.mod/gen/time/zoneinfo_read_go_gen.cue diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/default_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/default_go_gen.cue index 1869bee4..f682a28c 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/default_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/default_go_gen.cue @@ -4,16 +4,13 @@ package config -import ( - "time" - "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" -) +import "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" // DefaultTimeoutMinutes is used when no timeout is specified. #DefaultTimeoutMinutes: 60 // NoTimeoutDuration is used when a pipeline or task should never time out. -#NoTimeoutDuration: time.#Duration & 0 +#NoTimeoutDuration: int & 0 // DefaultServiceAccountValue is the SA used when one is not specified. #DefaultServiceAccountValue: "default" diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/events_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/events_go_gen.cue index a7b08044..9a467d98 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/events_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/events_go_gen.cue @@ -26,5 +26,4 @@ _#sinkKey: "sink" #FormatTektonV1 // EventFormats is a set of event formats -#EventFormats: {[string]: { -}} +#EventFormats: {[string]: {}} diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/store_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/store_go_gen.cue index 7c8724f0..cd1e5116 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/store_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/config/store_go_gen.cue @@ -6,8 +6,7 @@ package config import sc "github.com/tektoncd/pipeline/pkg/spire/config" -_#cfgKey: { -} +_#cfgKey: {} // Config holds the collection of configurations that we attach to contexts. // +k8s:deepcopy-gen=false diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/customrun_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/customrun_types_go_gen.cue index b7dcf631..09934909 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/customrun_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/customrun_types_go_gen.cue @@ -143,7 +143,7 @@ import ( spec?: #CustomRunSpec @go(Spec) // +optional - status?: runv1beta1.#CustomRunStatus @go(Status) + status?: runv1beta1.#CustomRunStatus @go(Status,CustomRunStatus) } // CustomRunList contains a list of CustomRun diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_types_go_gen.cue index 1cde5d40..33fac083 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_types_go_gen.cue @@ -91,7 +91,7 @@ import ( description?: string @go(Description) // Value the expression used to retrieve the value - value: #ParamValue @go(Value) + value: #ParamValue @go(Value,ResultValue) } // PipelineTaskMetadata contains the labels or annotations for an EmbeddedTask diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelinerun_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelinerun_types_go_gen.cue index 2a411d75..35d88a78 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelinerun_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipelinerun_types_go_gen.cue @@ -77,7 +77,7 @@ import ( timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) // PodTemplate holds pod specific configuration - podTemplate?: null | pod.#Template @go(PodTemplate,*pod.Template) + podTemplate?: null | pod.#Template @go(PodTemplate,*pod.PodTemplate) // Workspaces holds a set of workspace bindings that must match names // with those declared in the pipeline. @@ -327,7 +327,7 @@ import ( name: string @go(Name) // Value is the result returned from the execution of this PipelineRun - value: #ParamValue @go(Value) + value: #ParamValue @go(Value,ResultValue) } // PipelineRunTaskRunStatus contains the name of the PipelineTask for this TaskRun and the TaskRun's Status @@ -352,7 +352,7 @@ import ( // Status is the CustomRunStatus for the corresponding CustomRun or Run // +optional - status?: null | v1beta1.#CustomRunStatus @go(Status,*github.com/tektoncd/pipeline/pkg/apis/run/v1beta1.CustomRunStatus) + status?: null | v1beta1.#CustomRunStatus @go(Status,*CustomRunStatus) // WhenExpressions is the list of checks guarding the execution of the PipelineTask // +optional @@ -381,7 +381,7 @@ import ( #PipelineTaskRunSpec: { pipelineTaskName?: string @go(PipelineTaskName) taskServiceAccountName?: string @go(TaskServiceAccountName) - taskPodTemplate?: null | pod.#Template @go(TaskPodTemplate,*pod.Template) + taskPodTemplate?: null | pod.#Template @go(TaskPodTemplate,*pod.PodTemplate) // +listType=atomic stepOverrides?: [...#TaskRunStepOverride] @go(StepOverrides,[]TaskRunStepOverride) diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resource_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resource_types_go_gen.cue index cec78bfd..73b51528 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resource_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/resource_types_go_gen.cue @@ -48,7 +48,7 @@ import ( name: string @go(Name) // Type is the type of the PipelineResource. - type: string @go(Type) + type: string @go(Type,PipelineResourceType) // Optional declares the resource as optional. // optional: true - the resource is considered optional diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/result_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/result_types_go_gen.cue index eb34bb4e..ea096a6b 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/result_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/result_types_go_gen.cue @@ -34,7 +34,7 @@ package v1beta1 type?: #ResultsType @go(Type) // Value the given value of the result - value: #ParamValue @go(Value) + value: #ParamValue @go(Value,ResultValue) } // ResultValue is a type alias of ParamValue diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_types_go_gen.cue index 2949f49e..4bed66b1 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskrun_types_go_gen.cue @@ -53,7 +53,7 @@ import ( timeout?: null | metav1.#Duration @go(Timeout,*metav1.Duration) // PodTemplate holds pod specific configuration - podTemplate?: null | pod.#Template @go(PodTemplate,*pod.Template) + podTemplate?: null | pod.#Template @go(PodTemplate,*pod.PodTemplate) // Workspaces is a list of WorkspaceBindings from volumes to workspaces. // +optional @@ -225,7 +225,7 @@ import ( // Deprecated: this field is not populated and is preserved only for backwards compatibility // +optional // +listType=atomic - resourcesResult?: [...result.#RunResult] @go(ResourcesResult,[]github.com/tektoncd/pipeline/pkg/result.RunResult) + resourcesResult?: [...result.#RunResult] @go(ResourcesResult,[]PipelineResourceResult) // TaskRunResults are the list of results written out by the task's containers // +optional diff --git a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pipeline_resource_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pipeline_resource_types_go_gen.cue index 5022e300..87d3e2bc 100644 --- a/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pipeline_resource_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pipeline_resource_types_go_gen.cue @@ -39,8 +39,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" // do not have a status // // Deprecated: Unused, preserved only for backwards compatibility -#PipelineResourceStatus: { -} +#PipelineResourceStatus: {} // PipelineResourceSpec defines an individual resources used in the pipeline. // @@ -50,7 +49,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" // used to populate a UI. // +optional description?: string @go(Description) - type: string @go(Type) + type: string @go(Type,PipelineResourceType) // +listType=atomic params: [...#ResourceParam] @go(Params,[]ResourceParam) @@ -93,7 +92,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" name: string @go(Name) // Type is the type of this resource; - type: string @go(Type) + type: string @go(Type,PipelineResourceType) // Description is a user-facing description of the declared resource that may be // used to populate a UI. diff --git a/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/event_listener_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/event_listener_types_go_gen.cue index e92dbd20..e8c3c9b8 100644 --- a/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/event_listener_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/event_listener_types_go_gen.cue @@ -66,15 +66,15 @@ import ( // provided instead of TriggerBinding, Interceptors and TriggerTemplate #EventListenerTrigger: { // +listType=atomic - bindings?: [...null | #TriggerSpecBinding] @go(Bindings,[]*TriggerSpecBinding) - template?: null | #TriggerSpecTemplate @go(Template,*TriggerSpecTemplate) + bindings?: [...null | #TriggerSpecBinding] @go(Bindings,[]*EventListenerBinding) + template?: null | #TriggerSpecTemplate @go(Template,*EventListenerTemplate) triggerRef?: string @go(TriggerRef) // +optional name?: string @go(Name) // +listType=atomic - interceptors?: [...null | #TriggerInterceptor] @go(Interceptors,[]*TriggerInterceptor) + interceptors?: [...null | #TriggerInterceptor] @go(Interceptors,[]*EventInterceptor) // ServiceAccountName optionally associates credentials with each trigger; // more granular authorization for diff --git a/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/trigger_binding_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/trigger_binding_types_go_gen.cue index 929e70af..bf07078d 100644 --- a/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/trigger_binding_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/trigger_binding_types_go_gen.cue @@ -14,8 +14,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" } // TriggerBindingStatus defines the observed state of TriggerBinding. -#TriggerBindingStatus: { -} +#TriggerBindingStatus: {} // TriggerBinding defines a mapping of an input event to parameters. This is used // to extract information from events to be passed to TriggerTemplates within a diff --git a/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/trigger_template_types_go_gen.cue b/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/trigger_template_types_go_gen.cue index 61fd7977..7d85673a 100644 --- a/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/trigger_template_types_go_gen.cue +++ b/cue.mod/gen/github.com/tektoncd/triggers/pkg/apis/triggers/v1beta1/trigger_template_types_go_gen.cue @@ -19,8 +19,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" #TriggerResourceTemplate: _ // TriggerTemplateStatus describes the desired state of TriggerTemplate -#TriggerTemplateStatus: { -} +#TriggerTemplateStatus: {} // TriggerTemplate takes parameters and uses them to create CRDs // diff --git a/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue index 3f931866..aba81355 100644 --- a/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue +++ b/cue.mod/gen/k8s.io/api/core/v1/types_go_gen.cue @@ -5069,11 +5069,7 @@ import ( // for backwards compat // +enum -#ServiceInternalTrafficPolicyType: #ServiceInternalTrafficPolicy // #enumServiceInternalTrafficPolicyType - -#enumServiceInternalTrafficPolicyType: - #ServiceInternalTrafficPolicyCluster | - #ServiceInternalTrafficPolicyLocal +#ServiceInternalTrafficPolicyType: #ServiceInternalTrafficPolicy // ServiceExternalTrafficPolicy describes how nodes distribute service traffic they // receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, @@ -5097,13 +5093,7 @@ import ( // for backwards compat // +enum -#ServiceExternalTrafficPolicyType: #ServiceExternalTrafficPolicy // #enumServiceExternalTrafficPolicyType - -#enumServiceExternalTrafficPolicyType: - #ServiceExternalTrafficPolicyCluster | - #ServiceExternalTrafficPolicyLocal | - #ServiceExternalTrafficPolicyTypeLocal | - #ServiceExternalTrafficPolicyTypeCluster +#ServiceExternalTrafficPolicyType: #ServiceExternalTrafficPolicy #ServiceExternalTrafficPolicyTypeLocal: #ServiceExternalTrafficPolicy & "Local" #ServiceExternalTrafficPolicyTypeCluster: #ServiceExternalTrafficPolicy & "Cluster" @@ -5206,12 +5196,7 @@ import ( // for backwards compat // +enum -#IPFamilyPolicyType: #IPFamilyPolicy // #enumIPFamilyPolicyType - -#enumIPFamilyPolicyType: - #IPFamilyPolicySingleStack | - #IPFamilyPolicyPreferDualStack | - #IPFamilyPolicyRequireDualStack +#IPFamilyPolicyType: #IPFamilyPolicy // ServiceSpec describes the attributes that a user creates on a service. #ServiceSpec: { diff --git a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue index 023aa40a..14d0afa6 100644 --- a/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue +++ b/cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_go_gen.cue @@ -433,8 +433,7 @@ import ( // * exposes a /status subresource for the custom resource // * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza // * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza -#CustomResourceSubresourceStatus: { -} +#CustomResourceSubresourceStatus: {} // CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. #CustomResourceSubresourceScale: { diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue index a0deb7c9..176ca409 100644 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue +++ b/cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue @@ -1206,8 +1206,7 @@ import ( } // Patch is provided to give a concrete name and type to the Kubernetes PATCH request body. -#Patch: { -} +#Patch: {} // A label selector is a label query over a set of resources. The result of matchLabels and // matchExpressions are ANDed. An empty label selector matches all objects. A null diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/allocator_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/allocator_go_gen.cue index 43474c39..48ba9366 100644 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/allocator_go_gen.cue +++ b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/allocator_go_gen.cue @@ -6,5 +6,4 @@ package runtime // SimpleAllocator a wrapper around make([]byte) // conforms to the MemoryAllocator interface -#SimpleAllocator: { -} +#SimpleAllocator: {} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue index a05de5d5..1322e8a6 100644 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue +++ b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue @@ -30,8 +30,6 @@ _#base64Serializer: { _#internalGroupVersionerIdentifier: "internal" _#disabledGroupVersionerIdentifier: "disabled" -_#internalGroupVersioner: { -} +_#internalGroupVersioner: {} -_#disabledGroupVersioner: { -} +_#disabledGroupVersioner: {} diff --git a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/helper_go_gen.cue b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/helper_go_gen.cue index ec8f1f07..b7176e98 100644 --- a/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/helper_go_gen.cue +++ b/cue.mod/gen/k8s.io/apimachinery/pkg/runtime/helper_go_gen.cue @@ -7,8 +7,7 @@ package runtime // MultiObjectTyper returns the types of objects across multiple schemes in order. #MultiObjectTyper: [...#ObjectTyper] -_#defaultFramer: { -} +_#defaultFramer: {} // WithVersionEncoder serializes an object and ensures the GVK is set. #WithVersionEncoder: { diff --git a/cue.mod/gen/knative.dev/pkg/apis/contexts_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/contexts_go_gen.cue index db168296..517d57c8 100644 --- a/cue.mod/gen/knative.dev/pkg/apis/contexts_go_gen.cue +++ b/cue.mod/gen/knative.dev/pkg/apis/contexts_go_gen.cue @@ -6,57 +6,46 @@ package apis // This is attached to contexts passed to webhook interfaces when // the receiver being validated is being created. -_#inCreateKey: { -} +_#inCreateKey: {} // This is attached to contexts passed to webhook interfaces when // the receiver being validated is being deleted. -_#inDeleteKey: { -} +_#inDeleteKey: {} // This is attached to contexts passed to webhook interfaces when // the receiver being validated is being updated. -_#inUpdateKey: { -} +_#inUpdateKey: {} // This is attached to contexts passed to webhook interfaces when // the receiver being validated is being created. -_#userInfoKey: { -} +_#userInfoKey: {} // This is attached to contexts as they are passed down through a resource // being validated or defaulted to signal the ObjectMeta of the enclosing // resource. -_#parentMetaKey: { -} +_#parentMetaKey: {} // This is attached to contexts as they are passed down through a resource // being validated or defaulted to signal that we are within a Spec. -_#inSpec: { -} +_#inSpec: {} // This is attached to contexts as they are passed down through a resource // being validated or defaulted to signal that we are within a Status. -_#inStatus: { -} +_#inStatus: {} // This is attached to contexts as they are passed down through a resource // being validated to direct them to disallow deprecated fields. -_#disallowDeprecated: { -} +_#disallowDeprecated: {} // This is attached to contexts as they are passed down through a resource // being validated to direct them to allow namespaces (or missing namespace) // outside the parent (as indicated by WithinParent. -_#allowDifferentNamespace: { -} +_#allowDifferentNamespace: {} // This is attached to contexts passed to webhook interfaces when the user // has requested DryRun mode. -_#isDryRun: { -} +_#isDryRun: {} // This is attached to contexts passed to webhook interfaces with // additional context from the HTTP request. -_#httpReq: { -} +_#httpReq: {} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_defaults_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_defaults_go_gen.cue index c016e572..160e2a1a 100644 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_defaults_go_gen.cue +++ b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_defaults_go_gen.cue @@ -5,5 +5,4 @@ package v1 // cdKey is used for associating a CronJobDefaulter with a context.Context -_#cdKey: { -} +_#cdKey: {} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_validation_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_validation_go_gen.cue index 3e5a2d10..beb1e3cf 100644 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_validation_go_gen.cue +++ b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/cronjob_validation_go_gen.cue @@ -5,5 +5,4 @@ package v1 // cvKey is used for associating a CronJobValidator with a context.Context -_#cvKey: { -} +_#cvKey: {} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/knative_reference_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/knative_reference_go_gen.cue index ada278df..0a74802d 100644 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/knative_reference_go_gen.cue +++ b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/knative_reference_go_gen.cue @@ -35,5 +35,4 @@ package v1 address?: null | string @go(Address,*string) } -_#isGroupAllowed: { -} +_#isGroupAllowed: {} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_defaults_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_defaults_go_gen.cue index 3587c799..a895f318 100644 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_defaults_go_gen.cue +++ b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_defaults_go_gen.cue @@ -5,9 +5,7 @@ package v1 // psdKey is used for associating a PodSpecDefaulter with a context.Context -_#psdKey: { -} +_#psdKey: {} // pdKey is used for associating a PodDefaulter with a context.Context -_#pdKey: { -} +_#pdKey: {} diff --git a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_validation_go_gen.cue b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_validation_go_gen.cue index 5b4688b9..8c19224a 100644 --- a/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_validation_go_gen.cue +++ b/cue.mod/gen/knative.dev/pkg/apis/duck/v1/podspec_validation_go_gen.cue @@ -5,9 +5,7 @@ package v1 // psvKey is used for associating a PodSpecValidator with a context.Context -_#psvKey: { -} +_#psvKey: {} // pvKey is used for associating a PodValidator with a context.Context -_#pvKey: { -} +_#pvKey: {} diff --git a/cue.mod/gen/time/format_go_gen.cue b/cue.mod/gen/time/format_go_gen.cue deleted file mode 100644 index 754e1e2d..00000000 --- a/cue.mod/gen/time/format_go_gen.cue +++ /dev/null @@ -1,71 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go time - -package time - -#Layout: "01/02 03:04:05PM '06 -0700" -#ANSIC: "Mon Jan _2 15:04:05 2006" -#UnixDate: "Mon Jan _2 15:04:05 MST 2006" -#RubyDate: "Mon Jan 02 15:04:05 -0700 2006" -#RFC822: "02 Jan 06 15:04 MST" -#RFC822Z: "02 Jan 06 15:04 -0700" -#RFC850: "Monday, 02-Jan-06 15:04:05 MST" -#RFC1123: "Mon, 02 Jan 2006 15:04:05 MST" -#RFC1123Z: "Mon, 02 Jan 2006 15:04:05 -0700" -#RFC3339: "2006-01-02T15:04:05Z07:00" -#RFC3339Nano: "2006-01-02T15:04:05.999999999Z07:00" -#Kitchen: "3:04PM" - -// Handy time stamps. -#Stamp: "Jan _2 15:04:05" -#StampMilli: "Jan _2 15:04:05.000" -#StampMicro: "Jan _2 15:04:05.000000" -#StampNano: "Jan _2 15:04:05.000000000" -#DateTime: "2006-01-02 15:04:05" -#DateOnly: "2006-01-02" -#TimeOnly: "15:04:05" -_#stdLongMonth: 257 -_#stdMonth: 258 -_#stdNumMonth: 259 -_#stdZeroMonth: 260 -_#stdLongWeekDay: 261 -_#stdWeekDay: 262 -_#stdDay: 263 -_#stdUnderDay: 264 -_#stdZeroDay: 265 -_#stdUnderYearDay: 266 -_#stdZeroYearDay: 267 -_#stdHour: 524 -_#stdHour12: 525 -_#stdZeroHour12: 526 -_#stdMinute: 527 -_#stdZeroMinute: 528 -_#stdSecond: 529 -_#stdZeroSecond: 530 -_#stdLongYear: 275 -_#stdYear: 276 -_#stdPM: 533 -_#stdpm: 534 -_#stdTZ: 23 -_#stdISO8601TZ: 24 -_#stdISO8601SecondsTZ: 25 -_#stdISO8601ShortTZ: 26 -_#stdISO8601ColonTZ: 27 -_#stdISO8601ColonSecondsTZ: 28 -_#stdNumTZ: 29 -_#stdNumSecondsTz: 30 -_#stdNumShortTZ: 31 -_#stdNumColonTZ: 32 -_#stdNumColonSecondsTZ: 33 -_#stdFracSecond0: 34 -_#stdFracSecond9: 35 -_#stdNeedDate: 256 -_#stdNeedClock: 512 -_#stdArgShift: 16 -_#stdSeparatorShift: 28 -_#stdMask: 65535 - -_#lowerhex: "0123456789abcdef" -_#runeSelf: 0x80 -_#runeError: 65533 // '\uFFFD' diff --git a/cue.mod/gen/time/time_go_gen.cue b/cue.mod/gen/time/time_go_gen.cue deleted file mode 100644 index f757ff4c..00000000 --- a/cue.mod/gen/time/time_go_gen.cue +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go time - -// Package time provides functionality for measuring and displaying time. -// -// The calendrical calculations always assume a Gregorian calendar, with -// no leap seconds. -// -// # Monotonic Clocks -// -// Operating systems provide both a “wall clock,” which is subject to -// changes for clock synchronization, and a “monotonic clock,” which is -// not. The general rule is that the wall clock is for telling time and -// the monotonic clock is for measuring time. Rather than split the API, -// in this package the Time returned by time.Now contains both a wall -// clock reading and a monotonic clock reading; later time-telling -// operations use the wall clock reading, but later time-measuring -// operations, specifically comparisons and subtractions, use the -// monotonic clock reading. -// -// For example, this code always computes a positive elapsed time of -// approximately 20 milliseconds, even if the wall clock is changed during -// the operation being timed: -// -// start := time.Now() -// ... operation that takes 20 milliseconds ... -// t := time.Now() -// elapsed := t.Sub(start) -// -// Other idioms, such as time.Since(start), time.Until(deadline), and -// time.Now().Before(deadline), are similarly robust against wall clock -// resets. -// -// The rest of this section gives the precise details of how operations -// use monotonic clocks, but understanding those details is not required -// to use this package. -// -// The Time returned by time.Now contains a monotonic clock reading. -// If Time t has a monotonic clock reading, t.Add adds the same duration to -// both the wall clock and monotonic clock readings to compute the result. -// Because t.AddDate(y, m, d), t.Round(d), and t.Truncate(d) are wall time -// computations, they always strip any monotonic clock reading from their results. -// Because t.In, t.Local, and t.UTC are used for their effect on the interpretation -// of the wall time, they also strip any monotonic clock reading from their results. -// The canonical way to strip a monotonic clock reading is to use t = t.Round(0). -// -// If Times t and u both contain monotonic clock readings, the operations -// t.After(u), t.Before(u), t.Equal(u), t.Compare(u), and t.Sub(u) are carried out -// using the monotonic clock readings alone, ignoring the wall clock -// readings. If either t or u contains no monotonic clock reading, these -// operations fall back to using the wall clock readings. -// -// On some systems the monotonic clock will stop if the computer goes to sleep. -// On such a system, t.Sub(u) may not accurately reflect the actual -// time that passed between t and u. -// -// Because the monotonic clock reading has no meaning outside -// the current process, the serialized forms generated by t.GobEncode, -// t.MarshalBinary, t.MarshalJSON, and t.MarshalText omit the monotonic -// clock reading, and t.Format provides no format for it. Similarly, the -// constructors time.Date, time.Parse, time.ParseInLocation, and time.Unix, -// as well as the unmarshalers t.GobDecode, t.UnmarshalBinary. -// t.UnmarshalJSON, and t.UnmarshalText always create times with -// no monotonic clock reading. -// -// The monotonic clock reading exists only in Time values. It is not -// a part of Duration values or the Unix times returned by t.Unix and -// friends. -// -// Note that the Go == operator compares not just the time instant but -// also the Location and the monotonic clock reading. See the -// documentation for the Time type for a discussion of equality -// testing for Time values. -// -// For debugging, the result of t.String does include the monotonic -// clock reading if present. If t != u because of different monotonic clock readings, -// that difference will be visible when printing t.String() and u.String(). -package time - -// A Time represents an instant in time with nanosecond precision. -// -// Programs using times should typically store and pass them as values, -// not pointers. That is, time variables and struct fields should be of -// type time.Time, not *time.Time. -// -// A Time value can be used by multiple goroutines simultaneously except -// that the methods GobDecode, UnmarshalBinary, UnmarshalJSON and -// UnmarshalText are not concurrency-safe. -// -// Time instants can be compared using the Before, After, and Equal methods. -// The Sub method subtracts two instants, producing a Duration. -// The Add method adds a Time and a Duration, producing a Time. -// -// The zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC. -// As this time is unlikely to come up in practice, the IsZero method gives -// a simple way of detecting a time that has not been initialized explicitly. -// -// Each Time has associated with it a Location, consulted when computing the -// presentation form of the time, such as in the Format, Hour, and Year methods. -// The methods Local, UTC, and In return a Time with a specific location. -// Changing the location in this way changes only the presentation; it does not -// change the instant in time being denoted and therefore does not affect the -// computations described in earlier paragraphs. -// -// Representations of a Time value saved by the GobEncode, MarshalBinary, -// MarshalJSON, and MarshalText methods store the Time.Location's offset, but not -// the location name. They therefore lose information about Daylight Saving Time. -// -// In addition to the required “wall clock” reading, a Time may contain an optional -// reading of the current process's monotonic clock, to provide additional precision -// for comparison or subtraction. -// See the “Monotonic Clocks” section in the package documentation for details. -// -// Note that the Go == operator compares not just the time instant but also the -// Location and the monotonic clock reading. Therefore, Time values should not -// be used as map or database keys without first guaranteeing that the -// identical Location has been set for all values, which can be achieved -// through use of the UTC or Local method, and that the monotonic clock reading -// has been stripped by setting t = t.Round(0). In general, prefer t.Equal(u) -// to t == u, since t.Equal uses the most accurate comparison available and -// correctly handles the case when only one of its arguments has a monotonic -// clock reading. -#Time: _ - -_#hasMonotonic: 9223372036854775808 -_#maxWall: int64 & 68043243391 -_#minWall: int64 & 59453308800 -_#nsecMask: 1073741823 -_#nsecShift: 30 - -// A Month specifies a month of the year (January = 1, ...). -#Month: int // #enumMonth - -#enumMonth: - #January | - #February | - #March | - #April | - #May | - #June | - #July | - #August | - #September | - #October | - #November | - #December - -#values_Month: { - January: #January - February: #February - March: #March - April: #April - May: #May - June: #June - July: #July - August: #August - September: #September - October: #October - November: #November - December: #December -} - -#January: #Month & 1 -#February: #Month & 2 -#March: #Month & 3 -#April: #Month & 4 -#May: #Month & 5 -#June: #Month & 6 -#July: #Month & 7 -#August: #Month & 8 -#September: #Month & 9 -#October: #Month & 10 -#November: #Month & 11 -#December: #Month & 12 - -// A Weekday specifies a day of the week (Sunday = 0, ...). -#Weekday: int // #enumWeekday - -#enumWeekday: - #Sunday | - #Monday | - #Tuesday | - #Wednesday | - #Thursday | - #Friday | - #Saturday - -#values_Weekday: { - Sunday: #Sunday - Monday: #Monday - Tuesday: #Tuesday - Wednesday: #Wednesday - Thursday: #Thursday - Friday: #Friday - Saturday: #Saturday -} - -#Sunday: #Weekday & 0 -#Monday: #Weekday & 1 -#Tuesday: #Weekday & 2 -#Wednesday: #Weekday & 3 -#Thursday: #Weekday & 4 -#Friday: #Weekday & 5 -#Saturday: #Weekday & 6 - -// The unsigned zero year for internal calculations. -// Must be 1 mod 400, and times before it will not compute correctly, -// but otherwise can be changed at will. -_#absoluteZeroYear: -292277022399 - -// The year of the zero Time. -// Assumed by the unixToInternal computation below. -_#internalYear: 1 - -// Offsets to convert between internal and absolute or Unix times. -_#absoluteToInternal: int64 & -9223371966579724800 -_#internalToAbsolute: int64 & 9223371966579724800 -_#unixToInternal: int64 & 62135596800 -_#internalToUnix: int64 & -62135596800 -_#wallToInternal: int64 & 59453308800 - -// A Duration represents the elapsed time between two instants -// as an int64 nanosecond count. The representation limits the -// largest representable duration to approximately 290 years. -#Duration: int64 // #enumDuration - -#enumDuration: - _#minDuration | - _#maxDuration | - #Nanosecond | - #Microsecond | - #Millisecond | - #Second | - #Minute | - #Hour - -#values_Duration: { - minDuration: _#minDuration - maxDuration: _#maxDuration - Nanosecond: #Nanosecond - Microsecond: #Microsecond - Millisecond: #Millisecond - Second: #Second - Minute: #Minute - Hour: #Hour -} - -_#minDuration: #Duration & -9223372036854775808 -_#maxDuration: #Duration & 9223372036854775807 - -#Nanosecond: #Duration & 1 -#Microsecond: #Duration & 1000 -#Millisecond: #Duration & 1000000 -#Second: #Duration & 1000000000 -#Minute: #Duration & 60000000000 -#Hour: #Duration & 3600000000000 - -_#secondsPerMinute: 60 -_#secondsPerHour: 3600 -_#secondsPerDay: 86400 -_#secondsPerWeek: 604800 -_#daysPer400Years: 146097 -_#daysPer100Years: 36524 -_#daysPer4Years: 1461 - -_#timeBinaryVersionV1: 1 -_#timeBinaryVersionV2: 2 diff --git a/cue.mod/gen/time/zoneinfo_go_gen.cue b/cue.mod/gen/time/zoneinfo_go_gen.cue deleted file mode 100644 index 9d49e052..00000000 --- a/cue.mod/gen/time/zoneinfo_go_gen.cue +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go time - -package time - -// A Location maps time instants to the zone in use at that time. -// Typically, the Location represents the collection of time offsets -// in use in a geographical area. For many Locations the time offset varies -// depending on whether daylight savings time is in use at the time instant. -#Location: { -} - -_#alpha: -9223372036854775808 -_#omega: 9223372036854775807 - -_#ruleJulian: _#ruleKind & 0 -_#ruleDOY: _#ruleKind & 1 -_#ruleMonthWeekDay: _#ruleKind & 2 diff --git a/cue.mod/gen/time/zoneinfo_read_go_gen.cue b/cue.mod/gen/time/zoneinfo_read_go_gen.cue deleted file mode 100644 index be1545d9..00000000 --- a/cue.mod/gen/time/zoneinfo_read_go_gen.cue +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by cue get go. DO NOT EDIT. - -//cue:generate cue get go time - -package time - -_#maxFileSize: 10485760 - -_#seekStart: 0 -_#seekCurrent: 1 -_#seekEnd: 2 diff --git a/cue.mod/module.cue b/cue.mod/module.cue index 6a1944d4..9b28a45f 100644 --- a/cue.mod/module.cue +++ b/cue.mod/module.cue @@ -1,4 +1,4 @@ module: "github.com/buildsec/frsca@v0" language: { - version: "v0.9.0" + version: "v0.12.0" } diff --git a/platform/00-kubernetes-minikube-setup.sh b/platform/00-kubernetes-minikube-setup.sh index 170ff8a9..2114ea1c 100755 --- a/platform/00-kubernetes-minikube-setup.sh +++ b/platform/00-kubernetes-minikube-setup.sh @@ -33,7 +33,7 @@ COSIGN_RELEASE_URL="https://github.com/sigstore/cosign/releases/download/${COSIG COSIGN_CHECKSUMS="cosign_checksums.txt" COSIGN_ASSET="${COSIGN_BIN}-${COSIGN_OS}-${COSIGN_ARCH}" -CUE_VERSION=v0.9.0 +CUE_VERSION=v0.12.0 CUE_FILE_NAME=cue_${CUE_VERSION}_linux_amd64.tar.gz CUE_URL=https://github.com/cue-lang/cue/releases/download/${CUE_VERSION} CUE_CHECKSUMS=checksums.txt