From abaf2abb54b774f18c20dd2d1f53834bf0260888 Mon Sep 17 00:00:00 2001 From: Jerome Ju Date: Mon, 8 Aug 2022 15:16:28 +0000 Subject: [PATCH] Add V1 pipelineRun golang struct This commit adds structs and validation for v1 pipelineRun, including status, params and workspaces. Since we do not yet serve a v1 version of Pipeline CRD, this change should have no impact. This is copied from v1beta1 with the following exceptions: - omitted PiepelineResourcesBinding - deprecated PipelineRun.Timeout - decpreated PipelineRun.Spec.PipelineRef.Bundle - renamed spec.TaskRunSpecs.taskServiceAccountName to spec.TaskRunSpecs.serviceAccountName - renamed spec.taskRunSpecs.taskPodTemplate to spec.taskRunSpecs.podTemplate --- docs/pipeline-api.md | 1245 +- docs/pipeline-api.md.backup | 12991 ++++++++++++++++ pkg/apis/pipeline/v1/openapi_generated.go | 965 +- pkg/apis/pipeline/v1/pipelineref_types.go | 32 + .../pipeline/v1/pipelineref_validation.go | 44 + .../v1/pipelineref_validation_test.go | 99 + pkg/apis/pipeline/v1/pipelinerun_defaults.go | 55 + .../pipeline/v1/pipelinerun_defaults_test.go | 301 + pkg/apis/pipeline/v1/pipelinerun_types.go | 565 + .../pipeline/v1/pipelinerun_types_test.go | 396 + .../pipeline/v1/pipelinerun_validation.go | 291 + .../v1/pipelinerun_validation_test.go | 809 + pkg/apis/pipeline/v1/swagger.json | 429 + pkg/apis/pipeline/v1/zz_generated.deepcopy.go | 420 + .../pipeline/v1/fake/fake_pipeline_client.go | 4 + .../pipeline/v1/fake/fake_pipelinerun.go | 142 + .../typed/pipeline/v1/generated_expansion.go | 2 + .../typed/pipeline/v1/pipeline_client.go | 5 + .../typed/pipeline/v1/pipelinerun.go | 195 + .../informers/externalversions/generic.go | 2 + .../externalversions/pipeline/v1/interface.go | 7 + .../pipeline/v1/pipelinerun.go | 90 + pkg/client/injection/client/client.go | 131 + .../pipeline/v1/pipelinerun/fake/fake.go | 40 + .../v1/pipelinerun/filtered/fake/fake.go | 52 + .../v1/pipelinerun/filtered/pipelinerun.go | 136 + .../pipeline/v1/pipelinerun/pipelinerun.go | 116 + .../pipeline/v1/pipelinerun/controller.go | 162 + .../pipeline/v1/pipelinerun/reconciler.go | 442 + .../pipeline/v1/pipelinerun/state.go | 97 + .../pipeline/v1/expansion_generated.go | 8 + pkg/client/listers/pipeline/v1/pipelinerun.go | 99 + .../github.com/hashicorp/errwrap/errwrap.go | 9 + 33 files changed, 20262 insertions(+), 119 deletions(-) create mode 100644 docs/pipeline-api.md.backup create mode 100644 pkg/apis/pipeline/v1/pipelineref_types.go create mode 100644 pkg/apis/pipeline/v1/pipelineref_validation.go create mode 100644 pkg/apis/pipeline/v1/pipelineref_validation_test.go create mode 100644 pkg/apis/pipeline/v1/pipelinerun_defaults.go create mode 100644 pkg/apis/pipeline/v1/pipelinerun_defaults_test.go create mode 100644 pkg/apis/pipeline/v1/pipelinerun_types.go create mode 100644 pkg/apis/pipeline/v1/pipelinerun_types_test.go create mode 100644 pkg/apis/pipeline/v1/pipelinerun_validation.go create mode 100644 pkg/apis/pipeline/v1/pipelinerun_validation_test.go create mode 100644 pkg/client/clientset/versioned/typed/pipeline/v1/fake/fake_pipelinerun.go create mode 100644 pkg/client/clientset/versioned/typed/pipeline/v1/pipelinerun.go create mode 100644 pkg/client/informers/externalversions/pipeline/v1/pipelinerun.go create mode 100644 pkg/client/injection/informers/pipeline/v1/pipelinerun/fake/fake.go create mode 100644 pkg/client/injection/informers/pipeline/v1/pipelinerun/filtered/fake/fake.go create mode 100644 pkg/client/injection/informers/pipeline/v1/pipelinerun/filtered/pipelinerun.go create mode 100644 pkg/client/injection/informers/pipeline/v1/pipelinerun/pipelinerun.go create mode 100644 pkg/client/injection/reconciler/pipeline/v1/pipelinerun/controller.go create mode 100644 pkg/client/injection/reconciler/pipeline/v1/pipelinerun/reconciler.go create mode 100644 pkg/client/injection/reconciler/pipeline/v1/pipelinerun/state.go create mode 100644 pkg/client/listers/pipeline/v1/pipelinerun.go diff --git a/docs/pipeline-api.md b/docs/pipeline-api.md index 902db8a5c38..3636f315c2c 100644 --- a/docs/pipeline-api.md +++ b/docs/pipeline-api.md @@ -229,6 +229,8 @@ Resource Types: