From 9e683d56429149839400548c3439d236aa3177ca Mon Sep 17 00:00:00 2001 From: Matt Jenkinson Date: Wed, 11 Nov 2026 10:09:39 +0000 Subject: [PATCH] feat: define feedback.miloapis.com v1alpha1 types Types for every resource in the design: Post, PostQuery, Vote, Subscription, Submission (with review and to-security-report subresources), SecurityReport, SecurityAcknowledgement, Release, ChangelogEntry and AttachmentUpload. - Regenerated deepcopy, clientset and OpenAPI. Enums are marked so clients get allowed values - Field selectors declared per kind in FieldSelectors - A sample for every kind, decoded strictly in tests - Tests that every kind has a GVK extension and every ref resolves, so server-side apply works once storage lands Departs from the design YAML in two places: - The post status field is state, not status.status - Attachments are a create-only AttachmentUpload resource, since a subresource needs its parent to exist first Closes #2. --- README.md | 6 +- cmd/feedback/openapi_test.go | 112 + config/samples/attachmentupload.yaml | 9 + config/samples/changelogentry.yaml | 19 + config/samples/post.yaml | 55 + config/samples/postquery.yaml | 13 + config/samples/release.yaml | 19 + config/samples/securityacknowledgement.yaml | 10 + config/samples/securityreport.yaml | 25 + config/samples/submission.yaml | 20 + config/samples/submissionreview.yaml | 11 + .../samples/submissiontosecurityreport.yaml | 6 + config/samples/subscription.yaml | 8 + config/samples/vote.yaml | 8 + internal/apiserver/apiserver.go | 4 +- internal/registry/feedbacksource/strategy.go | 4 +- .../registry/feedbacksource/strategy_test.go | 2 +- .../v1alpha1/attachmentupload_types.go | 72 + pkg/apis/feedback/v1alpha1/common_types.go | 41 + .../feedback/v1alpha1/feedbacksource_types.go | 27 +- pkg/apis/feedback/v1alpha1/post_types.go | 251 ++ pkg/apis/feedback/v1alpha1/postquery_types.go | 153 + pkg/apis/feedback/v1alpha1/register.go | 61 +- pkg/apis/feedback/v1alpha1/register_test.go | 78 + pkg/apis/feedback/v1alpha1/release_types.go | 111 + .../feedback/v1alpha1/securityreport_types.go | 238 + .../feedback/v1alpha1/submission_types.go | 217 + .../feedback/v1alpha1/subscription_types.go | 48 + pkg/apis/feedback/v1alpha1/vote_types.go | 47 + .../v1alpha1/zz_generated.deepcopy.go | 1878 +++++++- .../feedback/v1alpha1/attachmentupload.go | 42 + .../typed/feedback/v1alpha1/changelogentry.go | 54 + .../v1alpha1/fake/fake_attachmentupload.go | 28 + .../v1alpha1/fake/fake_changelogentry.go | 36 + .../v1alpha1/fake/fake_feedback_client.go | 40 + .../typed/feedback/v1alpha1/fake/fake_post.go | 32 + .../feedback/v1alpha1/fake/fake_postquery.go | 28 + .../feedback/v1alpha1/fake/fake_release.go | 34 + .../fake/fake_securityacknowledgement.go | 36 + .../v1alpha1/fake/fake_securityreport.go | 36 + .../feedback/v1alpha1/fake/fake_submission.go | 60 + .../v1alpha1/fake/fake_subscription.go | 36 + .../typed/feedback/v1alpha1/fake/fake_vote.go | 32 + .../feedback/v1alpha1/feedback_client.go | 50 + .../feedback/v1alpha1/generated_expansion.go | 20 + .../versioned/typed/feedback/v1alpha1/post.go | 54 + .../typed/feedback/v1alpha1/postquery.go | 42 + .../typed/feedback/v1alpha1/release.go | 54 + .../v1alpha1/securityacknowledgement.go | 46 + .../typed/feedback/v1alpha1/securityreport.go | 54 + .../typed/feedback/v1alpha1/submission.go | 85 + .../typed/feedback/v1alpha1/subscription.go | 52 + .../versioned/typed/feedback/v1alpha1/vote.go | 54 + pkg/generated/openapi/zz_generated.openapi.go | 3826 +++++++++++++++-- 54 files changed, 7980 insertions(+), 404 deletions(-) create mode 100644 cmd/feedback/openapi_test.go create mode 100644 config/samples/attachmentupload.yaml create mode 100644 config/samples/changelogentry.yaml create mode 100644 config/samples/post.yaml create mode 100644 config/samples/postquery.yaml create mode 100644 config/samples/release.yaml create mode 100644 config/samples/securityacknowledgement.yaml create mode 100644 config/samples/securityreport.yaml create mode 100644 config/samples/submission.yaml create mode 100644 config/samples/submissionreview.yaml create mode 100644 config/samples/submissiontosecurityreport.yaml create mode 100644 config/samples/subscription.yaml create mode 100644 config/samples/vote.yaml create mode 100644 pkg/apis/feedback/v1alpha1/attachmentupload_types.go create mode 100644 pkg/apis/feedback/v1alpha1/common_types.go create mode 100644 pkg/apis/feedback/v1alpha1/post_types.go create mode 100644 pkg/apis/feedback/v1alpha1/postquery_types.go create mode 100644 pkg/apis/feedback/v1alpha1/register_test.go create mode 100644 pkg/apis/feedback/v1alpha1/release_types.go create mode 100644 pkg/apis/feedback/v1alpha1/securityreport_types.go create mode 100644 pkg/apis/feedback/v1alpha1/submission_types.go create mode 100644 pkg/apis/feedback/v1alpha1/subscription_types.go create mode 100644 pkg/apis/feedback/v1alpha1/vote_types.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/attachmentupload.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/changelogentry.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_attachmentupload.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_changelogentry.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_post.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_postquery.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_release.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_securityacknowledgement.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_securityreport.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_submission.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_subscription.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_vote.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/post.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/postquery.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/release.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/securityacknowledgement.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/securityreport.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/submission.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/subscription.go create mode 100644 pkg/generated/clientset/versioned/typed/feedback/v1alpha1/vote.go diff --git a/README.md b/README.md index 0debd71..097434e 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,10 @@ entries. It runs as an aggregated API server under Milo, like ## Status -Early scaffold. The server runs and serves `FeedbackSource`. The other -resources in the design are tracked as sub-issues of the epic. +Early. Every resource in the design has a v1alpha1 type in +`pkg/apis/feedback/v1alpha1` and a sample in `config/samples`, but the server +only serves `FeedbackSource` so far. Storage for the rest is tracked as +sub-issues of the epic. | Resource | Storage | State | | --- | --- | --- | diff --git a/cmd/feedback/openapi_test.go b/cmd/feedback/openapi_test.go new file mode 100644 index 0000000..6581a86 --- /dev/null +++ b/cmd/feedback/openapi_test.go @@ -0,0 +1,112 @@ +package main + +import ( + "reflect" + "strings" + "testing" + + apiopenapi "k8s.io/apiserver/pkg/endpoints/openapi" + openapicommon "k8s.io/kube-openapi/pkg/common" + openapiutil "k8s.io/kube-openapi/pkg/util" + "k8s.io/kube-openapi/pkg/validation/spec" + + feedbackapiserver "go.miloapis.com/feedback/internal/apiserver" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + "go.miloapis.com/feedback/pkg/generated/openapi" +) + +const typesPkg = "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + +func definitionNamer() func(string) (string, spec.Extensions) { + namer := apiopenapi.NewDefinitionNamer(feedbackapiserver.Scheme) + return func(name string) (string, spec.Extensions) { + if strings.Contains(name, "/") { + name = openapiutil.ToRESTFriendlyName(name) + } + return namer.GetDefinitionName(name) + } +} + +// TestOpenAPIGVKExtensions checks every kind has the +// x-kubernetes-group-version-kind extension. Without it server-side apply +// fails with "no corresponding type". +func TestOpenAPIGVKExtensions(t *testing.T) { + getName := definitionNamer() + defs := openapi.GetOpenAPIDefinitions(func(string) spec.Ref { return spec.Ref{} }) + + for _, obj := range feedbackv1alpha1.KnownTypes() { + kind := reflect.TypeOf(obj).Elem().Name() + t.Run(kind, func(t *testing.T) { + key := typesPkg + "." + kind + if _, ok := defs[key]; !ok { + t.Fatalf("%s has no OpenAPI definition; run task generate", key) + } + _, ext := getName(key) + gvks, ok := ext["x-kubernetes-group-version-kind"].([]any) + if !ok { + t.Fatalf("no GVK extension for %s", key) + } + for _, g := range gvks { + m, _ := g.(map[string]any) + if m["group"] == feedbackv1alpha1.GroupName && m["version"] == "v1alpha1" && m["kind"] == kind { + return + } + } + t.Fatalf("GVK %s/v1alpha1 %s missing from %v", feedbackv1alpha1.GroupName, kind, gvks) + }) + } +} + +// TestOpenAPIRefsResolve checks every $ref points at a definition that +// exists under its REST-friendly name, which is what the server publishes. +func TestOpenAPIRefsResolve(t *testing.T) { + getName := definitionNamer() + defs := openapi.GetOpenAPIDefinitions(func(name string) spec.Ref { + n, _ := getName(name) + return spec.MustCreateRef("#/components/schemas/" + openapicommon.EscapeJsonPointer(n)) + }) + published := map[string]bool{} + for k := range defs { + n, _ := getName(k) + published[n] = true + } + + for key, def := range defs { + if !strings.HasPrefix(key, typesPkg) { + continue + } + for _, dep := range def.Dependencies { + n, _ := getName(dep) + if !published[n] { + t.Errorf("%s depends on %s (%s), which is not published", key, dep, n) + } + } + } +} + +// TestOpenAPIEnums checks +enum markers reach the schema, so clients get the +// allowed values. +func TestOpenAPIEnums(t *testing.T) { + defs := openapi.GetOpenAPIDefinitions(func(string) spec.Ref { return spec.Ref{} }) + cases := []struct { + typ, field string + want []string + }{ + {"PostStatus", "state", []string{"backlog", "closed", "in-progress", "none", "on-deck", "planning", "shipped"}}, + {"SubmissionStatus", "phase", []string{"Approved", "Merged", "PendingReview", "Rejected"}}, + {"PostQuerySpec", "sort", []string{"newest", "recentlyChanged", "relevance", "top", "trending"}}, + } + for _, tc := range cases { + prop, ok := defs[typesPkg+"."+tc.typ].Schema.Properties[tc.field] + if !ok { + t.Fatalf("%s.%s not in schema", tc.typ, tc.field) + } + var got []string + for _, v := range prop.Enum { + got = append(got, v.(string)) + } + if !reflect.DeepEqual(got, tc.want) { + t.Errorf("%s.%s enum = %v, want %v", tc.typ, tc.field, got, tc.want) + } + } +} diff --git a/config/samples/attachmentupload.yaml b/config/samples/attachmentupload.yaml new file mode 100644 index 0000000..ede8419 --- /dev/null +++ b/config/samples/attachmentupload.yaml @@ -0,0 +1,9 @@ +apiVersion: feedback.miloapis.com/v1alpha1 +kind: AttachmentUpload +metadata: + generateName: att- +spec: + purpose: Submission + name: error.log + contentType: text/plain + data: ZXJyb3I6IGNvbm5lY3Rpb24gcmVmdXNlZAo= diff --git a/config/samples/changelogentry.yaml b/config/samples/changelogentry.yaml new file mode 100644 index 0000000..d2ea02d --- /dev/null +++ b/config/samples/changelogentry.yaml @@ -0,0 +1,19 @@ +# Changelog entries are written by feedback-sync. Shown here for reference. +apiVersion: feedback.miloapis.com/v1alpha1 +kind: ChangelogEntry +metadata: + name: datum-cloud.datum.303 +status: + title: "Application Load Balancer: wildcard hostnames" + publishedAt: "2026-10-07T13:23:39Z" + categories: [deliver] + bodyHTML: "

...

" + posts: + - datum-cloud.enhancements.913 + issueRefs: + - datum-cloud/enhancements#913 + - datum-cloud/compute#311 + reactions: {thumbsUp: 4} + github: + url: https://github.com/datum-cloud/datum/discussions/303 + number: 303 diff --git a/config/samples/post.yaml b/config/samples/post.yaml new file mode 100644 index 0000000..3f61770 --- /dev/null +++ b/config/samples/post.yaml @@ -0,0 +1,55 @@ +# Posts are written by feedback-sync. Shown here for reference. +apiVersion: feedback.miloapis.com/v1alpha1 +kind: Post +metadata: + name: datum-cloud.enhancements.912 +spec: + hidden: false +status: + title: Bare Metal Infrastructure service + summary: Expands Datum's platform to support full lifecycle management of bare metal. + bodyHTML: "

High-Level Summary

This enhancement ...

" + state: in-progress + categories: [build] + labels: [Build] + issueType: Enhancement + github: + org: datum-cloud + repository: enhancements + number: 912 + url: https://github.com/datum-cloud/enhancements/issues/912 + state: open + createdAt: "2026-09-30T14:12:00Z" + updatedAt: "2026-10-07T09:40:00Z" + release: hedy-2-0 + votes: + total: 9 + datum: 6 + github: 4 + trendingScore: 3.42 + publicVoters: + - displayName: Ada L. + avatarURL: https://example.com/ada.png + delivery: + stage: picked-up + highestNotified: picked-up + history: + - {stage: requested, at: "2026-09-30T14:12:00Z"} + - {stage: planned, at: "2026-10-02T09:00:00Z"} + - stage: picked-up + at: "2026-10-07T09:40:00Z" + cause: datum-cloud/compute#318 opened, closes datum-cloud/compute#311 + work: + total: 5 + done: 3 + items: + - kind: issue + ref: datum-cloud/compute#311 + title: BMC inventory API + state: open + url: https://github.com/datum-cloud/compute/issues/311 + pullRequests: + - {ref: datum-cloud/compute#318, state: open} + partShipped: + - {changelog: datum-cloud.datum.303, at: "2026-10-07T13:23:39Z"} + lastSyncedAt: "2026-10-08T12:00:00Z" diff --git a/config/samples/postquery.yaml b/config/samples/postquery.yaml new file mode 100644 index 0000000..a100c3d --- /dev/null +++ b/config/samples/postquery.yaml @@ -0,0 +1,13 @@ +apiVersion: feedback.miloapis.com/v1alpha1 +kind: PostQuery +metadata: + name: in-flight-deliver +spec: + text: wildcard hostnames + filter: + state: [planning, on-deck, in-progress] + categories: [deliver] + orgs: [datum-cloud, milo-os] + sort: top + limit: 20 + facets: [state, categories] diff --git a/config/samples/release.yaml b/config/samples/release.yaml new file mode 100644 index 0000000..03f0853 --- /dev/null +++ b/config/samples/release.yaml @@ -0,0 +1,19 @@ +# Releases are written by feedback-sync. Shown here for reference. +apiVersion: feedback.miloapis.com/v1alpha1 +kind: Release +metadata: + name: hedy-2-0 +status: + title: "Hedy: 2.0" + codename: Hedy + version: "2.0" + dueOn: "2026-10-31" + shipped: false + descriptionHTML: "

...

" + coverImage: hedy-2-0 + posts: + - datum-cloud.enhancements.912 + - datum-cloud.enhancements.913 + github: + url: https://github.com/datum-cloud/enhancements/milestone/14 + number: 14 diff --git a/config/samples/securityacknowledgement.yaml b/config/samples/securityacknowledgement.yaml new file mode 100644 index 0000000..b92da84 --- /dev/null +++ b/config/samples/securityacknowledgement.yaml @@ -0,0 +1,10 @@ +# Read-only view served from SecurityReports. Shown here for reference. +apiVersion: feedback.miloapis.com/v1alpha1 +kind: SecurityAcknowledgement +metadata: + name: sec-4m8q1 +status: + name: Ada L. + url: https://example.com + month: "2026-11" + severity: high diff --git a/config/samples/securityreport.yaml b/config/samples/securityreport.yaml new file mode 100644 index 0000000..e1e618b --- /dev/null +++ b/config/samples/securityreport.yaml @@ -0,0 +1,25 @@ +apiVersion: feedback.miloapis.com/v1alpha1 +kind: SecurityReport +metadata: + generateName: sec- +spec: + title: Project viewer can read connector credentials + description: | + A user with the viewer role on a project can read connector credentials. + affected: connectors + stepsToReproduce: | + 1. ... + impact: Credential disclosure across users in one project + attachments: + - name: poc.sh + contentType: text/x-shellscript + uploadRef: att-c71e + credit: + public: true + name: Ada L. + url: https://example.com + context: + client: patch + filedByAgent: true + organization: acme-corp + clientVersion: patch@2026.10.2 diff --git a/config/samples/submission.yaml b/config/samples/submission.yaml new file mode 100644 index 0000000..b33862f --- /dev/null +++ b/config/samples/submission.yaml @@ -0,0 +1,20 @@ +apiVersion: feedback.miloapis.com/v1alpha1 +kind: Submission +metadata: + generateName: sub- +spec: + kind: idea + title: Let me pick the region for Galactic VPC attachments + body: | + When I attach a VPC I can't choose which region it lands in. + attachments: + - name: screenshot.png + contentType: image/png + uploadRef: att-91ac + context: + client: portal + pageURL: https://cloud.datum.net/org/acme/projects/web/vpc + organization: acme-corp + project: web + requestIDs: [req-01HZX] + clientVersion: cloud-portal@2026.10.1 diff --git a/config/samples/submissionreview.yaml b/config/samples/submissionreview.yaml new file mode 100644 index 0000000..fc74e98 --- /dev/null +++ b/config/samples/submissionreview.yaml @@ -0,0 +1,11 @@ +# Body of a create on submissions/{name}/review. Staff only. +apiVersion: feedback.miloapis.com/v1alpha1 +kind: SubmissionReview +metadata: + name: sub-7f3k2 +spec: + decision: Approved + publicTitle: Region selection for Galactic VPC attachments + publicBody: | + ### Summary + Let users choose the region when attaching a VPC. diff --git a/config/samples/submissiontosecurityreport.yaml b/config/samples/submissiontosecurityreport.yaml new file mode 100644 index 0000000..2894858 --- /dev/null +++ b/config/samples/submissiontosecurityreport.yaml @@ -0,0 +1,6 @@ +# Body of a create on submissions/{name}/to-security-report. Staff only. +apiVersion: feedback.miloapis.com/v1alpha1 +kind: SubmissionToSecurityReport +metadata: + name: sub-7f3k2 +affected: connectors diff --git a/config/samples/subscription.yaml b/config/samples/subscription.yaml new file mode 100644 index 0000000..942c790 --- /dev/null +++ b/config/samples/subscription.yaml @@ -0,0 +1,8 @@ +apiVersion: feedback.miloapis.com/v1alpha1 +kind: Subscription +metadata: + name: datum-cloud.enhancements.912 +spec: + postRef: + name: datum-cloud.enhancements.912 + reason: manual diff --git a/config/samples/vote.yaml b/config/samples/vote.yaml new file mode 100644 index 0000000..c952d26 --- /dev/null +++ b/config/samples/vote.yaml @@ -0,0 +1,8 @@ +apiVersion: feedback.miloapis.com/v1alpha1 +kind: Vote +metadata: + name: datum-cloud.enhancements.912 +spec: + postRef: + name: datum-cloud.enhancements.912 + source: portal diff --git a/internal/apiserver/apiserver.go b/internal/apiserver/apiserver.go index 8ec2793..36c040c 100644 --- a/internal/apiserver/apiserver.go +++ b/internal/apiserver/apiserver.go @@ -35,9 +35,7 @@ func init() { // There is no separate internal version: register the v1alpha1 types as // internal too so the generic registry can convert and watch them. Scheme.AddKnownTypes(schema.GroupVersion{Group: feedbackv1alpha1.GroupName, Version: runtime.APIVersionInternal}, - &feedbackv1alpha1.FeedbackSource{}, - &feedbackv1alpha1.FeedbackSourceList{}, - ) + feedbackv1alpha1.KnownTypes()...) unversioned := schema.GroupVersion{Group: "", Version: "v1"} Scheme.AddUnversionedTypes(unversioned, diff --git a/internal/registry/feedbacksource/strategy.go b/internal/registry/feedbacksource/strategy.go index a3b0e7c..f980773 100644 --- a/internal/registry/feedbacksource/strategy.go +++ b/internal/registry/feedbacksource/strategy.go @@ -105,9 +105,9 @@ func Validate(src *feedbackv1alpha1.FeedbackSource) field.ErrorList { } } for k, v := range spec.StatusMapping { - if !slices.Contains(feedbackv1alpha1.ValidPostStatuses, v) { + if !slices.Contains(feedbackv1alpha1.ValidPostStates, v) { errs = append(errs, field.NotSupported(field.NewPath("spec", "statusMapping").Key(k), v, - feedbackv1alpha1.ValidPostStatuses)) + feedbackv1alpha1.ValidPostStates)) } } for k, v := range spec.CategoryMapping { diff --git a/internal/registry/feedbacksource/strategy_test.go b/internal/registry/feedbacksource/strategy_test.go index b28c1c2..0935cbd 100644 --- a/internal/registry/feedbacksource/strategy_test.go +++ b/internal/registry/feedbacksource/strategy_test.go @@ -21,7 +21,7 @@ func validSource() *feedbackv1alpha1.FeedbackSource { Milestones: &feedbackv1alpha1.MilestoneSource{Repository: "enhancements"}, Changelog: &feedbackv1alpha1.ChangelogSource{Repository: "datum", DiscussionCategory: "changelog"}, }, - StatusMapping: map[string]feedbackv1alpha1.PostStatus{"": "none", "In Progress": "in-progress", "Done": "shipped"}, + StatusMapping: map[string]feedbackv1alpha1.PostState{"": "none", "In Progress": "in-progress", "Done": "shipped"}, CategoryMapping: map[string]string{"Build": "build"}, }, } diff --git a/pkg/apis/feedback/v1alpha1/attachmentupload_types.go b/pkg/apis/feedback/v1alpha1/attachmentupload_types.go new file mode 100644 index 0000000..8f2bed9 --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/attachmentupload_types.go @@ -0,0 +1,72 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// AttachmentPurpose says what an upload will be attached to. Security report +// uploads are stored under a separate prefix that only the reporter and the +// Security Team can read. +// +enum +type AttachmentPurpose string + +const ( + AttachmentPurposeSubmission AttachmentPurpose = "Submission" + AttachmentPurposeSecurityReport AttachmentPurpose = "SecurityReport" +) + +// +genclient +// +genclient:nonNamespaced +// +genclient:onlyVerbs=create +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// AttachmentUpload stores a file in private object storage and returns a +// reference to use in a Submission or SecurityReport. Create it in the user +// context before creating the resource that uses it. It is not stored as an +// API object; the file is only served back to its uploader and staff (or the +// Security Team, for security reports). +// +// The design proposed attachments subresources on submissions and security +// reports, but a subresource needs its parent to exist first. Uploads happen +// before the parent is created, so they are a create-only resource instead. +type AttachmentUpload struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec AttachmentUploadSpec `json:"spec"` + Status AttachmentUploadStatus `json:"status,omitempty"` +} + +// AttachmentUploadSpec is the file. +type AttachmentUploadSpec struct { + Purpose AttachmentPurpose `json:"purpose"` + // Name is the file name. + Name string `json:"name"` + // ContentType must be an allowed type, e.g. image/png or text/plain. + ContentType string `json:"contentType"` + // Data is the file content, base64-encoded in JSON. Size limits apply. + Data []byte `json:"data"` +} + +// AttachmentUploadStatus identifies the stored file. +type AttachmentUploadStatus struct { + // UploadRef goes in AttachmentReference.uploadRef. + // +optional + UploadRef string `json:"uploadRef,omitempty"` + // +optional + Size int64 `json:"size,omitempty"` + // SHA256 is the hex digest of the content. + // +optional + SHA256 string `json:"sha256,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// AttachmentUploadList is required by the API machinery; uploads cannot be +// listed. +type AttachmentUploadList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []AttachmentUpload `json:"items"` +} diff --git a/pkg/apis/feedback/v1alpha1/common_types.go b/pkg/apis/feedback/v1alpha1/common_types.go new file mode 100644 index 0000000..1533380 --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/common_types.go @@ -0,0 +1,41 @@ +package v1alpha1 + +// Client is the surface a request came from. +// +enum +type Client string + +const ( + ClientWebsite Client = "website" + ClientPortal Client = "portal" + ClientDatumctl Client = "datumctl" + ClientPatch Client = "patch" + // ClientEmail and ClientGitHub are only used for security reports the + // Security Team logs on behalf of an external reporter. + ClientEmail Client = "email" + ClientGitHub Client = "github" +) + +// PostReference names a Post. +type PostReference struct { + // Name of the Post, e.g. datum-cloud.enhancements.912. + Name string `json:"name"` +} + +// AttachmentReference points at a file uploaded with an AttachmentUpload. +type AttachmentReference struct { + // Name is the file name shown to reviewers. + Name string `json:"name"` + // ContentType is the file's media type. + // +optional + ContentType string `json:"contentType,omitempty"` + // UploadRef is status.uploadRef from the AttachmentUpload. + UploadRef string `json:"uploadRef"` +} + +// GitHubLink identifies a GitHub issue, milestone or discussion. +type GitHubLink struct { + // URL is the HTML URL on github.com. + URL string `json:"url"` + // Number is the issue, milestone or discussion number. + Number int32 `json:"number"` +} diff --git a/pkg/apis/feedback/v1alpha1/feedbacksource_types.go b/pkg/apis/feedback/v1alpha1/feedbacksource_types.go index 92c416c..ed3ba6b 100644 --- a/pkg/apis/feedback/v1alpha1/feedbacksource_types.go +++ b/pkg/apis/feedback/v1alpha1/feedbacksource_types.go @@ -4,31 +4,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -// PostStatus is the public status of a post, derived from the Enhancements -// project's Status field and the issue state. -type PostStatus string - -const ( - PostStatusNone PostStatus = "none" - PostStatusBacklog PostStatus = "backlog" - PostStatusPlanning PostStatus = "planning" - PostStatusOnDeck PostStatus = "on-deck" - PostStatusInProgress PostStatus = "in-progress" - PostStatusShipped PostStatus = "shipped" - PostStatusClosed PostStatus = "closed" -) - -// ValidPostStatuses lists every PostStatus value. -var ValidPostStatuses = []PostStatus{ - PostStatusNone, - PostStatusBacklog, - PostStatusPlanning, - PostStatusOnDeck, - PostStatusInProgress, - PostStatusShipped, - PostStatusClosed, -} - // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -53,7 +28,7 @@ type FeedbackSourceSpec struct { // StatusMapping maps Enhancements project Status option names to post // statuses. The empty key matches items with no Status set. // +optional - StatusMapping map[string]PostStatus `json:"statusMapping,omitempty"` + StatusMapping map[string]PostState `json:"statusMapping,omitempty"` // CategoryMapping maps GitHub label names to post categories. // +optional diff --git a/pkg/apis/feedback/v1alpha1/post_types.go b/pkg/apis/feedback/v1alpha1/post_types.go new file mode 100644 index 0000000..294b9d5 --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/post_types.go @@ -0,0 +1,251 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// PostState is the public status of a post, derived from the Enhancements +// project's Status field and the issue state. +// +enum +type PostState string + +const ( + PostStateNone PostState = "none" + PostStateBacklog PostState = "backlog" + PostStatePlanning PostState = "planning" + PostStateOnDeck PostState = "on-deck" + PostStateInProgress PostState = "in-progress" + PostStateShipped PostState = "shipped" + PostStateClosed PostState = "closed" +) + +// ValidPostStates lists every PostState value. +var ValidPostStates = []PostState{ + PostStateNone, + PostStateBacklog, + PostStatePlanning, + PostStateOnDeck, + PostStateInProgress, + PostStateShipped, + PostStateClosed, +} + +// DeliveryStage is where a post is in delivery. Stages are ordered +// requested < planned < picked-up < released; closed is terminal. +// +enum +type DeliveryStage string + +const ( + DeliveryStageRequested DeliveryStage = "requested" + DeliveryStagePlanned DeliveryStage = "planned" + DeliveryStagePickedUp DeliveryStage = "picked-up" + DeliveryStageReleased DeliveryStage = "released" + DeliveryStageClosed DeliveryStage = "closed" +) + +// ValidDeliveryStages lists every DeliveryStage value. +var ValidDeliveryStages = []DeliveryStage{ + DeliveryStageRequested, + DeliveryStagePlanned, + DeliveryStagePickedUp, + DeliveryStageReleased, + DeliveryStageClosed, +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// Post is a public roadmap item synced from a GitHub issue. Every Post is +// backed by a GitHub issue; unreviewed feedback is a Submission, never a Post. +// +// The name is "..", e.g. datum-cloud.enhancements.912. +// +// Only the feedback-sync service account creates, updates and deletes posts +// and writes their status. Staff can only patch spec.hidden. Everyone else can +// read them. +type Post struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec PostSpec `json:"spec,omitempty"` + Status PostStatus `json:"status,omitempty"` +} + +// PostSpec holds the fields staff control. +type PostSpec struct { + // Hidden removes the post from every client and from search. + // +optional + Hidden bool `json:"hidden,omitempty"` +} + +// PostStatus holds the fields synced from GitHub and derived by the service. +type PostStatus struct { + // Title is the issue title. + // +optional + Title string `json:"title,omitempty"` + // Summary is a plain-text excerpt of the body. + // +optional + Summary string `json:"summary,omitempty"` + // BodyHTML is the issue body, sanitised against an allow-list. + // +optional + BodyHTML string `json:"bodyHTML,omitempty"` + // State is the public status, mapped from the Enhancements project. + // +optional + State PostState `json:"state,omitempty"` + // Categories are mapped from labels by the FeedbackSource. + // +optional + // +listType=set + Categories []string `json:"categories,omitempty"` + // Labels are the issue's GitHub labels. + // +optional + // +listType=set + Labels []string `json:"labels,omitempty"` + // IssueType is the GitHub issue type, e.g. Enhancement. + // +optional + IssueType string `json:"issueType,omitempty"` + // GitHub identifies the backing issue. + // +optional + GitHub *GitHubIssue `json:"github,omitempty"` + // Release is the name of the Release whose milestone the issue is on. + // +optional + Release string `json:"release,omitempty"` + // Votes are the vote totals. + // +optional + Votes PostVotes `json:"votes,omitempty"` + // PublicVoters are up to 10 voters who opted in to showing their votes. + // +optional + // +listType=atomic + PublicVoters []PublicVoter `json:"publicVoters,omitempty"` + // Delivery tracks the post from request to release. + // +optional + Delivery *DeliveryStatus `json:"delivery,omitempty"` + // LastSyncedAt is when feedback-sync last wrote this post. + // +optional + LastSyncedAt *metav1.Time `json:"lastSyncedAt,omitempty"` +} + +// GitHubIssue identifies the issue backing a post. +type GitHubIssue struct { + Org string `json:"org"` + Repository string `json:"repository"` + Number int32 `json:"number"` + URL string `json:"url"` + // State is "open" or "closed". + State string `json:"state"` + // StateReason is GitHub's close reason: "completed" or "not_planned". + // +optional + StateReason string `json:"stateReason,omitempty"` + // +optional + CreatedAt metav1.Time `json:"createdAt,omitempty"` + // +optional + UpdatedAt metav1.Time `json:"updatedAt,omitempty"` +} + +// PostVotes are vote totals for a post. +type PostVotes struct { + // Total is Datum votes plus GitHub 👍, minus people matched as doing both. + // +optional + Total int32 `json:"total,omitempty"` + // Datum is the number of Vote resources. + // +optional + Datum int32 `json:"datum,omitempty"` + // GitHub is the 👍 reaction count on the issue. + // +optional + GitHub int32 `json:"github,omitempty"` + // TrendingScore weights votes with a 7-day half-life. + // +optional + TrendingScore float64 `json:"trendingScore,omitempty"` +} + +// PublicVoter is a voter who opted in to being shown. +type PublicVoter struct { + DisplayName string `json:"displayName"` + // +optional + AvatarURL string `json:"avatarURL,omitempty"` +} + +// DeliveryStatus tracks a post's delivery stage and the work behind it. +type DeliveryStatus struct { + // Stage is the highest stage whose condition currently holds. + // +optional + Stage DeliveryStage `json:"stage,omitempty"` + // HighestNotified is the highest stage announced to followers. A stage is + // only announced when it passes this one. + // +optional + HighestNotified DeliveryStage `json:"highestNotified,omitempty"` + // History records each stage change. + // +optional + // +listType=atomic + History []DeliveryEvent `json:"history,omitempty"` + // Work is the related work behind the post. + // +optional + Work *DeliveryWork `json:"work,omitempty"` +} + +// DeliveryEvent is one stage change. +type DeliveryEvent struct { + Stage DeliveryStage `json:"stage"` + At metav1.Time `json:"at"` + // Cause describes what moved the stage, e.g. a pull request opening. + // +optional + Cause string `json:"cause,omitempty"` +} + +// DeliveryWork summarises sub-issues and linked pull requests. Only public +// issues and pull requests are included. +type DeliveryWork struct { + // Total and Done count sub-issues when there are any, otherwise linked + // pull requests. + // +optional + Total int32 `json:"total,omitempty"` + // +optional + Done int32 `json:"done,omitempty"` + // +optional + // +listType=atomic + Items []WorkItem `json:"items,omitempty"` + // PartShipped records changelog entries that shipped part of the work. + // +optional + // +listType=atomic + PartShipped []PartShipped `json:"partShipped,omitempty"` +} + +// WorkItem is a sub-issue or linked pull request. +type WorkItem struct { + // Kind is "issue" or "pullRequest". + Kind string `json:"kind"` + // Ref is "/#". + Ref string `json:"ref"` + Title string `json:"title,omitempty"` + // State is "open", "closed" or "merged". + State string `json:"state"` + URL string `json:"url,omitempty"` + // PullRequests are the pull requests that close this issue. + // +optional + // +listType=atomic + PullRequests []PullRequestRef `json:"pullRequests,omitempty"` +} + +// PullRequestRef is a pull request linked to a work item. +type PullRequestRef struct { + Ref string `json:"ref"` + State string `json:"state"` +} + +// PartShipped records a changelog entry that linked a work item before the +// post itself was released. +type PartShipped struct { + // Changelog is the ChangelogEntry name. + Changelog string `json:"changelog"` + At metav1.Time `json:"at"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// PostList is a list of Post. +type PostList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []Post `json:"items"` +} diff --git a/pkg/apis/feedback/v1alpha1/postquery_types.go b/pkg/apis/feedback/v1alpha1/postquery_types.go new file mode 100644 index 0000000..c63d3cc --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/postquery_types.go @@ -0,0 +1,153 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// PostSort orders PostQuery results. +// +enum +type PostSort string + +const ( + // PostSortTop sorts by votes.total, highest first. + PostSortTop PostSort = "top" + // PostSortNewest sorts by GitHub createdAt, newest first. + PostSortNewest PostSort = "newest" + // PostSortTrending sorts by votes.trendingScore. + PostSortTrending PostSort = "trending" + // PostSortRelevance is the default when text or similarTo is set. + PostSortRelevance PostSort = "relevance" + // PostSortRecentlyChanged sorts by the latest delivery history entry. + PostSortRecentlyChanged PostSort = "recentlyChanged" +) + +// ValidPostSorts lists every PostSort value. +var ValidPostSorts = []PostSort{ + PostSortTop, + PostSortNewest, + PostSortTrending, + PostSortRelevance, + PostSortRecentlyChanged, +} + +// +genclient +// +genclient:nonNamespaced +// +genclient:onlyVerbs=create +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// PostQuery searches, filters and sorts posts. Create it and read the results +// from status; it is not stored. +// +// apiVersion: feedback.miloapis.com/v1alpha1 +// kind: PostQuery +// spec: +// text: wildcard hostnames +// filter: +// state: [planning, on-deck, in-progress] +// sort: top +// limit: 20 +type PostQuery struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec PostQuerySpec `json:"spec"` + Status PostQueryStatus `json:"status,omitempty"` +} + +// PostQuerySpec describes the query. +type PostQuerySpec struct { + // Text is a keyword search, answered by the search service. + // +optional + Text string `json:"text,omitempty"` + // SimilarTo is draft feedback text. Results are posts with similar + // embeddings, for duplicate checks. + // +optional + SimilarTo string `json:"similarTo,omitempty"` + // Filter narrows the results. + // +optional + Filter PostQueryFilter `json:"filter,omitempty"` + // Sort orders the results. Defaults to relevance when text or similarTo is + // set, otherwise top. + // +optional + Sort PostSort `json:"sort,omitempty"` + // Limit is the page size. + // +optional + Limit int32 `json:"limit,omitempty"` + // Continue is status.continue from the previous page. + // +optional + Continue string `json:"continue,omitempty"` + // Facets names the fields to count values for: state, categories, orgs or + // deliveryStage. + // +optional + // +listType=set + Facets []string `json:"facets,omitempty"` +} + +// PostQueryFilter narrows PostQuery results. Every set field must match. +type PostQueryFilter struct { + // +optional + // +listType=set + State []PostState `json:"state,omitempty"` + // +optional + // +listType=set + Categories []string `json:"categories,omitempty"` + // Orgs filters by GitHub organization. + // +optional + // +listType=set + Orgs []string `json:"orgs,omitempty"` + // +optional + // +listType=set + DeliveryStage []DeliveryStage `json:"deliveryStage,omitempty"` + // VotedByMe keeps posts the caller voted on. User context only. + // +optional + VotedByMe bool `json:"votedByMe,omitempty"` + // FollowedByMe keeps posts the caller follows. User context only. + // +optional + FollowedByMe bool `json:"followedByMe,omitempty"` +} + +// PostQueryStatus carries the results. +type PostQueryStatus struct { + // +optional + // +listType=atomic + Results []PostQueryResult `json:"results,omitempty"` + // Facets maps each requested field to value counts. + // +optional + Facets map[string]map[string]int32 `json:"facets,omitempty"` + // Continue fetches the next page. Empty on the last page. + // +optional + Continue string `json:"continue,omitempty"` +} + +// PostQueryResult is one post in the results. +type PostQueryResult struct { + // Name is the Post name. + Name string `json:"name"` + Title string `json:"title"` + // +optional + State PostState `json:"state,omitempty"` + // +optional + // +listType=set + Categories []string `json:"categories,omitempty"` + // +optional + Votes PostVotes `json:"votes,omitempty"` + // +optional + DeliveryStage DeliveryStage `json:"deliveryStage,omitempty"` + // VotedByMe is set in the user context. + // +optional + VotedByMe bool `json:"votedByMe,omitempty"` + // Score is the relevance or similarity score, when text or similarTo is + // used. + // +optional + Score *float64 `json:"score,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// PostQueryList is required by the API machinery; PostQuery cannot be listed. +type PostQueryList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []PostQuery `json:"items"` +} diff --git a/pkg/apis/feedback/v1alpha1/register.go b/pkg/apis/feedback/v1alpha1/register.go index e2c8e78..42f382c 100644 --- a/pkg/apis/feedback/v1alpha1/register.go +++ b/pkg/apis/feedback/v1alpha1/register.go @@ -2,6 +2,7 @@ package v1alpha1 import ( "fmt" + "slices" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -31,20 +32,58 @@ func Resource(resource string) schema.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } +// KnownTypes lists every object type in the group. The apiserver also +// registers these as the internal version. +func KnownTypes() []runtime.Object { + return []runtime.Object{ + &FeedbackSource{}, &FeedbackSourceList{}, + &Post{}, &PostList{}, + &PostQuery{}, &PostQueryList{}, + &Vote{}, &VoteList{}, + &Subscription{}, &SubscriptionList{}, + &Submission{}, &SubmissionList{}, + &SubmissionReview{}, + &SubmissionToSecurityReport{}, + &SecurityReport{}, &SecurityReportList{}, + &SecurityAcknowledgement{}, &SecurityAcknowledgementList{}, + &Release{}, &ReleaseList{}, + &ChangelogEntry{}, &ChangelogEntryList{}, + &AttachmentUpload{}, &AttachmentUploadList{}, + } +} + +// FieldSelectors lists the field selectors each kind supports, beyond +// metadata.name. Registries must expose the same fields from GetAttrs. +var FieldSelectors = map[string][]string{ + "FeedbackSource": {"spec.github.org"}, + "Post": {"spec.hidden", "status.state", "status.github.org", "status.github.repository", "status.release"}, + "Vote": {"spec.postRef.name"}, + "Subscription": {"spec.postRef.name", "spec.reason"}, + "Submission": {"spec.kind", "status.phase"}, + "SecurityReport": {"status.phase", "status.severity"}, + "Release": {"status.shipped"}, +} + func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &FeedbackSource{}, - &FeedbackSourceList{}, - ) + scheme.AddKnownTypes(SchemeGroupVersion, KnownTypes()...) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return scheme.AddFieldLabelConversionFunc(SchemeGroupVersion.WithKind("FeedbackSource"), feedbackSourceFieldLabel) + return AddFieldLabelConversions(scheme, SchemeGroupVersion) } -// feedbackSourceFieldLabel lists the field selectors FeedbackSource supports. -func feedbackSourceFieldLabel(label, value string) (string, string, error) { - switch label { - case "metadata.name", "spec.github.org": - return label, value, nil +// AddFieldLabelConversions registers FieldSelectors for gv. The apiserver +// calls it again for the internal version. +func AddFieldLabelConversions(scheme *runtime.Scheme, gv schema.GroupVersion) error { + for kind, fields := range FieldSelectors { + allowed := append([]string{"metadata.name"}, fields...) + err := scheme.AddFieldLabelConversionFunc(gv.WithKind(kind), func(label, value string) (string, string, error) { + if slices.Contains(allowed, label) { + return label, value, nil + } + return "", "", fmt.Errorf("field label not supported for %s: %s (supported: %v)", kind, label, allowed) + }) + if err != nil { + return err + } } - return "", "", fmt.Errorf("field label not supported: %s", label) + return nil } diff --git a/pkg/apis/feedback/v1alpha1/register_test.go b/pkg/apis/feedback/v1alpha1/register_test.go new file mode 100644 index 0000000..26ca534 --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/register_test.go @@ -0,0 +1,78 @@ +package v1alpha1_test + +import ( + "os" + "path/filepath" + "reflect" + "strings" + "testing" + + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/serializer/json" + + "go.miloapis.com/feedback/pkg/apis/feedback/install" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" +) + +func newScheme(t *testing.T) *runtime.Scheme { + t.Helper() + s := runtime.NewScheme() + install.Install(s) + return s +} + +// TestSamplesDecodeStrictly decodes every sample with unknown and duplicate +// fields rejected, so the samples can't drift from the types. Every top-level +// kind except list types needs a sample. +func TestSamplesDecodeStrictly(t *testing.T) { + scheme := newScheme(t) + dec := json.NewSerializerWithOptions(json.DefaultMetaFactory, scheme, scheme, + json.SerializerOptions{Yaml: true, Strict: true}) + + files, err := filepath.Glob("../../../../config/samples/*.yaml") + if err != nil || len(files) == 0 { + t.Fatalf("no samples found: %v", err) + } + seen := map[string]bool{} + for _, f := range files { + t.Run(filepath.Base(f), func(t *testing.T) { + data, err := os.ReadFile(f) + if err != nil { + t.Fatal(err) + } + _, gvk, err := dec.Decode(data, nil, nil) + if err != nil { + t.Fatalf("decode: %v", err) + } + seen[gvk.Kind] = true + }) + } + for _, obj := range feedbackv1alpha1.KnownTypes() { + kind := reflect.TypeOf(obj).Elem().Name() + if strings.HasSuffix(kind, "List") { + continue + } + if !seen[kind] { + t.Errorf("no sample in config/samples for %s", kind) + } + } +} + +func TestFieldSelectors(t *testing.T) { + scheme := newScheme(t) + for kind, fields := range feedbackv1alpha1.FieldSelectors { + gvk := feedbackv1alpha1.SchemeGroupVersion.WithKind(kind) + if !scheme.Recognizes(gvk) { + t.Errorf("FieldSelectors names unknown kind %s", kind) + continue + } + for _, f := range append([]string{"metadata.name"}, fields...) { + if _, _, err := scheme.ConvertFieldLabel(gvk, f, "x"); err != nil { + t.Errorf("%s: %s rejected: %v", kind, f, err) + } + } + if _, _, err := scheme.ConvertFieldLabel(gvk, "spec.nope", "x"); err == nil { + t.Errorf("%s: unknown field accepted", kind) + } + } +} diff --git a/pkg/apis/feedback/v1alpha1/release_types.go b/pkg/apis/feedback/v1alpha1/release_types.go new file mode 100644 index 0000000..7ad24ef --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/release_types.go @@ -0,0 +1,111 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// Release maps to a milestone in the FeedbackSource's milestones repository. +// Only feedback-sync writes releases; everyone can read them. +type Release struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Status ReleaseStatus `json:"status,omitempty"` +} + +// ReleaseStatus is synced from the milestone. +type ReleaseStatus struct { + // Title is the milestone title, e.g. "Hedy: 2.0". + Title string `json:"title"` + // +optional + Codename string `json:"codename,omitempty"` + // +optional + Version string `json:"version,omitempty"` + // DueOn is the milestone due date, as YYYY-MM-DD. + // +optional + DueOn string `json:"dueOn,omitempty"` + // Shipped is set when the milestone is closed. + // +optional + Shipped bool `json:"shipped,omitempty"` + // +optional + DescriptionHTML string `json:"descriptionHTML,omitempty"` + // CoverImage is a key into the website's static assets. + // +optional + CoverImage string `json:"coverImage,omitempty"` + // Posts are the names of posts on the milestone. + // +optional + // +listType=set + Posts []string `json:"posts,omitempty"` + // +optional + GitHub *GitHubLink `json:"github,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ReleaseList is a list of Release. +type ReleaseList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []Release `json:"items"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ChangelogEntry maps to a discussion in the FeedbackSource's changelog +// category. Only feedback-sync writes entries; everyone can read them. +type ChangelogEntry struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Status ChangelogEntryStatus `json:"status,omitempty"` +} + +// ChangelogEntryStatus is synced from the discussion. +type ChangelogEntryStatus struct { + Title string `json:"title"` + PublishedAt metav1.Time `json:"publishedAt"` + // Categories are mapped from discussion labels. + // +optional + // +listType=set + Categories []string `json:"categories,omitempty"` + // BodyHTML is the discussion body, sanitised like post bodies. + // +optional + BodyHTML string `json:"bodyHTML,omitempty"` + // Posts are the names of posts referenced in the body. + // +optional + // +listType=set + Posts []string `json:"posts,omitempty"` + // IssueRefs are every issue referenced in the body, as + // "/#". A reference to a post's work item rather than + // the post marks that post part-shipped. + // +optional + // +listType=set + IssueRefs []string `json:"issueRefs,omitempty"` + // +optional + Reactions ChangelogReactions `json:"reactions,omitempty"` + // +optional + GitHub *GitHubLink `json:"github,omitempty"` +} + +// ChangelogReactions are reaction counts on the discussion. +type ChangelogReactions struct { + // +optional + ThumbsUp int32 `json:"thumbsUp,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// ChangelogEntryList is a list of ChangelogEntry. +type ChangelogEntryList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []ChangelogEntry `json:"items"` +} diff --git a/pkg/apis/feedback/v1alpha1/securityreport_types.go b/pkg/apis/feedback/v1alpha1/securityreport_types.go new file mode 100644 index 0000000..37f30f3 --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/securityreport_types.go @@ -0,0 +1,238 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// SecurityReportPhase is where a report is in handling. +// +enum +type SecurityReportPhase string + +const ( + SecurityReportPhaseReceived SecurityReportPhase = "Received" + SecurityReportPhaseTriaged SecurityReportPhase = "Triaged" + SecurityReportPhaseFixing SecurityReportPhase = "Fixing" + SecurityReportPhaseFixed SecurityReportPhase = "Fixed" + SecurityReportPhaseDisclosed SecurityReportPhase = "Disclosed" + SecurityReportPhaseNotApplicable SecurityReportPhase = "NotApplicable" + SecurityReportPhaseDuplicate SecurityReportPhase = "Duplicate" +) + +// Severity is the Security Team's rating. +// +enum +type Severity string + +const ( + SeverityCritical Severity = "critical" + SeverityHigh Severity = "high" + SeverityMedium Severity = "medium" + SeverityLow Severity = "low" + SeverityInformational Severity = "informational" +) + +// RewardKind is how a reporter is thanked. +// +enum +type RewardKind string + +const ( + RewardKindNone RewardKind = "none" + RewardKindThanks RewardKind = "thanks" + RewardKindSwag RewardKind = "swag" + RewardKindCredits RewardKind = "credits" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SecurityReport is a private vulnerability report. Reporters create and read +// their own in the user context, without status.internal. Only the Security +// Team role can list reports and write status. Reports are never synced to +// GitHub, embedded, indexed or sent to the AI gateway, and are audited at +// Metadata level only. +type SecurityReport struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec SecurityReportSpec `json:"spec"` + Status SecurityReportStatus `json:"status,omitempty"` +} + +// SecurityReportSpec is what the reporter submitted. +type SecurityReportSpec struct { + Title string `json:"title"` + Description string `json:"description"` + // Affected is free text that helps routing, e.g. "connectors". + // +optional + Affected string `json:"affected,omitempty"` + // +optional + StepsToReproduce string `json:"stepsToReproduce,omitempty"` + // +optional + Impact string `json:"impact,omitempty"` + // Attachments reference files uploaded with AttachmentUpload for a + // security report. + // +optional + // +listType=atomic + Attachments []AttachmentReference `json:"attachments,omitempty"` + // Credit is how the reporter wants to be credited. + // +optional + Credit *SecurityCredit `json:"credit,omitempty"` + // Reporter is set only on reports the Security Team logs for someone + // without a Datum account (from email or GitHub private reporting). + // +optional + Reporter *ExternalReporter `json:"reporter,omitempty"` + // +optional + Context SecurityReportContext `json:"context,omitempty"` +} + +// SecurityCredit is the reporter's credit preference. +type SecurityCredit struct { + // Public lists the reporter on the acknowledgements page once the report + // is Fixed or Disclosed. + // +optional + Public bool `json:"public,omitempty"` + // +optional + Name string `json:"name,omitempty"` + // +optional + URL string `json:"url,omitempty"` +} + +// ExternalReporter identifies a reporter outside Datum. +type ExternalReporter struct { + // +optional + Email string `json:"email,omitempty"` + // +optional + GitHubLogin string `json:"githubLogin,omitempty"` +} + +// SecurityReportContext is where the report came from. +type SecurityReportContext struct { + // +optional + Client Client `json:"client,omitempty"` + // FiledByAgent is set when an agent (Patch, non-interactive datumctl) + // filed the report. + // +optional + FiledByAgent bool `json:"filedByAgent,omitempty"` + // +optional + Organization string `json:"organization,omitempty"` + // +optional + ClientVersion string `json:"clientVersion,omitempty"` +} + +// SecurityReportStatus is written by the Security Team. +type SecurityReportStatus struct { + // +optional + Phase SecurityReportPhase `json:"phase,omitempty"` + // +optional + Severity Severity `json:"severity,omitempty"` + // +optional + CVSSVector string `json:"cvssVector,omitempty"` + // Reason is shown to the reporter for NotApplicable and Duplicate. + // +optional + Reason string `json:"reason,omitempty"` + // Timeline is visible to the reporter. + // +optional + // +listType=atomic + Timeline []SecurityTimelineEntry `json:"timeline,omitempty"` + // +optional + Advisory *SecurityAdvisory `json:"advisory,omitempty"` + // +optional + Reward *SecurityReward `json:"reward,omitempty"` + // Internal is visible to the Security Team only. + // +optional + Internal *SecurityReportInternal `json:"internal,omitempty"` +} + +// SecurityTimelineEntry is one phase change. +type SecurityTimelineEntry struct { + Phase SecurityReportPhase `json:"phase"` + At metav1.Time `json:"at"` + // +optional + Note string `json:"note,omitempty"` +} + +// SecurityAdvisory is the published advisory. +type SecurityAdvisory struct { + // +optional + URL string `json:"url,omitempty"` + // +optional + CVE string `json:"cve,omitempty"` +} + +// SecurityReward records how the reporter was thanked. +type SecurityReward struct { + Kind RewardKind `json:"kind"` + // Amount is the credit amount, for kind credits. + // +optional + Amount string `json:"amount,omitempty"` + // CreditGrantRef names the billing CreditGrant, for kind credits. + // +optional + CreditGrantRef *CreditGrantReference `json:"creditGrantRef,omitempty"` + // +optional + GrantedAt *metav1.Time `json:"grantedAt,omitempty"` +} + +// CreditGrantReference names a billing.miloapis.com CreditGrant. +type CreditGrantReference struct { + Name string `json:"name"` +} + +// SecurityReportInternal is Security Team only. +type SecurityReportInternal struct { + // +optional + Assignee string `json:"assignee,omitempty"` + // DuplicateOf is the name of the original report. + // +optional + DuplicateOf string `json:"duplicateOf,omitempty"` + // Tracking links the private issue or draft advisory for the fix. + // +optional + Tracking string `json:"tracking,omitempty"` + // +optional + Notes string `json:"notes,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SecurityReportList is a list of SecurityReport. +type SecurityReportList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []SecurityReport `json:"items"` +} + +// +genclient +// +genclient:nonNamespaced +// +genclient:onlyVerbs=get,list +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SecurityAcknowledgement is a read-only public credit for a fixed or +// disclosed SecurityReport whose reporter chose public credit. It holds only +// what the acknowledgements page shows. +type SecurityAcknowledgement struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Status SecurityAcknowledgementStatus `json:"status,omitempty"` +} + +// SecurityAcknowledgementStatus is the public credit. +type SecurityAcknowledgementStatus struct { + Name string `json:"name"` + // +optional + URL string `json:"url,omitempty"` + // Month is when the report was fixed, as YYYY-MM. + Month string `json:"month"` + // +optional + Severity Severity `json:"severity,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SecurityAcknowledgementList is a list of SecurityAcknowledgement. +type SecurityAcknowledgementList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []SecurityAcknowledgement `json:"items"` +} diff --git a/pkg/apis/feedback/v1alpha1/submission_types.go b/pkg/apis/feedback/v1alpha1/submission_types.go new file mode 100644 index 0000000..ce4120f --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/submission_types.go @@ -0,0 +1,217 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// SubmissionKind is what the submitter says the feedback is. +// +enum +type SubmissionKind string + +const ( + SubmissionKindIdea SubmissionKind = "idea" + SubmissionKindBug SubmissionKind = "bug" + SubmissionKindOther SubmissionKind = "other" +) + +// SubmissionPhase is where a submission is in review. +// +enum +type SubmissionPhase string + +const ( + SubmissionPhasePendingReview SubmissionPhase = "PendingReview" + SubmissionPhaseApproved SubmissionPhase = "Approved" + SubmissionPhaseMerged SubmissionPhase = "Merged" + SubmissionPhaseRejected SubmissionPhase = "Rejected" +) + +// ReviewDecision is a staff decision on a submission. +// +enum +type ReviewDecision string + +const ( + // ReviewDecisionApproved creates a public issue from the submission. + ReviewDecisionApproved ReviewDecision = "Approved" + // ReviewDecisionMerged adds the submitter to an existing post. + ReviewDecisionMerged ReviewDecision = "Merged" + // ReviewDecisionRejected closes the submission with a reason. + ReviewDecisionRejected ReviewDecision = "Rejected" +) + +// +genclient +// +genclient:nonNamespaced +// +genclient:method=Review,verb=create,subresource=review,input=SubmissionReview,result=Submission +// +genclient:method=ToSecurityReport,verb=create,subresource=to-security-report,input=SubmissionToSecurityReport,result=SecurityReport +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// Submission is private feedback waiting for a staff decision. Submitters +// create and read their own in the user context; staff list and review them +// in the platform context. Nothing in a submission reaches GitHub unless staff +// approve it, and then only the staff-edited public title and body. +type Submission struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec SubmissionSpec `json:"spec"` + Status SubmissionStatus `json:"status,omitempty"` +} + +// SubmissionSpec is what the user submitted. +type SubmissionSpec struct { + Kind SubmissionKind `json:"kind"` + Title string `json:"title"` + Body string `json:"body"` + // Attachments reference files uploaded with AttachmentUpload. + // +optional + // +listType=atomic + Attachments []AttachmentReference `json:"attachments,omitempty"` + // Context is filled by the client and never sent to GitHub. + // +optional + Context SubmissionContext `json:"context,omitempty"` +} + +// SubmissionContext is private context about where the feedback came from. +type SubmissionContext struct { + // +optional + Client Client `json:"client,omitempty"` + // +optional + PageURL string `json:"pageURL,omitempty"` + // +optional + Organization string `json:"organization,omitempty"` + // +optional + Project string `json:"project,omitempty"` + // RequestIDs are recent API request IDs, for debugging. + // +optional + // +listType=atomic + RequestIDs []string `json:"requestIDs,omitempty"` + // ClientVersion is e.g. cloud-portal@2026.10.1. + // +optional + ClientVersion string `json:"clientVersion,omitempty"` +} + +// SubmissionStatus is written by the server, feedback-controller, +// feedback-sync and the review subresource. Submitters see phase, postRef and +// review.reason only. +type SubmissionStatus struct { + // +optional + Phase SubmissionPhase `json:"phase,omitempty"` + // Triage is advisory, written by feedback-controller. Staff only. + // +optional + Triage *SubmissionTriage `json:"triage,omitempty"` + // Review is the staff decision, written through the review subresource. + // +optional + Review *SubmissionReviewOutcome `json:"review,omitempty"` + // PostRef is the post the submission became or was merged into. Set by + // feedback-sync once the post syncs. + // +optional + PostRef *PostReference `json:"postRef,omitempty"` +} + +// SubmissionTriage is the controller's advisory triage. +type SubmissionTriage struct { + // +optional + // +listType=set + SuggestedCategories []string `json:"suggestedCategories,omitempty"` + // +optional + SuggestedKind SubmissionKind `json:"suggestedKind,omitempty"` + // +optional + // +listType=atomic + SimilarPosts []SimilarPost `json:"similarPosts,omitempty"` + // DraftIssue is a public title and body with private details stripped. + // +optional + DraftIssue *DraftIssue `json:"draftIssue,omitempty"` + // FraudScore is from the fraud service, 0 to 1. + // +optional + FraudScore *float64 `json:"fraudScore,omitempty"` + // LikelySecurityIssue flags submissions that should be moved to the + // security track with the to-security-report subresource. + // +optional + LikelySecurityIssue bool `json:"likelySecurityIssue,omitempty"` +} + +// SimilarPost is a post that may cover the same feedback. +type SimilarPost struct { + Name string `json:"name"` + Score float64 `json:"score"` +} + +// DraftIssue is a proposed public issue. +type DraftIssue struct { + Title string `json:"title"` + Body string `json:"body"` +} + +// SubmissionReviewOutcome records the staff decision. +type SubmissionReviewOutcome struct { + // Reviewer is the staff member who decided. Staff only. + // +optional + Reviewer string `json:"reviewer,omitempty"` + Decision ReviewDecision `json:"decision"` + ReviewedAt metav1.Time `json:"reviewedAt"` + // PublicTitle and PublicBody are what goes to GitHub on approval. + // +optional + PublicTitle string `json:"publicTitle,omitempty"` + // +optional + PublicBody string `json:"publicBody,omitempty"` + // MergedInto is the post name when the decision is Merged. + // +optional + MergedInto string `json:"mergedInto,omitempty"` + // Reason is shown to the submitter when the decision is Rejected. + // +optional + Reason string `json:"reason,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SubmissionList is a list of Submission. +type SubmissionList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []Submission `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SubmissionReview is the body of a create on submissions/{name}/review. +// Only staff in the platform context can create one. The response is the +// updated Submission. +type SubmissionReview struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec SubmissionReviewSpec `json:"spec"` +} + +// SubmissionReviewSpec is the decision. +type SubmissionReviewSpec struct { + Decision ReviewDecision `json:"decision"` + // PublicTitle and PublicBody are required for Approved. They default to + // the triage draft in clients. + // +optional + PublicTitle string `json:"publicTitle,omitempty"` + // +optional + PublicBody string `json:"publicBody,omitempty"` + // MergedInto is required for Merged. + // +optional + MergedInto string `json:"mergedInto,omitempty"` + // Reason is required for Rejected and shown to the submitter. + // +optional + Reason string `json:"reason,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SubmissionToSecurityReport is the body of a create on +// submissions/{name}/to-security-report. It moves a misfiled submission to the +// security track: a SecurityReport is created from it, its attachments move, +// and the submission is deleted, in one transaction. The response is the new +// SecurityReport. +type SubmissionToSecurityReport struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // Affected optionally sets spec.affected on the new report. + // +optional + Affected string `json:"affected,omitempty"` +} diff --git a/pkg/apis/feedback/v1alpha1/subscription_types.go b/pkg/apis/feedback/v1alpha1/subscription_types.go new file mode 100644 index 0000000..8a440a7 --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/subscription_types.go @@ -0,0 +1,48 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// SubscriptionReason is why a user follows a post. +// +enum +type SubscriptionReason string + +const ( + SubscriptionReasonVoted SubscriptionReason = "voted" + SubscriptionReasonSubmitted SubscriptionReason = "submitted" + SubscriptionReasonMerged SubscriptionReason = "merged" + SubscriptionReasonManual SubscriptionReason = "manual" +) + +// +genclient +// +genclient:nonNamespaced +// +genclient:noStatus +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// Subscription links a user to a post they follow, in the user context. It is +// created when the user votes or their submission is approved or merged, and +// the user can delete it. The name must equal spec.postRef.name. +type Subscription struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec SubscriptionSpec `json:"spec"` +} + +// SubscriptionSpec identifies the post. +type SubscriptionSpec struct { + PostRef PostReference `json:"postRef"` + // +optional + Reason SubscriptionReason `json:"reason,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// SubscriptionList is a list of Subscription. +type SubscriptionList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []Subscription `json:"items"` +} diff --git a/pkg/apis/feedback/v1alpha1/vote_types.go b/pkg/apis/feedback/v1alpha1/vote_types.go new file mode 100644 index 0000000..f76654b --- /dev/null +++ b/pkg/apis/feedback/v1alpha1/vote_types.go @@ -0,0 +1,47 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// Vote is a user's vote on a post, in the user context. The name must equal +// spec.postRef.name, so a user votes at most once per post. Deleting the Vote +// removes the vote. Creating one also creates a Subscription to the post. +type Vote struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec VoteSpec `json:"spec"` + Status VoteStatus `json:"status,omitempty"` +} + +// VoteSpec identifies the post and where the vote came from. +type VoteSpec struct { + PostRef PostReference `json:"postRef"` + // Source is the client the vote was cast from. + // +optional + Source Client `json:"source,omitempty"` +} + +// VoteStatus is written by the server. +type VoteStatus struct { + // Organizations the voter belonged to when voting. Used for staff + // analytics and never public. + // +optional + // +listType=set + Organizations []string `json:"organizations,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VoteList is a list of Vote. +type VoteList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + + Items []Vote `json:"items"` +} diff --git a/pkg/apis/feedback/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/feedback/v1alpha1/zz_generated.deepcopy.go index aabf693..382ff54 100644 --- a/pkg/apis/feedback/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/feedback/v1alpha1/zz_generated.deepcopy.go @@ -11,43 +11,43 @@ import ( ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ChangelogSource) DeepCopyInto(out *ChangelogSource) { +func (in *AttachmentReference) DeepCopyInto(out *AttachmentReference) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangelogSource. -func (in *ChangelogSource) DeepCopy() *ChangelogSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentReference. +func (in *AttachmentReference) DeepCopy() *AttachmentReference { if in == nil { return nil } - out := new(ChangelogSource) + out := new(AttachmentReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeedbackSource) DeepCopyInto(out *FeedbackSource) { +func (in *AttachmentUpload) DeepCopyInto(out *AttachmentUpload) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeedbackSource. -func (in *FeedbackSource) DeepCopy() *FeedbackSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentUpload. +func (in *AttachmentUpload) DeepCopy() *AttachmentUpload { if in == nil { return nil } - out := new(FeedbackSource) + out := new(AttachmentUpload) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FeedbackSource) DeepCopyObject() runtime.Object { +func (in *AttachmentUpload) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -55,13 +55,13 @@ func (in *FeedbackSource) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeedbackSourceList) DeepCopyInto(out *FeedbackSourceList) { +func (in *AttachmentUploadList) DeepCopyInto(out *AttachmentUploadList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]FeedbackSource, len(*in)) + *out = make([]AttachmentUpload, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -69,18 +69,18 @@ func (in *FeedbackSourceList) DeepCopyInto(out *FeedbackSourceList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeedbackSourceList. -func (in *FeedbackSourceList) DeepCopy() *FeedbackSourceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentUploadList. +func (in *AttachmentUploadList) DeepCopy() *AttachmentUploadList { if in == nil { return nil } - out := new(FeedbackSourceList) + out := new(AttachmentUploadList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FeedbackSourceList) DeepCopyObject() runtime.Object { +func (in *AttachmentUploadList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -88,225 +88,1869 @@ func (in *FeedbackSourceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeedbackSourceSpec) DeepCopyInto(out *FeedbackSourceSpec) { +func (in *AttachmentUploadSpec) DeepCopyInto(out *AttachmentUploadSpec) { *out = *in - in.GitHub.DeepCopyInto(&out.GitHub) - if in.StatusMapping != nil { - in, out := &in.StatusMapping, &out.StatusMapping - *out = make(map[string]PostStatus, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.CategoryMapping != nil { - in, out := &in.CategoryMapping, &out.CategoryMapping - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } + if in.Data != nil { + in, out := &in.Data, &out.Data + *out = make([]byte, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeedbackSourceSpec. -func (in *FeedbackSourceSpec) DeepCopy() *FeedbackSourceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentUploadSpec. +func (in *AttachmentUploadSpec) DeepCopy() *AttachmentUploadSpec { if in == nil { return nil } - out := new(FeedbackSourceSpec) + out := new(AttachmentUploadSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeedbackSourceStatus) DeepCopyInto(out *FeedbackSourceStatus) { +func (in *AttachmentUploadStatus) DeepCopyInto(out *AttachmentUploadStatus) { *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]v1.Condition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.LastWebhookAt != nil { - in, out := &in.LastWebhookAt, &out.LastWebhookAt - *out = (*in).DeepCopy() - } - if in.LastReconcile != nil { - in, out := &in.LastReconcile, &out.LastReconcile - *out = new(ReconcileStatus) - (*in).DeepCopyInto(*out) - } - if in.RateLimit != nil { - in, out := &in.RateLimit, &out.RateLimit - *out = new(RateLimitStatus) - (*in).DeepCopyInto(*out) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeedbackSourceStatus. -func (in *FeedbackSourceStatus) DeepCopy() *FeedbackSourceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentUploadStatus. +func (in *AttachmentUploadStatus) DeepCopy() *AttachmentUploadStatus { if in == nil { return nil } - out := new(FeedbackSourceStatus) + out := new(AttachmentUploadStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitHubSource) DeepCopyInto(out *GitHubSource) { +func (in *ChangelogEntry) DeepCopyInto(out *ChangelogEntry) { *out = *in - in.Repositories.DeepCopyInto(&out.Repositories) - in.Issues.DeepCopyInto(&out.Issues) - if in.Project != nil { - in, out := &in.Project, &out.Project - *out = new(ProjectRef) - **out = **in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangelogEntry. +func (in *ChangelogEntry) DeepCopy() *ChangelogEntry { + if in == nil { + return nil } - if in.Milestones != nil { - in, out := &in.Milestones, &out.Milestones - *out = new(MilestoneSource) - **out = **in + out := new(ChangelogEntry) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ChangelogEntry) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - if in.Changelog != nil { - in, out := &in.Changelog, &out.Changelog - *out = new(ChangelogSource) - **out = **in + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ChangelogEntryList) DeepCopyInto(out *ChangelogEntryList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ChangelogEntry, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubSource. -func (in *GitHubSource) DeepCopy() *GitHubSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangelogEntryList. +func (in *ChangelogEntryList) DeepCopy() *ChangelogEntryList { if in == nil { return nil } - out := new(GitHubSource) + out := new(ChangelogEntryList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ChangelogEntryList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IssueSelector) DeepCopyInto(out *IssueSelector) { +func (in *ChangelogEntryStatus) DeepCopyInto(out *ChangelogEntryStatus) { *out = *in - if in.IssueTypes != nil { - in, out := &in.IssueTypes, &out.IssueTypes + in.PublishedAt.DeepCopyInto(&out.PublishedAt) + if in.Categories != nil { + in, out := &in.Categories, &out.Categories *out = make([]string, len(*in)) copy(*out, *in) } - if in.Labels != nil { - in, out := &in.Labels, &out.Labels + if in.Posts != nil { + in, out := &in.Posts, &out.Posts *out = make([]string, len(*in)) copy(*out, *in) } - if in.ExcludeLabels != nil { - in, out := &in.ExcludeLabels, &out.ExcludeLabels + if in.IssueRefs != nil { + in, out := &in.IssueRefs, &out.IssueRefs *out = make([]string, len(*in)) copy(*out, *in) } + out.Reactions = in.Reactions + if in.GitHub != nil { + in, out := &in.GitHub, &out.GitHub + *out = new(GitHubLink) + **out = **in + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssueSelector. -func (in *IssueSelector) DeepCopy() *IssueSelector { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangelogEntryStatus. +func (in *ChangelogEntryStatus) DeepCopy() *ChangelogEntryStatus { if in == nil { return nil } - out := new(IssueSelector) + out := new(ChangelogEntryStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MilestoneSource) DeepCopyInto(out *MilestoneSource) { +func (in *ChangelogReactions) DeepCopyInto(out *ChangelogReactions) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilestoneSource. -func (in *MilestoneSource) DeepCopy() *MilestoneSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangelogReactions. +func (in *ChangelogReactions) DeepCopy() *ChangelogReactions { if in == nil { return nil } - out := new(MilestoneSource) + out := new(ChangelogReactions) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRef) DeepCopyInto(out *ProjectRef) { +func (in *ChangelogSource) DeepCopyInto(out *ChangelogSource) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRef. -func (in *ProjectRef) DeepCopy() *ProjectRef { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangelogSource. +func (in *ChangelogSource) DeepCopy() *ChangelogSource { if in == nil { return nil } - out := new(ProjectRef) + out := new(ChangelogSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RateLimitStatus) DeepCopyInto(out *RateLimitStatus) { +func (in *CreditGrantReference) DeepCopyInto(out *CreditGrantReference) { *out = *in - in.ResetAt.DeepCopyInto(&out.ResetAt) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RateLimitStatus. -func (in *RateLimitStatus) DeepCopy() *RateLimitStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreditGrantReference. +func (in *CreditGrantReference) DeepCopy() *CreditGrantReference { if in == nil { return nil } - out := new(RateLimitStatus) + out := new(CreditGrantReference) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReconcileStatus) DeepCopyInto(out *ReconcileStatus) { +func (in *DeliveryEvent) DeepCopyInto(out *DeliveryEvent) { *out = *in - in.CompletedAt.DeepCopyInto(&out.CompletedAt) + in.At.DeepCopyInto(&out.At) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReconcileStatus. -func (in *ReconcileStatus) DeepCopy() *ReconcileStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliveryEvent. +func (in *DeliveryEvent) DeepCopy() *DeliveryEvent { if in == nil { return nil } - out := new(ReconcileStatus) + out := new(DeliveryEvent) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RepositorySelector) DeepCopyInto(out *RepositorySelector) { +func (in *DeliveryStatus) DeepCopyInto(out *DeliveryStatus) { *out = *in - if in.Include != nil { - in, out := &in.Include, &out.Include - *out = make([]string, len(*in)) - copy(*out, *in) + if in.History != nil { + in, out := &in.History, &out.History + *out = make([]DeliveryEvent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.Exclude != nil { - in, out := &in.Exclude, &out.Exclude - *out = make([]string, len(*in)) - copy(*out, *in) + if in.Work != nil { + in, out := &in.Work, &out.Work + *out = new(DeliveryWork) + (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySelector. -func (in *RepositorySelector) DeepCopy() *RepositorySelector { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliveryStatus. +func (in *DeliveryStatus) DeepCopy() *DeliveryStatus { if in == nil { return nil } - out := new(RepositorySelector) + out := new(DeliveryStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DeliveryWork) DeepCopyInto(out *DeliveryWork) { + *out = *in + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]WorkItem, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.PartShipped != nil { + in, out := &in.PartShipped, &out.PartShipped + *out = make([]PartShipped, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliveryWork. +func (in *DeliveryWork) DeepCopy() *DeliveryWork { + if in == nil { + return nil + } + out := new(DeliveryWork) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DraftIssue) DeepCopyInto(out *DraftIssue) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DraftIssue. +func (in *DraftIssue) DeepCopy() *DraftIssue { + if in == nil { + return nil + } + out := new(DraftIssue) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalReporter) DeepCopyInto(out *ExternalReporter) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalReporter. +func (in *ExternalReporter) DeepCopy() *ExternalReporter { + if in == nil { + return nil + } + out := new(ExternalReporter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FeedbackSource) DeepCopyInto(out *FeedbackSource) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeedbackSource. +func (in *FeedbackSource) DeepCopy() *FeedbackSource { + if in == nil { + return nil + } + out := new(FeedbackSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FeedbackSource) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FeedbackSourceList) DeepCopyInto(out *FeedbackSourceList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]FeedbackSource, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeedbackSourceList. +func (in *FeedbackSourceList) DeepCopy() *FeedbackSourceList { + if in == nil { + return nil + } + out := new(FeedbackSourceList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FeedbackSourceList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FeedbackSourceSpec) DeepCopyInto(out *FeedbackSourceSpec) { + *out = *in + in.GitHub.DeepCopyInto(&out.GitHub) + if in.StatusMapping != nil { + in, out := &in.StatusMapping, &out.StatusMapping + *out = make(map[string]PostState, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.CategoryMapping != nil { + in, out := &in.CategoryMapping, &out.CategoryMapping + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeedbackSourceSpec. +func (in *FeedbackSourceSpec) DeepCopy() *FeedbackSourceSpec { + if in == nil { + return nil + } + out := new(FeedbackSourceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FeedbackSourceStatus) DeepCopyInto(out *FeedbackSourceStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]v1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.LastWebhookAt != nil { + in, out := &in.LastWebhookAt, &out.LastWebhookAt + *out = (*in).DeepCopy() + } + if in.LastReconcile != nil { + in, out := &in.LastReconcile, &out.LastReconcile + *out = new(ReconcileStatus) + (*in).DeepCopyInto(*out) + } + if in.RateLimit != nil { + in, out := &in.RateLimit, &out.RateLimit + *out = new(RateLimitStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeedbackSourceStatus. +func (in *FeedbackSourceStatus) DeepCopy() *FeedbackSourceStatus { + if in == nil { + return nil + } + out := new(FeedbackSourceStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitHubIssue) DeepCopyInto(out *GitHubIssue) { + *out = *in + in.CreatedAt.DeepCopyInto(&out.CreatedAt) + in.UpdatedAt.DeepCopyInto(&out.UpdatedAt) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubIssue. +func (in *GitHubIssue) DeepCopy() *GitHubIssue { + if in == nil { + return nil + } + out := new(GitHubIssue) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitHubLink) DeepCopyInto(out *GitHubLink) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubLink. +func (in *GitHubLink) DeepCopy() *GitHubLink { + if in == nil { + return nil + } + out := new(GitHubLink) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitHubSource) DeepCopyInto(out *GitHubSource) { + *out = *in + in.Repositories.DeepCopyInto(&out.Repositories) + in.Issues.DeepCopyInto(&out.Issues) + if in.Project != nil { + in, out := &in.Project, &out.Project + *out = new(ProjectRef) + **out = **in + } + if in.Milestones != nil { + in, out := &in.Milestones, &out.Milestones + *out = new(MilestoneSource) + **out = **in + } + if in.Changelog != nil { + in, out := &in.Changelog, &out.Changelog + *out = new(ChangelogSource) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubSource. +func (in *GitHubSource) DeepCopy() *GitHubSource { + if in == nil { + return nil + } + out := new(GitHubSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IssueSelector) DeepCopyInto(out *IssueSelector) { + *out = *in + if in.IssueTypes != nil { + in, out := &in.IssueTypes, &out.IssueTypes + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.ExcludeLabels != nil { + in, out := &in.ExcludeLabels, &out.ExcludeLabels + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssueSelector. +func (in *IssueSelector) DeepCopy() *IssueSelector { + if in == nil { + return nil + } + out := new(IssueSelector) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MilestoneSource) DeepCopyInto(out *MilestoneSource) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MilestoneSource. +func (in *MilestoneSource) DeepCopy() *MilestoneSource { + if in == nil { + return nil + } + out := new(MilestoneSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PartShipped) DeepCopyInto(out *PartShipped) { + *out = *in + in.At.DeepCopyInto(&out.At) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartShipped. +func (in *PartShipped) DeepCopy() *PartShipped { + if in == nil { + return nil + } + out := new(PartShipped) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Post) DeepCopyInto(out *Post) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Post. +func (in *Post) DeepCopy() *Post { + if in == nil { + return nil + } + out := new(Post) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Post) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostList) DeepCopyInto(out *PostList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Post, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostList. +func (in *PostList) DeepCopy() *PostList { + if in == nil { + return nil + } + out := new(PostList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PostList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostQuery) DeepCopyInto(out *PostQuery) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostQuery. +func (in *PostQuery) DeepCopy() *PostQuery { + if in == nil { + return nil + } + out := new(PostQuery) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PostQuery) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostQueryFilter) DeepCopyInto(out *PostQueryFilter) { + *out = *in + if in.State != nil { + in, out := &in.State, &out.State + *out = make([]PostState, len(*in)) + copy(*out, *in) + } + if in.Categories != nil { + in, out := &in.Categories, &out.Categories + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Orgs != nil { + in, out := &in.Orgs, &out.Orgs + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.DeliveryStage != nil { + in, out := &in.DeliveryStage, &out.DeliveryStage + *out = make([]DeliveryStage, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostQueryFilter. +func (in *PostQueryFilter) DeepCopy() *PostQueryFilter { + if in == nil { + return nil + } + out := new(PostQueryFilter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostQueryList) DeepCopyInto(out *PostQueryList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]PostQuery, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostQueryList. +func (in *PostQueryList) DeepCopy() *PostQueryList { + if in == nil { + return nil + } + out := new(PostQueryList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PostQueryList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostQueryResult) DeepCopyInto(out *PostQueryResult) { + *out = *in + if in.Categories != nil { + in, out := &in.Categories, &out.Categories + *out = make([]string, len(*in)) + copy(*out, *in) + } + out.Votes = in.Votes + if in.Score != nil { + in, out := &in.Score, &out.Score + *out = new(float64) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostQueryResult. +func (in *PostQueryResult) DeepCopy() *PostQueryResult { + if in == nil { + return nil + } + out := new(PostQueryResult) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostQuerySpec) DeepCopyInto(out *PostQuerySpec) { + *out = *in + in.Filter.DeepCopyInto(&out.Filter) + if in.Facets != nil { + in, out := &in.Facets, &out.Facets + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostQuerySpec. +func (in *PostQuerySpec) DeepCopy() *PostQuerySpec { + if in == nil { + return nil + } + out := new(PostQuerySpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostQueryStatus) DeepCopyInto(out *PostQueryStatus) { + *out = *in + if in.Results != nil { + in, out := &in.Results, &out.Results + *out = make([]PostQueryResult, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Facets != nil { + in, out := &in.Facets, &out.Facets + *out = make(map[string]map[string]int32, len(*in)) + for key, val := range *in { + var outVal map[string]int32 + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make(map[string]int32, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + (*out)[key] = outVal + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostQueryStatus. +func (in *PostQueryStatus) DeepCopy() *PostQueryStatus { + if in == nil { + return nil + } + out := new(PostQueryStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostReference) DeepCopyInto(out *PostReference) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostReference. +func (in *PostReference) DeepCopy() *PostReference { + if in == nil { + return nil + } + out := new(PostReference) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostSpec) DeepCopyInto(out *PostSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostSpec. +func (in *PostSpec) DeepCopy() *PostSpec { + if in == nil { + return nil + } + out := new(PostSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostStatus) DeepCopyInto(out *PostStatus) { + *out = *in + if in.Categories != nil { + in, out := &in.Categories, &out.Categories + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.GitHub != nil { + in, out := &in.GitHub, &out.GitHub + *out = new(GitHubIssue) + (*in).DeepCopyInto(*out) + } + out.Votes = in.Votes + if in.PublicVoters != nil { + in, out := &in.PublicVoters, &out.PublicVoters + *out = make([]PublicVoter, len(*in)) + copy(*out, *in) + } + if in.Delivery != nil { + in, out := &in.Delivery, &out.Delivery + *out = new(DeliveryStatus) + (*in).DeepCopyInto(*out) + } + if in.LastSyncedAt != nil { + in, out := &in.LastSyncedAt, &out.LastSyncedAt + *out = (*in).DeepCopy() + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostStatus. +func (in *PostStatus) DeepCopy() *PostStatus { + if in == nil { + return nil + } + out := new(PostStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PostVotes) DeepCopyInto(out *PostVotes) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostVotes. +func (in *PostVotes) DeepCopy() *PostVotes { + if in == nil { + return nil + } + out := new(PostVotes) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectRef) DeepCopyInto(out *ProjectRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRef. +func (in *ProjectRef) DeepCopy() *ProjectRef { + if in == nil { + return nil + } + out := new(ProjectRef) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PublicVoter) DeepCopyInto(out *PublicVoter) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicVoter. +func (in *PublicVoter) DeepCopy() *PublicVoter { + if in == nil { + return nil + } + out := new(PublicVoter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PullRequestRef) DeepCopyInto(out *PullRequestRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestRef. +func (in *PullRequestRef) DeepCopy() *PullRequestRef { + if in == nil { + return nil + } + out := new(PullRequestRef) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RateLimitStatus) DeepCopyInto(out *RateLimitStatus) { + *out = *in + in.ResetAt.DeepCopyInto(&out.ResetAt) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RateLimitStatus. +func (in *RateLimitStatus) DeepCopy() *RateLimitStatus { + if in == nil { + return nil + } + out := new(RateLimitStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ReconcileStatus) DeepCopyInto(out *ReconcileStatus) { + *out = *in + in.CompletedAt.DeepCopyInto(&out.CompletedAt) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReconcileStatus. +func (in *ReconcileStatus) DeepCopy() *ReconcileStatus { + if in == nil { + return nil + } + out := new(ReconcileStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Release) DeepCopyInto(out *Release) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Release. +func (in *Release) DeepCopy() *Release { + if in == nil { + return nil + } + out := new(Release) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Release) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ReleaseList) DeepCopyInto(out *ReleaseList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Release, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseList. +func (in *ReleaseList) DeepCopy() *ReleaseList { + if in == nil { + return nil + } + out := new(ReleaseList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ReleaseList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ReleaseStatus) DeepCopyInto(out *ReleaseStatus) { + *out = *in + if in.Posts != nil { + in, out := &in.Posts, &out.Posts + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.GitHub != nil { + in, out := &in.GitHub, &out.GitHub + *out = new(GitHubLink) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseStatus. +func (in *ReleaseStatus) DeepCopy() *ReleaseStatus { + if in == nil { + return nil + } + out := new(ReleaseStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RepositorySelector) DeepCopyInto(out *RepositorySelector) { + *out = *in + if in.Include != nil { + in, out := &in.Include, &out.Include + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Exclude != nil { + in, out := &in.Exclude, &out.Exclude + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySelector. +func (in *RepositorySelector) DeepCopy() *RepositorySelector { + if in == nil { + return nil + } + out := new(RepositorySelector) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityAcknowledgement) DeepCopyInto(out *SecurityAcknowledgement) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityAcknowledgement. +func (in *SecurityAcknowledgement) DeepCopy() *SecurityAcknowledgement { + if in == nil { + return nil + } + out := new(SecurityAcknowledgement) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SecurityAcknowledgement) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityAcknowledgementList) DeepCopyInto(out *SecurityAcknowledgementList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SecurityAcknowledgement, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityAcknowledgementList. +func (in *SecurityAcknowledgementList) DeepCopy() *SecurityAcknowledgementList { + if in == nil { + return nil + } + out := new(SecurityAcknowledgementList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SecurityAcknowledgementList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityAcknowledgementStatus) DeepCopyInto(out *SecurityAcknowledgementStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityAcknowledgementStatus. +func (in *SecurityAcknowledgementStatus) DeepCopy() *SecurityAcknowledgementStatus { + if in == nil { + return nil + } + out := new(SecurityAcknowledgementStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityAdvisory) DeepCopyInto(out *SecurityAdvisory) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityAdvisory. +func (in *SecurityAdvisory) DeepCopy() *SecurityAdvisory { + if in == nil { + return nil + } + out := new(SecurityAdvisory) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityCredit) DeepCopyInto(out *SecurityCredit) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityCredit. +func (in *SecurityCredit) DeepCopy() *SecurityCredit { + if in == nil { + return nil + } + out := new(SecurityCredit) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityReport) DeepCopyInto(out *SecurityReport) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityReport. +func (in *SecurityReport) DeepCopy() *SecurityReport { + if in == nil { + return nil + } + out := new(SecurityReport) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SecurityReport) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityReportContext) DeepCopyInto(out *SecurityReportContext) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityReportContext. +func (in *SecurityReportContext) DeepCopy() *SecurityReportContext { + if in == nil { + return nil + } + out := new(SecurityReportContext) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityReportInternal) DeepCopyInto(out *SecurityReportInternal) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityReportInternal. +func (in *SecurityReportInternal) DeepCopy() *SecurityReportInternal { + if in == nil { + return nil + } + out := new(SecurityReportInternal) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityReportList) DeepCopyInto(out *SecurityReportList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SecurityReport, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityReportList. +func (in *SecurityReportList) DeepCopy() *SecurityReportList { + if in == nil { + return nil + } + out := new(SecurityReportList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SecurityReportList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityReportSpec) DeepCopyInto(out *SecurityReportSpec) { + *out = *in + if in.Attachments != nil { + in, out := &in.Attachments, &out.Attachments + *out = make([]AttachmentReference, len(*in)) + copy(*out, *in) + } + if in.Credit != nil { + in, out := &in.Credit, &out.Credit + *out = new(SecurityCredit) + **out = **in + } + if in.Reporter != nil { + in, out := &in.Reporter, &out.Reporter + *out = new(ExternalReporter) + **out = **in + } + out.Context = in.Context + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityReportSpec. +func (in *SecurityReportSpec) DeepCopy() *SecurityReportSpec { + if in == nil { + return nil + } + out := new(SecurityReportSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityReportStatus) DeepCopyInto(out *SecurityReportStatus) { + *out = *in + if in.Timeline != nil { + in, out := &in.Timeline, &out.Timeline + *out = make([]SecurityTimelineEntry, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Advisory != nil { + in, out := &in.Advisory, &out.Advisory + *out = new(SecurityAdvisory) + **out = **in + } + if in.Reward != nil { + in, out := &in.Reward, &out.Reward + *out = new(SecurityReward) + (*in).DeepCopyInto(*out) + } + if in.Internal != nil { + in, out := &in.Internal, &out.Internal + *out = new(SecurityReportInternal) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityReportStatus. +func (in *SecurityReportStatus) DeepCopy() *SecurityReportStatus { + if in == nil { + return nil + } + out := new(SecurityReportStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityReward) DeepCopyInto(out *SecurityReward) { + *out = *in + if in.CreditGrantRef != nil { + in, out := &in.CreditGrantRef, &out.CreditGrantRef + *out = new(CreditGrantReference) + **out = **in + } + if in.GrantedAt != nil { + in, out := &in.GrantedAt, &out.GrantedAt + *out = (*in).DeepCopy() + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityReward. +func (in *SecurityReward) DeepCopy() *SecurityReward { + if in == nil { + return nil + } + out := new(SecurityReward) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityTimelineEntry) DeepCopyInto(out *SecurityTimelineEntry) { + *out = *in + in.At.DeepCopyInto(&out.At) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityTimelineEntry. +func (in *SecurityTimelineEntry) DeepCopy() *SecurityTimelineEntry { + if in == nil { + return nil + } + out := new(SecurityTimelineEntry) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SimilarPost) DeepCopyInto(out *SimilarPost) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimilarPost. +func (in *SimilarPost) DeepCopy() *SimilarPost { + if in == nil { + return nil + } + out := new(SimilarPost) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Submission) DeepCopyInto(out *Submission) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Submission. +func (in *Submission) DeepCopy() *Submission { + if in == nil { + return nil + } + out := new(Submission) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Submission) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionContext) DeepCopyInto(out *SubmissionContext) { + *out = *in + if in.RequestIDs != nil { + in, out := &in.RequestIDs, &out.RequestIDs + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionContext. +func (in *SubmissionContext) DeepCopy() *SubmissionContext { + if in == nil { + return nil + } + out := new(SubmissionContext) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionList) DeepCopyInto(out *SubmissionList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Submission, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionList. +func (in *SubmissionList) DeepCopy() *SubmissionList { + if in == nil { + return nil + } + out := new(SubmissionList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SubmissionList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionReview) DeepCopyInto(out *SubmissionReview) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionReview. +func (in *SubmissionReview) DeepCopy() *SubmissionReview { + if in == nil { + return nil + } + out := new(SubmissionReview) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SubmissionReview) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionReviewOutcome) DeepCopyInto(out *SubmissionReviewOutcome) { + *out = *in + in.ReviewedAt.DeepCopyInto(&out.ReviewedAt) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionReviewOutcome. +func (in *SubmissionReviewOutcome) DeepCopy() *SubmissionReviewOutcome { + if in == nil { + return nil + } + out := new(SubmissionReviewOutcome) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionReviewSpec) DeepCopyInto(out *SubmissionReviewSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionReviewSpec. +func (in *SubmissionReviewSpec) DeepCopy() *SubmissionReviewSpec { + if in == nil { + return nil + } + out := new(SubmissionReviewSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionSpec) DeepCopyInto(out *SubmissionSpec) { + *out = *in + if in.Attachments != nil { + in, out := &in.Attachments, &out.Attachments + *out = make([]AttachmentReference, len(*in)) + copy(*out, *in) + } + in.Context.DeepCopyInto(&out.Context) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionSpec. +func (in *SubmissionSpec) DeepCopy() *SubmissionSpec { + if in == nil { + return nil + } + out := new(SubmissionSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionStatus) DeepCopyInto(out *SubmissionStatus) { + *out = *in + if in.Triage != nil { + in, out := &in.Triage, &out.Triage + *out = new(SubmissionTriage) + (*in).DeepCopyInto(*out) + } + if in.Review != nil { + in, out := &in.Review, &out.Review + *out = new(SubmissionReviewOutcome) + (*in).DeepCopyInto(*out) + } + if in.PostRef != nil { + in, out := &in.PostRef, &out.PostRef + *out = new(PostReference) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionStatus. +func (in *SubmissionStatus) DeepCopy() *SubmissionStatus { + if in == nil { + return nil + } + out := new(SubmissionStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionToSecurityReport) DeepCopyInto(out *SubmissionToSecurityReport) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionToSecurityReport. +func (in *SubmissionToSecurityReport) DeepCopy() *SubmissionToSecurityReport { + if in == nil { + return nil + } + out := new(SubmissionToSecurityReport) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SubmissionToSecurityReport) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubmissionTriage) DeepCopyInto(out *SubmissionTriage) { + *out = *in + if in.SuggestedCategories != nil { + in, out := &in.SuggestedCategories, &out.SuggestedCategories + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.SimilarPosts != nil { + in, out := &in.SimilarPosts, &out.SimilarPosts + *out = make([]SimilarPost, len(*in)) + copy(*out, *in) + } + if in.DraftIssue != nil { + in, out := &in.DraftIssue, &out.DraftIssue + *out = new(DraftIssue) + **out = **in + } + if in.FraudScore != nil { + in, out := &in.FraudScore, &out.FraudScore + *out = new(float64) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmissionTriage. +func (in *SubmissionTriage) DeepCopy() *SubmissionTriage { + if in == nil { + return nil + } + out := new(SubmissionTriage) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Subscription) DeepCopyInto(out *Subscription) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subscription. +func (in *Subscription) DeepCopy() *Subscription { + if in == nil { + return nil + } + out := new(Subscription) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Subscription) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubscriptionList) DeepCopyInto(out *SubscriptionList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Subscription, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionList. +func (in *SubscriptionList) DeepCopy() *SubscriptionList { + if in == nil { + return nil + } + out := new(SubscriptionList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SubscriptionList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubscriptionSpec) DeepCopyInto(out *SubscriptionSpec) { + *out = *in + out.PostRef = in.PostRef + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionSpec. +func (in *SubscriptionSpec) DeepCopy() *SubscriptionSpec { + if in == nil { + return nil + } + out := new(SubscriptionSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Vote) DeepCopyInto(out *Vote) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vote. +func (in *Vote) DeepCopy() *Vote { + if in == nil { + return nil + } + out := new(Vote) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Vote) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VoteList) DeepCopyInto(out *VoteList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Vote, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VoteList. +func (in *VoteList) DeepCopy() *VoteList { + if in == nil { + return nil + } + out := new(VoteList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VoteList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VoteSpec) DeepCopyInto(out *VoteSpec) { + *out = *in + out.PostRef = in.PostRef + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VoteSpec. +func (in *VoteSpec) DeepCopy() *VoteSpec { + if in == nil { + return nil + } + out := new(VoteSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VoteStatus) DeepCopyInto(out *VoteStatus) { + *out = *in + if in.Organizations != nil { + in, out := &in.Organizations, &out.Organizations + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VoteStatus. +func (in *VoteStatus) DeepCopy() *VoteStatus { + if in == nil { + return nil + } + out := new(VoteStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkItem) DeepCopyInto(out *WorkItem) { + *out = *in + if in.PullRequests != nil { + in, out := &in.PullRequests, &out.PullRequests + *out = make([]PullRequestRef, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkItem. +func (in *WorkItem) DeepCopy() *WorkItem { + if in == nil { + return nil + } + out := new(WorkItem) in.DeepCopyInto(out) return out } diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/attachmentupload.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/attachmentupload.go new file mode 100644 index 0000000..3a016f8 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/attachmentupload.go @@ -0,0 +1,42 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + gentype "k8s.io/client-go/gentype" +) + +// AttachmentUploadsGetter has a method to return a AttachmentUploadInterface. +// A group's client should implement this interface. +type AttachmentUploadsGetter interface { + AttachmentUploads() AttachmentUploadInterface +} + +// AttachmentUploadInterface has methods to work with AttachmentUpload resources. +type AttachmentUploadInterface interface { + Create(ctx context.Context, attachmentUpload *feedbackv1alpha1.AttachmentUpload, opts v1.CreateOptions) (*feedbackv1alpha1.AttachmentUpload, error) + AttachmentUploadExpansion +} + +// attachmentUploads implements AttachmentUploadInterface +type attachmentUploads struct { + *gentype.Client[*feedbackv1alpha1.AttachmentUpload] +} + +// newAttachmentUploads returns a AttachmentUploads +func newAttachmentUploads(c *FeedbackV1alpha1Client) *attachmentUploads { + return &attachmentUploads{ + gentype.NewClient[*feedbackv1alpha1.AttachmentUpload]( + "attachmentuploads", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.AttachmentUpload { return &feedbackv1alpha1.AttachmentUpload{} }, + ), + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/changelogentry.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/changelogentry.go new file mode 100644 index 0000000..6c802e5 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/changelogentry.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// ChangelogEntriesGetter has a method to return a ChangelogEntryInterface. +// A group's client should implement this interface. +type ChangelogEntriesGetter interface { + ChangelogEntries() ChangelogEntryInterface +} + +// ChangelogEntryInterface has methods to work with ChangelogEntry resources. +type ChangelogEntryInterface interface { + Create(ctx context.Context, changelogEntry *feedbackv1alpha1.ChangelogEntry, opts v1.CreateOptions) (*feedbackv1alpha1.ChangelogEntry, error) + Update(ctx context.Context, changelogEntry *feedbackv1alpha1.ChangelogEntry, opts v1.UpdateOptions) (*feedbackv1alpha1.ChangelogEntry, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, changelogEntry *feedbackv1alpha1.ChangelogEntry, opts v1.UpdateOptions) (*feedbackv1alpha1.ChangelogEntry, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*feedbackv1alpha1.ChangelogEntry, error) + List(ctx context.Context, opts v1.ListOptions) (*feedbackv1alpha1.ChangelogEntryList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *feedbackv1alpha1.ChangelogEntry, err error) + ChangelogEntryExpansion +} + +// changelogEntries implements ChangelogEntryInterface +type changelogEntries struct { + *gentype.ClientWithList[*feedbackv1alpha1.ChangelogEntry, *feedbackv1alpha1.ChangelogEntryList] +} + +// newChangelogEntries returns a ChangelogEntries +func newChangelogEntries(c *FeedbackV1alpha1Client) *changelogEntries { + return &changelogEntries{ + gentype.NewClientWithList[*feedbackv1alpha1.ChangelogEntry, *feedbackv1alpha1.ChangelogEntryList]( + "changelogentries", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.ChangelogEntry { return &feedbackv1alpha1.ChangelogEntry{} }, + func() *feedbackv1alpha1.ChangelogEntryList { return &feedbackv1alpha1.ChangelogEntryList{} }, + ), + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_attachmentupload.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_attachmentupload.go new file mode 100644 index 0000000..8b4588b --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_attachmentupload.go @@ -0,0 +1,28 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakeAttachmentUploads implements AttachmentUploadInterface +type fakeAttachmentUploads struct { + *gentype.FakeClient[*v1alpha1.AttachmentUpload] + Fake *FakeFeedbackV1alpha1 +} + +func newFakeAttachmentUploads(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.AttachmentUploadInterface { + return &fakeAttachmentUploads{ + gentype.NewFakeClient[*v1alpha1.AttachmentUpload]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("attachmentuploads"), + v1alpha1.SchemeGroupVersion.WithKind("AttachmentUpload"), + func() *v1alpha1.AttachmentUpload { return &v1alpha1.AttachmentUpload{} }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_changelogentry.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_changelogentry.go new file mode 100644 index 0000000..0ad39df --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_changelogentry.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakeChangelogEntries implements ChangelogEntryInterface +type fakeChangelogEntries struct { + *gentype.FakeClientWithList[*v1alpha1.ChangelogEntry, *v1alpha1.ChangelogEntryList] + Fake *FakeFeedbackV1alpha1 +} + +func newFakeChangelogEntries(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.ChangelogEntryInterface { + return &fakeChangelogEntries{ + gentype.NewFakeClientWithList[*v1alpha1.ChangelogEntry, *v1alpha1.ChangelogEntryList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("changelogentries"), + v1alpha1.SchemeGroupVersion.WithKind("ChangelogEntry"), + func() *v1alpha1.ChangelogEntry { return &v1alpha1.ChangelogEntry{} }, + func() *v1alpha1.ChangelogEntryList { return &v1alpha1.ChangelogEntryList{} }, + func(dst, src *v1alpha1.ChangelogEntryList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.ChangelogEntryList) []*v1alpha1.ChangelogEntry { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1alpha1.ChangelogEntryList, items []*v1alpha1.ChangelogEntry) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_feedback_client.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_feedback_client.go index 68ed475..b4d967f 100644 --- a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_feedback_client.go +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_feedback_client.go @@ -12,10 +12,50 @@ type FakeFeedbackV1alpha1 struct { *testing.Fake } +func (c *FakeFeedbackV1alpha1) AttachmentUploads() v1alpha1.AttachmentUploadInterface { + return newFakeAttachmentUploads(c) +} + +func (c *FakeFeedbackV1alpha1) ChangelogEntries() v1alpha1.ChangelogEntryInterface { + return newFakeChangelogEntries(c) +} + func (c *FakeFeedbackV1alpha1) FeedbackSources() v1alpha1.FeedbackSourceInterface { return newFakeFeedbackSources(c) } +func (c *FakeFeedbackV1alpha1) Posts() v1alpha1.PostInterface { + return newFakePosts(c) +} + +func (c *FakeFeedbackV1alpha1) PostQueries() v1alpha1.PostQueryInterface { + return newFakePostQueries(c) +} + +func (c *FakeFeedbackV1alpha1) Releases() v1alpha1.ReleaseInterface { + return newFakeReleases(c) +} + +func (c *FakeFeedbackV1alpha1) SecurityAcknowledgements() v1alpha1.SecurityAcknowledgementInterface { + return newFakeSecurityAcknowledgements(c) +} + +func (c *FakeFeedbackV1alpha1) SecurityReports() v1alpha1.SecurityReportInterface { + return newFakeSecurityReports(c) +} + +func (c *FakeFeedbackV1alpha1) Submissions() v1alpha1.SubmissionInterface { + return newFakeSubmissions(c) +} + +func (c *FakeFeedbackV1alpha1) Subscriptions() v1alpha1.SubscriptionInterface { + return newFakeSubscriptions(c) +} + +func (c *FakeFeedbackV1alpha1) Votes() v1alpha1.VoteInterface { + return newFakeVotes(c) +} + // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. func (c *FakeFeedbackV1alpha1) RESTClient() rest.Interface { diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_post.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_post.go new file mode 100644 index 0000000..8daf302 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_post.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakePosts implements PostInterface +type fakePosts struct { + *gentype.FakeClientWithList[*v1alpha1.Post, *v1alpha1.PostList] + Fake *FakeFeedbackV1alpha1 +} + +func newFakePosts(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.PostInterface { + return &fakePosts{ + gentype.NewFakeClientWithList[*v1alpha1.Post, *v1alpha1.PostList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("posts"), + v1alpha1.SchemeGroupVersion.WithKind("Post"), + func() *v1alpha1.Post { return &v1alpha1.Post{} }, + func() *v1alpha1.PostList { return &v1alpha1.PostList{} }, + func(dst, src *v1alpha1.PostList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.PostList) []*v1alpha1.Post { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.PostList, items []*v1alpha1.Post) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_postquery.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_postquery.go new file mode 100644 index 0000000..2812131 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_postquery.go @@ -0,0 +1,28 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakePostQueries implements PostQueryInterface +type fakePostQueries struct { + *gentype.FakeClient[*v1alpha1.PostQuery] + Fake *FakeFeedbackV1alpha1 +} + +func newFakePostQueries(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.PostQueryInterface { + return &fakePostQueries{ + gentype.NewFakeClient[*v1alpha1.PostQuery]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("postqueries"), + v1alpha1.SchemeGroupVersion.WithKind("PostQuery"), + func() *v1alpha1.PostQuery { return &v1alpha1.PostQuery{} }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_release.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_release.go new file mode 100644 index 0000000..fba68a8 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_release.go @@ -0,0 +1,34 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakeReleases implements ReleaseInterface +type fakeReleases struct { + *gentype.FakeClientWithList[*v1alpha1.Release, *v1alpha1.ReleaseList] + Fake *FakeFeedbackV1alpha1 +} + +func newFakeReleases(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.ReleaseInterface { + return &fakeReleases{ + gentype.NewFakeClientWithList[*v1alpha1.Release, *v1alpha1.ReleaseList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("releases"), + v1alpha1.SchemeGroupVersion.WithKind("Release"), + func() *v1alpha1.Release { return &v1alpha1.Release{} }, + func() *v1alpha1.ReleaseList { return &v1alpha1.ReleaseList{} }, + func(dst, src *v1alpha1.ReleaseList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.ReleaseList) []*v1alpha1.Release { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.ReleaseList, items []*v1alpha1.Release) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_securityacknowledgement.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_securityacknowledgement.go new file mode 100644 index 0000000..6bc75fb --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_securityacknowledgement.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakeSecurityAcknowledgements implements SecurityAcknowledgementInterface +type fakeSecurityAcknowledgements struct { + *gentype.FakeClientWithList[*v1alpha1.SecurityAcknowledgement, *v1alpha1.SecurityAcknowledgementList] + Fake *FakeFeedbackV1alpha1 +} + +func newFakeSecurityAcknowledgements(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.SecurityAcknowledgementInterface { + return &fakeSecurityAcknowledgements{ + gentype.NewFakeClientWithList[*v1alpha1.SecurityAcknowledgement, *v1alpha1.SecurityAcknowledgementList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("securityacknowledgements"), + v1alpha1.SchemeGroupVersion.WithKind("SecurityAcknowledgement"), + func() *v1alpha1.SecurityAcknowledgement { return &v1alpha1.SecurityAcknowledgement{} }, + func() *v1alpha1.SecurityAcknowledgementList { return &v1alpha1.SecurityAcknowledgementList{} }, + func(dst, src *v1alpha1.SecurityAcknowledgementList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.SecurityAcknowledgementList) []*v1alpha1.SecurityAcknowledgement { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1alpha1.SecurityAcknowledgementList, items []*v1alpha1.SecurityAcknowledgement) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_securityreport.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_securityreport.go new file mode 100644 index 0000000..48d1b72 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_securityreport.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakeSecurityReports implements SecurityReportInterface +type fakeSecurityReports struct { + *gentype.FakeClientWithList[*v1alpha1.SecurityReport, *v1alpha1.SecurityReportList] + Fake *FakeFeedbackV1alpha1 +} + +func newFakeSecurityReports(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.SecurityReportInterface { + return &fakeSecurityReports{ + gentype.NewFakeClientWithList[*v1alpha1.SecurityReport, *v1alpha1.SecurityReportList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("securityreports"), + v1alpha1.SchemeGroupVersion.WithKind("SecurityReport"), + func() *v1alpha1.SecurityReport { return &v1alpha1.SecurityReport{} }, + func() *v1alpha1.SecurityReportList { return &v1alpha1.SecurityReportList{} }, + func(dst, src *v1alpha1.SecurityReportList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.SecurityReportList) []*v1alpha1.SecurityReport { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1alpha1.SecurityReportList, items []*v1alpha1.SecurityReport) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_submission.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_submission.go new file mode 100644 index 0000000..f781531 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_submission.go @@ -0,0 +1,60 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + context "context" + + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + gentype "k8s.io/client-go/gentype" + testing "k8s.io/client-go/testing" +) + +// fakeSubmissions implements SubmissionInterface +type fakeSubmissions struct { + *gentype.FakeClientWithList[*v1alpha1.Submission, *v1alpha1.SubmissionList] + Fake *FakeFeedbackV1alpha1 +} + +func newFakeSubmissions(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.SubmissionInterface { + return &fakeSubmissions{ + gentype.NewFakeClientWithList[*v1alpha1.Submission, *v1alpha1.SubmissionList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("submissions"), + v1alpha1.SchemeGroupVersion.WithKind("Submission"), + func() *v1alpha1.Submission { return &v1alpha1.Submission{} }, + func() *v1alpha1.SubmissionList { return &v1alpha1.SubmissionList{} }, + func(dst, src *v1alpha1.SubmissionList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.SubmissionList) []*v1alpha1.Submission { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.SubmissionList, items []*v1alpha1.Submission) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} + +// Review takes the representation of a submissionReview and creates it. Returns the server's representation of the submission, and an error, if there is any. +func (c *fakeSubmissions) Review(ctx context.Context, submissionName string, submissionReview *v1alpha1.SubmissionReview, opts v1.CreateOptions) (result *v1alpha1.Submission, err error) { + emptyResult := &v1alpha1.Submission{} + obj, err := c.Fake. + Invokes(testing.NewRootCreateSubresourceActionWithOptions(c.Resource(), submissionName, "review", submissionReview, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1alpha1.Submission), err +} + +// ToSecurityReport takes the representation of a submissionToSecurityReport and creates it. Returns the server's representation of the securityReport, and an error, if there is any. +func (c *fakeSubmissions) ToSecurityReport(ctx context.Context, submissionName string, submissionToSecurityReport *v1alpha1.SubmissionToSecurityReport, opts v1.CreateOptions) (result *v1alpha1.SecurityReport, err error) { + emptyResult := &v1alpha1.SecurityReport{} + obj, err := c.Fake. + Invokes(testing.NewRootCreateSubresourceActionWithOptions(c.Resource(), submissionName, "to-security-report", submissionToSecurityReport, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1alpha1.SecurityReport), err +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_subscription.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_subscription.go new file mode 100644 index 0000000..7aacb55 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_subscription.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakeSubscriptions implements SubscriptionInterface +type fakeSubscriptions struct { + *gentype.FakeClientWithList[*v1alpha1.Subscription, *v1alpha1.SubscriptionList] + Fake *FakeFeedbackV1alpha1 +} + +func newFakeSubscriptions(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.SubscriptionInterface { + return &fakeSubscriptions{ + gentype.NewFakeClientWithList[*v1alpha1.Subscription, *v1alpha1.SubscriptionList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("subscriptions"), + v1alpha1.SchemeGroupVersion.WithKind("Subscription"), + func() *v1alpha1.Subscription { return &v1alpha1.Subscription{} }, + func() *v1alpha1.SubscriptionList { return &v1alpha1.SubscriptionList{} }, + func(dst, src *v1alpha1.SubscriptionList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.SubscriptionList) []*v1alpha1.Subscription { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1alpha1.SubscriptionList, items []*v1alpha1.Subscription) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_vote.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_vote.go new file mode 100644 index 0000000..1ae35c9 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/fake/fake_vote.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/generated/clientset/versioned/typed/feedback/v1alpha1" + gentype "k8s.io/client-go/gentype" +) + +// fakeVotes implements VoteInterface +type fakeVotes struct { + *gentype.FakeClientWithList[*v1alpha1.Vote, *v1alpha1.VoteList] + Fake *FakeFeedbackV1alpha1 +} + +func newFakeVotes(fake *FakeFeedbackV1alpha1) feedbackv1alpha1.VoteInterface { + return &fakeVotes{ + gentype.NewFakeClientWithList[*v1alpha1.Vote, *v1alpha1.VoteList]( + fake.Fake, + "", + v1alpha1.SchemeGroupVersion.WithResource("votes"), + v1alpha1.SchemeGroupVersion.WithKind("Vote"), + func() *v1alpha1.Vote { return &v1alpha1.Vote{} }, + func() *v1alpha1.VoteList { return &v1alpha1.VoteList{} }, + func(dst, src *v1alpha1.VoteList) { dst.ListMeta = src.ListMeta }, + func(list *v1alpha1.VoteList) []*v1alpha1.Vote { return gentype.ToPointerSlice(list.Items) }, + func(list *v1alpha1.VoteList, items []*v1alpha1.Vote) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/feedback_client.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/feedback_client.go index e162ed6..baeed1b 100644 --- a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/feedback_client.go +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/feedback_client.go @@ -12,7 +12,17 @@ import ( type FeedbackV1alpha1Interface interface { RESTClient() rest.Interface + AttachmentUploadsGetter + ChangelogEntriesGetter FeedbackSourcesGetter + PostsGetter + PostQueriesGetter + ReleasesGetter + SecurityAcknowledgementsGetter + SecurityReportsGetter + SubmissionsGetter + SubscriptionsGetter + VotesGetter } // FeedbackV1alpha1Client is used to interact with features provided by the feedback.miloapis.com group. @@ -20,10 +30,50 @@ type FeedbackV1alpha1Client struct { restClient rest.Interface } +func (c *FeedbackV1alpha1Client) AttachmentUploads() AttachmentUploadInterface { + return newAttachmentUploads(c) +} + +func (c *FeedbackV1alpha1Client) ChangelogEntries() ChangelogEntryInterface { + return newChangelogEntries(c) +} + func (c *FeedbackV1alpha1Client) FeedbackSources() FeedbackSourceInterface { return newFeedbackSources(c) } +func (c *FeedbackV1alpha1Client) Posts() PostInterface { + return newPosts(c) +} + +func (c *FeedbackV1alpha1Client) PostQueries() PostQueryInterface { + return newPostQueries(c) +} + +func (c *FeedbackV1alpha1Client) Releases() ReleaseInterface { + return newReleases(c) +} + +func (c *FeedbackV1alpha1Client) SecurityAcknowledgements() SecurityAcknowledgementInterface { + return newSecurityAcknowledgements(c) +} + +func (c *FeedbackV1alpha1Client) SecurityReports() SecurityReportInterface { + return newSecurityReports(c) +} + +func (c *FeedbackV1alpha1Client) Submissions() SubmissionInterface { + return newSubmissions(c) +} + +func (c *FeedbackV1alpha1Client) Subscriptions() SubscriptionInterface { + return newSubscriptions(c) +} + +func (c *FeedbackV1alpha1Client) Votes() VoteInterface { + return newVotes(c) +} + // NewForConfig creates a new FeedbackV1alpha1Client for the given config. // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), // where httpClient was generated with rest.HTTPClientFor(c). diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/generated_expansion.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/generated_expansion.go index 283e63b..c193382 100644 --- a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/generated_expansion.go +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/generated_expansion.go @@ -2,4 +2,24 @@ package v1alpha1 +type AttachmentUploadExpansion interface{} + +type ChangelogEntryExpansion interface{} + type FeedbackSourceExpansion interface{} + +type PostExpansion interface{} + +type PostQueryExpansion interface{} + +type ReleaseExpansion interface{} + +type SecurityAcknowledgementExpansion interface{} + +type SecurityReportExpansion interface{} + +type SubmissionExpansion interface{} + +type SubscriptionExpansion interface{} + +type VoteExpansion interface{} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/post.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/post.go new file mode 100644 index 0000000..f5b1bcf --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/post.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// PostsGetter has a method to return a PostInterface. +// A group's client should implement this interface. +type PostsGetter interface { + Posts() PostInterface +} + +// PostInterface has methods to work with Post resources. +type PostInterface interface { + Create(ctx context.Context, post *feedbackv1alpha1.Post, opts v1.CreateOptions) (*feedbackv1alpha1.Post, error) + Update(ctx context.Context, post *feedbackv1alpha1.Post, opts v1.UpdateOptions) (*feedbackv1alpha1.Post, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, post *feedbackv1alpha1.Post, opts v1.UpdateOptions) (*feedbackv1alpha1.Post, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*feedbackv1alpha1.Post, error) + List(ctx context.Context, opts v1.ListOptions) (*feedbackv1alpha1.PostList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *feedbackv1alpha1.Post, err error) + PostExpansion +} + +// posts implements PostInterface +type posts struct { + *gentype.ClientWithList[*feedbackv1alpha1.Post, *feedbackv1alpha1.PostList] +} + +// newPosts returns a Posts +func newPosts(c *FeedbackV1alpha1Client) *posts { + return &posts{ + gentype.NewClientWithList[*feedbackv1alpha1.Post, *feedbackv1alpha1.PostList]( + "posts", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.Post { return &feedbackv1alpha1.Post{} }, + func() *feedbackv1alpha1.PostList { return &feedbackv1alpha1.PostList{} }, + ), + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/postquery.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/postquery.go new file mode 100644 index 0000000..b327cee --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/postquery.go @@ -0,0 +1,42 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + gentype "k8s.io/client-go/gentype" +) + +// PostQueriesGetter has a method to return a PostQueryInterface. +// A group's client should implement this interface. +type PostQueriesGetter interface { + PostQueries() PostQueryInterface +} + +// PostQueryInterface has methods to work with PostQuery resources. +type PostQueryInterface interface { + Create(ctx context.Context, postQuery *feedbackv1alpha1.PostQuery, opts v1.CreateOptions) (*feedbackv1alpha1.PostQuery, error) + PostQueryExpansion +} + +// postQueries implements PostQueryInterface +type postQueries struct { + *gentype.Client[*feedbackv1alpha1.PostQuery] +} + +// newPostQueries returns a PostQueries +func newPostQueries(c *FeedbackV1alpha1Client) *postQueries { + return &postQueries{ + gentype.NewClient[*feedbackv1alpha1.PostQuery]( + "postqueries", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.PostQuery { return &feedbackv1alpha1.PostQuery{} }, + ), + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/release.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/release.go new file mode 100644 index 0000000..b7e9144 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/release.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// ReleasesGetter has a method to return a ReleaseInterface. +// A group's client should implement this interface. +type ReleasesGetter interface { + Releases() ReleaseInterface +} + +// ReleaseInterface has methods to work with Release resources. +type ReleaseInterface interface { + Create(ctx context.Context, release *feedbackv1alpha1.Release, opts v1.CreateOptions) (*feedbackv1alpha1.Release, error) + Update(ctx context.Context, release *feedbackv1alpha1.Release, opts v1.UpdateOptions) (*feedbackv1alpha1.Release, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, release *feedbackv1alpha1.Release, opts v1.UpdateOptions) (*feedbackv1alpha1.Release, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*feedbackv1alpha1.Release, error) + List(ctx context.Context, opts v1.ListOptions) (*feedbackv1alpha1.ReleaseList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *feedbackv1alpha1.Release, err error) + ReleaseExpansion +} + +// releases implements ReleaseInterface +type releases struct { + *gentype.ClientWithList[*feedbackv1alpha1.Release, *feedbackv1alpha1.ReleaseList] +} + +// newReleases returns a Releases +func newReleases(c *FeedbackV1alpha1Client) *releases { + return &releases{ + gentype.NewClientWithList[*feedbackv1alpha1.Release, *feedbackv1alpha1.ReleaseList]( + "releases", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.Release { return &feedbackv1alpha1.Release{} }, + func() *feedbackv1alpha1.ReleaseList { return &feedbackv1alpha1.ReleaseList{} }, + ), + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/securityacknowledgement.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/securityacknowledgement.go new file mode 100644 index 0000000..5c17379 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/securityacknowledgement.go @@ -0,0 +1,46 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + gentype "k8s.io/client-go/gentype" +) + +// SecurityAcknowledgementsGetter has a method to return a SecurityAcknowledgementInterface. +// A group's client should implement this interface. +type SecurityAcknowledgementsGetter interface { + SecurityAcknowledgements() SecurityAcknowledgementInterface +} + +// SecurityAcknowledgementInterface has methods to work with SecurityAcknowledgement resources. +type SecurityAcknowledgementInterface interface { + Get(ctx context.Context, name string, opts v1.GetOptions) (*feedbackv1alpha1.SecurityAcknowledgement, error) + List(ctx context.Context, opts v1.ListOptions) (*feedbackv1alpha1.SecurityAcknowledgementList, error) + SecurityAcknowledgementExpansion +} + +// securityAcknowledgements implements SecurityAcknowledgementInterface +type securityAcknowledgements struct { + *gentype.ClientWithList[*feedbackv1alpha1.SecurityAcknowledgement, *feedbackv1alpha1.SecurityAcknowledgementList] +} + +// newSecurityAcknowledgements returns a SecurityAcknowledgements +func newSecurityAcknowledgements(c *FeedbackV1alpha1Client) *securityAcknowledgements { + return &securityAcknowledgements{ + gentype.NewClientWithList[*feedbackv1alpha1.SecurityAcknowledgement, *feedbackv1alpha1.SecurityAcknowledgementList]( + "securityacknowledgements", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.SecurityAcknowledgement { return &feedbackv1alpha1.SecurityAcknowledgement{} }, + func() *feedbackv1alpha1.SecurityAcknowledgementList { + return &feedbackv1alpha1.SecurityAcknowledgementList{} + }, + ), + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/securityreport.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/securityreport.go new file mode 100644 index 0000000..73605d1 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/securityreport.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// SecurityReportsGetter has a method to return a SecurityReportInterface. +// A group's client should implement this interface. +type SecurityReportsGetter interface { + SecurityReports() SecurityReportInterface +} + +// SecurityReportInterface has methods to work with SecurityReport resources. +type SecurityReportInterface interface { + Create(ctx context.Context, securityReport *feedbackv1alpha1.SecurityReport, opts v1.CreateOptions) (*feedbackv1alpha1.SecurityReport, error) + Update(ctx context.Context, securityReport *feedbackv1alpha1.SecurityReport, opts v1.UpdateOptions) (*feedbackv1alpha1.SecurityReport, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, securityReport *feedbackv1alpha1.SecurityReport, opts v1.UpdateOptions) (*feedbackv1alpha1.SecurityReport, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*feedbackv1alpha1.SecurityReport, error) + List(ctx context.Context, opts v1.ListOptions) (*feedbackv1alpha1.SecurityReportList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *feedbackv1alpha1.SecurityReport, err error) + SecurityReportExpansion +} + +// securityReports implements SecurityReportInterface +type securityReports struct { + *gentype.ClientWithList[*feedbackv1alpha1.SecurityReport, *feedbackv1alpha1.SecurityReportList] +} + +// newSecurityReports returns a SecurityReports +func newSecurityReports(c *FeedbackV1alpha1Client) *securityReports { + return &securityReports{ + gentype.NewClientWithList[*feedbackv1alpha1.SecurityReport, *feedbackv1alpha1.SecurityReportList]( + "securityreports", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.SecurityReport { return &feedbackv1alpha1.SecurityReport{} }, + func() *feedbackv1alpha1.SecurityReportList { return &feedbackv1alpha1.SecurityReportList{} }, + ), + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/submission.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/submission.go new file mode 100644 index 0000000..18a600c --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/submission.go @@ -0,0 +1,85 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// SubmissionsGetter has a method to return a SubmissionInterface. +// A group's client should implement this interface. +type SubmissionsGetter interface { + Submissions() SubmissionInterface +} + +// SubmissionInterface has methods to work with Submission resources. +type SubmissionInterface interface { + Create(ctx context.Context, submission *feedbackv1alpha1.Submission, opts v1.CreateOptions) (*feedbackv1alpha1.Submission, error) + Update(ctx context.Context, submission *feedbackv1alpha1.Submission, opts v1.UpdateOptions) (*feedbackv1alpha1.Submission, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, submission *feedbackv1alpha1.Submission, opts v1.UpdateOptions) (*feedbackv1alpha1.Submission, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*feedbackv1alpha1.Submission, error) + List(ctx context.Context, opts v1.ListOptions) (*feedbackv1alpha1.SubmissionList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *feedbackv1alpha1.Submission, err error) + Review(ctx context.Context, submissionName string, submissionReview *feedbackv1alpha1.SubmissionReview, opts v1.CreateOptions) (*feedbackv1alpha1.Submission, error) + ToSecurityReport(ctx context.Context, submissionName string, submissionToSecurityReport *feedbackv1alpha1.SubmissionToSecurityReport, opts v1.CreateOptions) (*feedbackv1alpha1.SecurityReport, error) + + SubmissionExpansion +} + +// submissions implements SubmissionInterface +type submissions struct { + *gentype.ClientWithList[*feedbackv1alpha1.Submission, *feedbackv1alpha1.SubmissionList] +} + +// newSubmissions returns a Submissions +func newSubmissions(c *FeedbackV1alpha1Client) *submissions { + return &submissions{ + gentype.NewClientWithList[*feedbackv1alpha1.Submission, *feedbackv1alpha1.SubmissionList]( + "submissions", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.Submission { return &feedbackv1alpha1.Submission{} }, + func() *feedbackv1alpha1.SubmissionList { return &feedbackv1alpha1.SubmissionList{} }, + ), + } +} + +// Review takes the representation of a submissionReview and creates it. Returns the server's representation of the submission, and an error, if there is any. +func (c *submissions) Review(ctx context.Context, submissionName string, submissionReview *feedbackv1alpha1.SubmissionReview, opts v1.CreateOptions) (result *feedbackv1alpha1.Submission, err error) { + result = &feedbackv1alpha1.Submission{} + err = c.GetClient().Post(). + Resource("submissions"). + Name(submissionName). + SubResource("review"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(submissionReview). + Do(ctx). + Into(result) + return +} + +// ToSecurityReport takes the representation of a submissionToSecurityReport and creates it. Returns the server's representation of the securityReport, and an error, if there is any. +func (c *submissions) ToSecurityReport(ctx context.Context, submissionName string, submissionToSecurityReport *feedbackv1alpha1.SubmissionToSecurityReport, opts v1.CreateOptions) (result *feedbackv1alpha1.SecurityReport, err error) { + result = &feedbackv1alpha1.SecurityReport{} + err = c.GetClient().Post(). + Resource("submissions"). + Name(submissionName). + SubResource("to-security-report"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(submissionToSecurityReport). + Do(ctx). + Into(result) + return +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/subscription.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/subscription.go new file mode 100644 index 0000000..337ef66 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/subscription.go @@ -0,0 +1,52 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// SubscriptionsGetter has a method to return a SubscriptionInterface. +// A group's client should implement this interface. +type SubscriptionsGetter interface { + Subscriptions() SubscriptionInterface +} + +// SubscriptionInterface has methods to work with Subscription resources. +type SubscriptionInterface interface { + Create(ctx context.Context, subscription *feedbackv1alpha1.Subscription, opts v1.CreateOptions) (*feedbackv1alpha1.Subscription, error) + Update(ctx context.Context, subscription *feedbackv1alpha1.Subscription, opts v1.UpdateOptions) (*feedbackv1alpha1.Subscription, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*feedbackv1alpha1.Subscription, error) + List(ctx context.Context, opts v1.ListOptions) (*feedbackv1alpha1.SubscriptionList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *feedbackv1alpha1.Subscription, err error) + SubscriptionExpansion +} + +// subscriptions implements SubscriptionInterface +type subscriptions struct { + *gentype.ClientWithList[*feedbackv1alpha1.Subscription, *feedbackv1alpha1.SubscriptionList] +} + +// newSubscriptions returns a Subscriptions +func newSubscriptions(c *FeedbackV1alpha1Client) *subscriptions { + return &subscriptions{ + gentype.NewClientWithList[*feedbackv1alpha1.Subscription, *feedbackv1alpha1.SubscriptionList]( + "subscriptions", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.Subscription { return &feedbackv1alpha1.Subscription{} }, + func() *feedbackv1alpha1.SubscriptionList { return &feedbackv1alpha1.SubscriptionList{} }, + ), + } +} diff --git a/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/vote.go b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/vote.go new file mode 100644 index 0000000..26ae12e --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/feedback/v1alpha1/vote.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + context "context" + + feedbackv1alpha1 "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1" + scheme "go.miloapis.com/feedback/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// VotesGetter has a method to return a VoteInterface. +// A group's client should implement this interface. +type VotesGetter interface { + Votes() VoteInterface +} + +// VoteInterface has methods to work with Vote resources. +type VoteInterface interface { + Create(ctx context.Context, vote *feedbackv1alpha1.Vote, opts v1.CreateOptions) (*feedbackv1alpha1.Vote, error) + Update(ctx context.Context, vote *feedbackv1alpha1.Vote, opts v1.UpdateOptions) (*feedbackv1alpha1.Vote, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, vote *feedbackv1alpha1.Vote, opts v1.UpdateOptions) (*feedbackv1alpha1.Vote, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*feedbackv1alpha1.Vote, error) + List(ctx context.Context, opts v1.ListOptions) (*feedbackv1alpha1.VoteList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *feedbackv1alpha1.Vote, err error) + VoteExpansion +} + +// votes implements VoteInterface +type votes struct { + *gentype.ClientWithList[*feedbackv1alpha1.Vote, *feedbackv1alpha1.VoteList] +} + +// newVotes returns a Votes +func newVotes(c *FeedbackV1alpha1Client) *votes { + return &votes{ + gentype.NewClientWithList[*feedbackv1alpha1.Vote, *feedbackv1alpha1.VoteList]( + "votes", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *feedbackv1alpha1.Vote { return &feedbackv1alpha1.Vote{} }, + func() *feedbackv1alpha1.VoteList { return &feedbackv1alpha1.VoteList{} }, + ), + } +} diff --git a/pkg/generated/openapi/zz_generated.openapi.go b/pkg/generated/openapi/zz_generated.openapi.go index 548a139..ae6a485 100644 --- a/pkg/generated/openapi/zz_generated.openapi.go +++ b/pkg/generated/openapi/zz_generated.openapi.go @@ -16,109 +16,185 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogSource": schema_pkg_apis_feedback_v1alpha1_ChangelogSource(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSource": schema_pkg_apis_feedback_v1alpha1_FeedbackSource(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceList": schema_pkg_apis_feedback_v1alpha1_FeedbackSourceList(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceSpec": schema_pkg_apis_feedback_v1alpha1_FeedbackSourceSpec(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceStatus": schema_pkg_apis_feedback_v1alpha1_FeedbackSourceStatus(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubSource": schema_pkg_apis_feedback_v1alpha1_GitHubSource(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.IssueSelector": schema_pkg_apis_feedback_v1alpha1_IssueSelector(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.MilestoneSource": schema_pkg_apis_feedback_v1alpha1_MilestoneSource(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ProjectRef": schema_pkg_apis_feedback_v1alpha1_ProjectRef(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RateLimitStatus": schema_pkg_apis_feedback_v1alpha1_RateLimitStatus(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReconcileStatus": schema_pkg_apis_feedback_v1alpha1_ReconcileStatus(ref), - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RepositorySelector": schema_pkg_apis_feedback_v1alpha1_RepositorySelector(ref), - resource.Quantity{}.OpenAPIModelName(): schema_apimachinery_pkg_api_resource_Quantity(ref), - v1.APIGroup{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroup(ref), - v1.APIGroupList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroupList(ref), - v1.APIResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResource(ref), - v1.APIResourceList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResourceList(ref), - v1.APIVersions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIVersions(ref), - v1.ApplyOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ApplyOptions(ref), - v1.Condition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Condition(ref), - v1.CreateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_CreateOptions(ref), - v1.DeleteOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_DeleteOptions(ref), - v1.Duration{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Duration(ref), - v1.FieldSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), - v1.FieldsV1{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldsV1(ref), - v1.GetOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GetOptions(ref), - v1.GroupKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupKind(ref), - v1.GroupResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupResource(ref), - v1.GroupVersion{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersion(ref), - v1.GroupVersionForDiscovery{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - v1.GroupVersionKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionKind(ref), - v1.GroupVersionResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionResource(ref), - v1.InternalEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_InternalEvent(ref), - v1.LabelSelector{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelector(ref), - v1.LabelSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - v1.List{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_List(ref), - v1.ListMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListMeta(ref), - v1.ListOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListOptions(ref), - v1.ManagedFieldsEntry{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - v1.MicroTime{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_MicroTime(ref), - v1.ObjectMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ObjectMeta(ref), - v1.OwnerReference{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_OwnerReference(ref), - v1.PartialObjectMetadata{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - v1.PartialObjectMetadataList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - v1.Patch{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Patch(ref), - v1.PatchOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PatchOptions(ref), - v1.Preconditions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Preconditions(ref), - v1.RootPaths{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_RootPaths(ref), - v1.ServerAddressByClientCIDR{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - v1.ShardInfo{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ShardInfo(ref), - v1.Status{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Status(ref), - v1.StatusCause{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusCause(ref), - v1.StatusDetails{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusDetails(ref), - v1.Table{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Table(ref), - v1.TableColumnDefinition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - v1.TableOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableOptions(ref), - v1.TableRow{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRow(ref), - v1.TableRowCondition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRowCondition(ref), - v1.Time{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Time(ref), - v1.Timestamp{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Timestamp(ref), - v1.TypeMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TypeMeta(ref), - v1.UpdateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_UpdateOptions(ref), - v1.WatchEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_WatchEvent(ref), - runtime.RawExtension{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - runtime.TypeMeta{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - runtime.Unknown{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - version.Info{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_version_Info(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentReference": schema_pkg_apis_feedback_v1alpha1_AttachmentReference(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUpload": schema_pkg_apis_feedback_v1alpha1_AttachmentUpload(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUploadList": schema_pkg_apis_feedback_v1alpha1_AttachmentUploadList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUploadSpec": schema_pkg_apis_feedback_v1alpha1_AttachmentUploadSpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUploadStatus": schema_pkg_apis_feedback_v1alpha1_AttachmentUploadStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogEntry": schema_pkg_apis_feedback_v1alpha1_ChangelogEntry(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogEntryList": schema_pkg_apis_feedback_v1alpha1_ChangelogEntryList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogEntryStatus": schema_pkg_apis_feedback_v1alpha1_ChangelogEntryStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogReactions": schema_pkg_apis_feedback_v1alpha1_ChangelogReactions(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogSource": schema_pkg_apis_feedback_v1alpha1_ChangelogSource(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.CreditGrantReference": schema_pkg_apis_feedback_v1alpha1_CreditGrantReference(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryEvent": schema_pkg_apis_feedback_v1alpha1_DeliveryEvent(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryStatus": schema_pkg_apis_feedback_v1alpha1_DeliveryStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryWork": schema_pkg_apis_feedback_v1alpha1_DeliveryWork(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DraftIssue": schema_pkg_apis_feedback_v1alpha1_DraftIssue(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ExternalReporter": schema_pkg_apis_feedback_v1alpha1_ExternalReporter(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSource": schema_pkg_apis_feedback_v1alpha1_FeedbackSource(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceList": schema_pkg_apis_feedback_v1alpha1_FeedbackSourceList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceSpec": schema_pkg_apis_feedback_v1alpha1_FeedbackSourceSpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceStatus": schema_pkg_apis_feedback_v1alpha1_FeedbackSourceStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubIssue": schema_pkg_apis_feedback_v1alpha1_GitHubIssue(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubLink": schema_pkg_apis_feedback_v1alpha1_GitHubLink(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubSource": schema_pkg_apis_feedback_v1alpha1_GitHubSource(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.IssueSelector": schema_pkg_apis_feedback_v1alpha1_IssueSelector(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.MilestoneSource": schema_pkg_apis_feedback_v1alpha1_MilestoneSource(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PartShipped": schema_pkg_apis_feedback_v1alpha1_PartShipped(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Post": schema_pkg_apis_feedback_v1alpha1_Post(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostList": schema_pkg_apis_feedback_v1alpha1_PostList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQuery": schema_pkg_apis_feedback_v1alpha1_PostQuery(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryFilter": schema_pkg_apis_feedback_v1alpha1_PostQueryFilter(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryList": schema_pkg_apis_feedback_v1alpha1_PostQueryList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryResult": schema_pkg_apis_feedback_v1alpha1_PostQueryResult(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQuerySpec": schema_pkg_apis_feedback_v1alpha1_PostQuerySpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryStatus": schema_pkg_apis_feedback_v1alpha1_PostQueryStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostReference": schema_pkg_apis_feedback_v1alpha1_PostReference(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostSpec": schema_pkg_apis_feedback_v1alpha1_PostSpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostStatus": schema_pkg_apis_feedback_v1alpha1_PostStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostVotes": schema_pkg_apis_feedback_v1alpha1_PostVotes(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ProjectRef": schema_pkg_apis_feedback_v1alpha1_ProjectRef(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PublicVoter": schema_pkg_apis_feedback_v1alpha1_PublicVoter(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PullRequestRef": schema_pkg_apis_feedback_v1alpha1_PullRequestRef(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RateLimitStatus": schema_pkg_apis_feedback_v1alpha1_RateLimitStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReconcileStatus": schema_pkg_apis_feedback_v1alpha1_ReconcileStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Release": schema_pkg_apis_feedback_v1alpha1_Release(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReleaseList": schema_pkg_apis_feedback_v1alpha1_ReleaseList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReleaseStatus": schema_pkg_apis_feedback_v1alpha1_ReleaseStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RepositorySelector": schema_pkg_apis_feedback_v1alpha1_RepositorySelector(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAcknowledgement": schema_pkg_apis_feedback_v1alpha1_SecurityAcknowledgement(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAcknowledgementList": schema_pkg_apis_feedback_v1alpha1_SecurityAcknowledgementList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAcknowledgementStatus": schema_pkg_apis_feedback_v1alpha1_SecurityAcknowledgementStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAdvisory": schema_pkg_apis_feedback_v1alpha1_SecurityAdvisory(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityCredit": schema_pkg_apis_feedback_v1alpha1_SecurityCredit(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReport": schema_pkg_apis_feedback_v1alpha1_SecurityReport(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportContext": schema_pkg_apis_feedback_v1alpha1_SecurityReportContext(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportInternal": schema_pkg_apis_feedback_v1alpha1_SecurityReportInternal(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportList": schema_pkg_apis_feedback_v1alpha1_SecurityReportList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportSpec": schema_pkg_apis_feedback_v1alpha1_SecurityReportSpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportStatus": schema_pkg_apis_feedback_v1alpha1_SecurityReportStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReward": schema_pkg_apis_feedback_v1alpha1_SecurityReward(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityTimelineEntry": schema_pkg_apis_feedback_v1alpha1_SecurityTimelineEntry(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SimilarPost": schema_pkg_apis_feedback_v1alpha1_SimilarPost(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Submission": schema_pkg_apis_feedback_v1alpha1_Submission(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionContext": schema_pkg_apis_feedback_v1alpha1_SubmissionContext(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionList": schema_pkg_apis_feedback_v1alpha1_SubmissionList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionReview": schema_pkg_apis_feedback_v1alpha1_SubmissionReview(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionReviewOutcome": schema_pkg_apis_feedback_v1alpha1_SubmissionReviewOutcome(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionReviewSpec": schema_pkg_apis_feedback_v1alpha1_SubmissionReviewSpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionSpec": schema_pkg_apis_feedback_v1alpha1_SubmissionSpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionStatus": schema_pkg_apis_feedback_v1alpha1_SubmissionStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionToSecurityReport": schema_pkg_apis_feedback_v1alpha1_SubmissionToSecurityReport(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionTriage": schema_pkg_apis_feedback_v1alpha1_SubmissionTriage(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Subscription": schema_pkg_apis_feedback_v1alpha1_Subscription(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubscriptionList": schema_pkg_apis_feedback_v1alpha1_SubscriptionList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubscriptionSpec": schema_pkg_apis_feedback_v1alpha1_SubscriptionSpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Vote": schema_pkg_apis_feedback_v1alpha1_Vote(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.VoteList": schema_pkg_apis_feedback_v1alpha1_VoteList(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.VoteSpec": schema_pkg_apis_feedback_v1alpha1_VoteSpec(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.VoteStatus": schema_pkg_apis_feedback_v1alpha1_VoteStatus(ref), + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.WorkItem": schema_pkg_apis_feedback_v1alpha1_WorkItem(ref), + resource.Quantity{}.OpenAPIModelName(): schema_apimachinery_pkg_api_resource_Quantity(ref), + v1.APIGroup{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroup(ref), + v1.APIGroupList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroupList(ref), + v1.APIResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResource(ref), + v1.APIResourceList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResourceList(ref), + v1.APIVersions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIVersions(ref), + v1.ApplyOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ApplyOptions(ref), + v1.Condition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Condition(ref), + v1.CreateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_CreateOptions(ref), + v1.DeleteOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_DeleteOptions(ref), + v1.Duration{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Duration(ref), + v1.FieldSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), + v1.FieldsV1{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldsV1(ref), + v1.GetOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GetOptions(ref), + v1.GroupKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupKind(ref), + v1.GroupResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupResource(ref), + v1.GroupVersion{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersion(ref), + v1.GroupVersionForDiscovery{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + v1.GroupVersionKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionKind(ref), + v1.GroupVersionResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionResource(ref), + v1.InternalEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_InternalEvent(ref), + v1.LabelSelector{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelector(ref), + v1.LabelSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + v1.List{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_List(ref), + v1.ListMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListMeta(ref), + v1.ListOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListOptions(ref), + v1.ManagedFieldsEntry{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + v1.MicroTime{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_MicroTime(ref), + v1.ObjectMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ObjectMeta(ref), + v1.OwnerReference{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_OwnerReference(ref), + v1.PartialObjectMetadata{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + v1.PartialObjectMetadataList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + v1.Patch{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Patch(ref), + v1.PatchOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PatchOptions(ref), + v1.Preconditions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Preconditions(ref), + v1.RootPaths{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_RootPaths(ref), + v1.ServerAddressByClientCIDR{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + v1.ShardInfo{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ShardInfo(ref), + v1.Status{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Status(ref), + v1.StatusCause{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusCause(ref), + v1.StatusDetails{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusDetails(ref), + v1.Table{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Table(ref), + v1.TableColumnDefinition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + v1.TableOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableOptions(ref), + v1.TableRow{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRow(ref), + v1.TableRowCondition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRowCondition(ref), + v1.Time{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Time(ref), + v1.Timestamp{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Timestamp(ref), + v1.TypeMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TypeMeta(ref), + v1.UpdateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_UpdateOptions(ref), + v1.WatchEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_WatchEvent(ref), + runtime.RawExtension{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + runtime.TypeMeta{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + runtime.Unknown{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + version.Info{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_version_Info(ref), } } -func schema_pkg_apis_feedback_v1alpha1_ChangelogSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_AttachmentReference(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ChangelogSource is the discussion category that becomes changelog entries.", + Description: "AttachmentReference points at a file uploaded with an AttachmentUpload.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "repository": { + "name": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Name is the file name shown to reviewers.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "discussionCategory": { + "contentType": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "ContentType is the file's media type.", + Type: []string{"string"}, + Format: "", + }, + }, + "uploadRef": { + SchemaProps: spec.SchemaProps{ + Description: "UploadRef is status.uploadRef from the AttachmentUpload.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"repository", "discussionCategory"}, + Required: []string{"name", "uploadRef"}, }, }, } } -func schema_pkg_apis_feedback_v1alpha1_FeedbackSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_AttachmentUpload(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "FeedbackSource configures what the feedback service syncs from one GitHub organization and how GitHub fields map onto posts. There is one per org.\n\nFeedbackSource is a Platform resource stored in etcd.", + Description: "AttachmentUpload stores a file in private object storage and returns a reference to use in a Submission or SecurityReport. Create it in the user context before creating the resource that uses it. It is not stored as an API object; the file is only served back to its uploader and staff (or the Security Team, for security reports).\n\nThe design proposed attachments subresources on submissions and security reports, but a subresource needs its parent to exist first. Uploads happen before the parent is created, so they are a create-only resource instead.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -144,28 +220,29 @@ func schema_pkg_apis_feedback_v1alpha1_FeedbackSource(ref common.ReferenceCallba "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceSpec"), + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUploadSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceStatus"), + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUploadStatus"), }, }, }, + Required: []string{"spec"}, }, }, Dependencies: []string{ - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceSpec", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUploadSpec", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUploadStatus", v1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_feedback_v1alpha1_FeedbackSourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_AttachmentUploadList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "FeedbackSourceList is a list of FeedbackSource.", + Description: "AttachmentUploadList is required by the API machinery; uploads cannot be listed.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -194,7 +271,7 @@ func schema_pkg_apis_feedback_v1alpha1_FeedbackSourceList(ref common.ReferenceCa Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSource"), + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUpload"), }, }, }, @@ -205,195 +282,206 @@ func schema_pkg_apis_feedback_v1alpha1_FeedbackSourceList(ref common.ReferenceCa }, }, Dependencies: []string{ - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSource", v1.ListMeta{}.OpenAPIModelName()}, + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentUpload", v1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_feedback_v1alpha1_FeedbackSourceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_AttachmentUploadSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "FeedbackSourceSpec defines what to sync and how to map it.", + Description: "AttachmentUploadSpec is the file.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "github": { + "purpose": { SchemaProps: spec.SchemaProps{ - Description: "GitHub configures the GitHub organization this source syncs.", - Default: map[string]interface{}{}, - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubSource"), + Description: "Possible enum values:\n - `\"SecurityReport\"`\n - `\"Submission\"`", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"SecurityReport", "Submission"}, }, }, - "statusMapping": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "StatusMapping maps Enhancements project Status option names to post statuses. The empty key matches items with no Status set.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Name is the file name.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "categoryMapping": { + "contentType": { SchemaProps: spec.SchemaProps{ - Description: "CategoryMapping maps GitHub label names to post categories.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "ContentType must be an allowed type, e.g. image/png or text/plain.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data is the file content, base64-encoded in JSON. Size limits apply.", + Type: []string{"string"}, + Format: "byte", }, }, }, - Required: []string{"github"}, + Required: []string{"purpose", "name", "contentType", "data"}, }, }, - Dependencies: []string{ - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubSource"}, } } -func schema_pkg_apis_feedback_v1alpha1_FeedbackSourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_AttachmentUploadStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "FeedbackSourceStatus reports sync health for the source.", + Description: "AttachmentUploadStatus identifies the stored file.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "conditions": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "type", - }, - "x-kubernetes-list-type": "map", - }, - }, - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref(v1.Condition{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - "lastWebhookAt": { + "uploadRef": { SchemaProps: spec.SchemaProps{ - Description: "LastWebhookAt is when the last webhook for this source was processed.", - Ref: ref(v1.Time{}.OpenAPIModelName()), + Description: "UploadRef goes in AttachmentReference.uploadRef.", + Type: []string{"string"}, + Format: "", }, }, - "lastReconcile": { + "size": { SchemaProps: spec.SchemaProps{ - Description: "LastReconcile describes the last completed reconcile.", - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReconcileStatus"), + Type: []string{"integer"}, + Format: "int64", }, }, - "rateLimit": { + "sha256": { SchemaProps: spec.SchemaProps{ - Description: "RateLimit is the GitHub rate limit for this installation.", - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RateLimitStatus"), + Description: "SHA256 is the hex digest of the content.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RateLimitStatus", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReconcileStatus", v1.Condition{}.OpenAPIModelName(), v1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_feedback_v1alpha1_GitHubSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_ChangelogEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GitHubSource identifies a GitHub organization and the content to sync from it.", + Description: "ChangelogEntry maps to a discussion in the FeedbackSource's changelog category. Only feedback-sync writes entries; everyone can read them.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "org": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Org is the GitHub organization login.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "installationID": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "InstallationID is the GitHub App installation ID for Org.", - Default: 0, - Type: []string{"integer"}, - Format: "int64", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "repositories": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Repositories selects which public repositories are synced. Private repositories are always skipped.", - Default: map[string]interface{}{}, - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RepositorySelector"), + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), }, }, - "issues": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Issues selects which issues become posts. An issue is included when it matches any issue type or label, and is not excluded.", - Default: map[string]interface{}{}, - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.IssueSelector"), + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogEntryStatus"), }, }, - "project": { + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogEntryStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_ChangelogEntryList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ChangelogEntryList is a list of ChangelogEntry.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Project is the GitHub project that provides status and receives vote totals.", - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ProjectRef"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "milestones": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Milestones configures the repository whose milestones become releases.", - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.MilestoneSource"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "changelog": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Changelog configures the discussion category that becomes changelog entries.", - Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogSource"), + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogEntry"), + }, + }, + }, }, }, }, - Required: []string{"org", "installationID"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogSource", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.IssueSelector", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.MilestoneSource", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ProjectRef", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RepositorySelector"}, + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogEntry", v1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_feedback_v1alpha1_IssueSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_ChangelogEntryStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IssueSelector selects issues by type and label.", + Description: "ChangelogEntryStatus is synced from the discussion.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "issueTypes": { + "title": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "publishedAt": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + "categories": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "set", }, }, SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Categories are mapped from discussion labels.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -404,14 +492,22 @@ func schema_pkg_apis_feedback_v1alpha1_IssueSelector(ref common.ReferenceCallbac }, }, }, - "labels": { + "bodyHTML": { + SchemaProps: spec.SchemaProps{ + Description: "BodyHTML is the discussion body, sanitised like post bodies.", + Type: []string{"string"}, + Format: "", + }, + }, + "posts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "set", }, }, SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Posts are the names of posts referenced in the body.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -422,14 +518,15 @@ func schema_pkg_apis_feedback_v1alpha1_IssueSelector(ref common.ReferenceCallbac }, }, }, - "excludeLabels": { + "issueRefs": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "set", }, }, SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "IssueRefs are every issue referenced in the body, as \"/#\". A reference to a post's work item rather than the post marks that post part-shipped.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -440,147 +537,3340 @@ func schema_pkg_apis_feedback_v1alpha1_IssueSelector(ref common.ReferenceCallbac }, }, }, + "reactions": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogReactions"), + }, + }, + "github": { + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubLink"), + }, + }, }, + Required: []string{"title", "publishedAt"}, }, }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogReactions", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubLink", v1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_feedback_v1alpha1_MilestoneSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_ChangelogReactions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "MilestoneSource is the repository whose milestones become releases.", + Description: "ChangelogReactions are reaction counts on the discussion.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "repository": { + "thumbsUp": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"integer"}, + Format: "int32", }, }, }, - Required: []string{"repository"}, }, }, } } -func schema_pkg_apis_feedback_v1alpha1_ProjectRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_ChangelogSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectRef identifies a GitHub ProjectV2 and the fields the service uses.", + Description: "ChangelogSource is the discussion category that becomes changelog entries.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "owner": { + "repository": { SchemaProps: spec.SchemaProps{ - Description: "Owner is the org that owns the project.", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "number": { + "discussionCategory": { SchemaProps: spec.SchemaProps{ - Description: "Number is the project number.", - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"repository", "discussionCategory"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_CreditGrantReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CreditGrantReference names a billing.miloapis.com CreditGrant.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_DeliveryEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DeliveryEvent is one stage change.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "stage": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"closed\"`\n - `\"picked-up\"`\n - `\"planned\"`\n - `\"released\"`\n - `\"requested\"`", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"closed", "picked-up", "planned", "released", "requested"}, + }, + }, + "at": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + "cause": { + SchemaProps: spec.SchemaProps{ + Description: "Cause describes what moved the stage, e.g. a pull request opening.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"stage", "at"}, + }, + }, + Dependencies: []string{ + v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_DeliveryStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DeliveryStatus tracks a post's delivery stage and the work behind it.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "stage": { + SchemaProps: spec.SchemaProps{ + Description: "Stage is the highest stage whose condition currently holds.\n\nPossible enum values:\n - `\"closed\"`\n - `\"picked-up\"`\n - `\"planned\"`\n - `\"released\"`\n - `\"requested\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"closed", "picked-up", "planned", "released", "requested"}, + }, + }, + "highestNotified": { + SchemaProps: spec.SchemaProps{ + Description: "HighestNotified is the highest stage announced to followers. A stage is only announced when it passes this one.\n\nPossible enum values:\n - `\"closed\"`\n - `\"picked-up\"`\n - `\"planned\"`\n - `\"released\"`\n - `\"requested\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"closed", "picked-up", "planned", "released", "requested"}, + }, + }, + "history": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "History records each stage change.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryEvent"), + }, + }, + }, + }, + }, + "work": { + SchemaProps: spec.SchemaProps{ + Description: "Work is the related work behind the post.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryWork"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryEvent", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryWork"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_DeliveryWork(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DeliveryWork summarises sub-issues and linked pull requests. Only public issues and pull requests are included.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "total": { + SchemaProps: spec.SchemaProps{ + Description: "Total and Done count sub-issues when there are any, otherwise linked pull requests.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "done": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.WorkItem"), + }, + }, + }, + }, + }, + "partShipped": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "PartShipped records changelog entries that shipped part of the work.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PartShipped"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PartShipped", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.WorkItem"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_DraftIssue(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DraftIssue is a proposed public issue.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "title": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "body": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"title", "body"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_ExternalReporter(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ExternalReporter identifies a reporter outside Datum.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "email": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "githubLogin": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_FeedbackSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FeedbackSource configures what the feedback service syncs from one GitHub organization and how GitHub fields map onto posts. There is one per org.\n\nFeedbackSource is a Platform resource stored in etcd.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceSpec", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSourceStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_FeedbackSourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FeedbackSourceList is a list of FeedbackSource.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSource"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.FeedbackSource", v1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_FeedbackSourceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FeedbackSourceSpec defines what to sync and how to map it.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "github": { + SchemaProps: spec.SchemaProps{ + Description: "GitHub configures the GitHub organization this source syncs.", + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubSource"), + }, + }, + "statusMapping": { + SchemaProps: spec.SchemaProps{ + Description: "StatusMapping maps Enhancements project Status option names to post statuses. The empty key matches items with no Status set.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"backlog", "closed", "in-progress", "none", "on-deck", "planning", "shipped"}, + }, + }, + }, + }, + }, + "categoryMapping": { + SchemaProps: spec.SchemaProps{ + Description: "CategoryMapping maps GitHub label names to post categories.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"github"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubSource"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_FeedbackSourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FeedbackSourceStatus reports sync health for the source.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Condition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "lastWebhookAt": { + SchemaProps: spec.SchemaProps{ + Description: "LastWebhookAt is when the last webhook for this source was processed.", + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + "lastReconcile": { + SchemaProps: spec.SchemaProps{ + Description: "LastReconcile describes the last completed reconcile.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReconcileStatus"), + }, + }, + "rateLimit": { + SchemaProps: spec.SchemaProps{ + Description: "RateLimit is the GitHub rate limit for this installation.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RateLimitStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RateLimitStatus", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReconcileStatus", v1.Condition{}.OpenAPIModelName(), v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_GitHubIssue(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "GitHubIssue identifies the issue backing a post.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "org": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "repository": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "number": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "url": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "State is \"open\" or \"closed\".", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "stateReason": { + SchemaProps: spec.SchemaProps{ + Description: "StateReason is GitHub's close reason: \"completed\" or \"not_planned\".", + Type: []string{"string"}, + Format: "", + }, + }, + "createdAt": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + "updatedAt": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"org", "repository", "number", "url", "state"}, + }, + }, + Dependencies: []string{ + v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_GitHubLink(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "GitHubLink identifies a GitHub issue, milestone or discussion.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "url": { + SchemaProps: spec.SchemaProps{ + Description: "URL is the HTML URL on github.com.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "number": { + SchemaProps: spec.SchemaProps{ + Description: "Number is the issue, milestone or discussion number.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"url", "number"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_GitHubSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "GitHubSource identifies a GitHub organization and the content to sync from it.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "org": { + SchemaProps: spec.SchemaProps{ + Description: "Org is the GitHub organization login.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "installationID": { + SchemaProps: spec.SchemaProps{ + Description: "InstallationID is the GitHub App installation ID for Org.", + Default: 0, + Type: []string{"integer"}, + Format: "int64", + }, + }, + "repositories": { + SchemaProps: spec.SchemaProps{ + Description: "Repositories selects which public repositories are synced. Private repositories are always skipped.", + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RepositorySelector"), + }, + }, + "issues": { + SchemaProps: spec.SchemaProps{ + Description: "Issues selects which issues become posts. An issue is included when it matches any issue type or label, and is not excluded.", + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.IssueSelector"), + }, + }, + "project": { + SchemaProps: spec.SchemaProps{ + Description: "Project is the GitHub project that provides status and receives vote totals.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ProjectRef"), + }, + }, + "milestones": { + SchemaProps: spec.SchemaProps{ + Description: "Milestones configures the repository whose milestones become releases.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.MilestoneSource"), + }, + }, + "changelog": { + SchemaProps: spec.SchemaProps{ + Description: "Changelog configures the discussion category that becomes changelog entries.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogSource"), + }, + }, + }, + Required: []string{"org", "installationID"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ChangelogSource", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.IssueSelector", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.MilestoneSource", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ProjectRef", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.RepositorySelector"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_IssueSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IssueSelector selects issues by type and label.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "issueTypes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "labels": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "excludeLabels": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_MilestoneSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MilestoneSource is the repository whose milestones become releases.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "repository": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"repository"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PartShipped(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PartShipped records a changelog entry that linked a work item before the post itself was released.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "changelog": { + SchemaProps: spec.SchemaProps{ + Description: "Changelog is the ChangelogEntry name.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "at": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"changelog", "at"}, + }, + }, + Dependencies: []string{ + v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_Post(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Post is a public roadmap item synced from a GitHub issue. Every Post is backed by a GitHub issue; unreviewed feedback is a Submission, never a Post.\n\nThe name is \"..\", e.g. datum-cloud.enhancements.912.\n\nOnly the feedback-sync service account creates, updates and deletes posts and writes their status. Staff can only patch spec.hidden. Everyone else can read them.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostSpec", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostList is a list of Post.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Post"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Post", v1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostQuery(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostQuery searches, filters and sorts posts. Create it and read the results from status; it is not stored.\n\n\tapiVersion: feedback.miloapis.com/v1alpha1\n\tkind: PostQuery\n\tspec:\n\t text: wildcard hostnames\n\t filter:\n\t state: [planning, on-deck, in-progress]\n\t sort: top\n\t limit: 20", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQuerySpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQuerySpec", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostQueryFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostQueryFilter narrows PostQuery results. Every set field must match.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "state": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"backlog", "closed", "in-progress", "none", "on-deck", "planning", "shipped"}, + }, + }, + }, + }, + }, + "categories": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "orgs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Orgs filters by GitHub organization.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "deliveryStage": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"closed", "picked-up", "planned", "released", "requested"}, + }, + }, + }, + }, + }, + "votedByMe": { + SchemaProps: spec.SchemaProps{ + Description: "VotedByMe keeps posts the caller voted on. User context only.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "followedByMe": { + SchemaProps: spec.SchemaProps{ + Description: "FollowedByMe keeps posts the caller follows. User context only.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostQueryList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostQueryList is required by the API machinery; PostQuery cannot be listed.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQuery"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQuery", v1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostQueryResult(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostQueryResult is one post in the results.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the Post name.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "title": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"backlog\"`\n - `\"closed\"`\n - `\"in-progress\"`\n - `\"none\"`\n - `\"on-deck\"`\n - `\"planning\"`\n - `\"shipped\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"backlog", "closed", "in-progress", "none", "on-deck", "planning", "shipped"}, + }, + }, + "categories": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "votes": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostVotes"), + }, + }, + "deliveryStage": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"closed\"`\n - `\"picked-up\"`\n - `\"planned\"`\n - `\"released\"`\n - `\"requested\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"closed", "picked-up", "planned", "released", "requested"}, + }, + }, + "votedByMe": { + SchemaProps: spec.SchemaProps{ + Description: "VotedByMe is set in the user context.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "score": { + SchemaProps: spec.SchemaProps{ + Description: "Score is the relevance or similarity score, when text or similarTo is used.", + Type: []string{"number"}, + Format: "double", + }, + }, + }, + Required: []string{"name", "title"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostVotes"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostQuerySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostQuerySpec describes the query.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "text": { + SchemaProps: spec.SchemaProps{ + Description: "Text is a keyword search, answered by the search service.", + Type: []string{"string"}, + Format: "", + }, + }, + "similarTo": { + SchemaProps: spec.SchemaProps{ + Description: "SimilarTo is draft feedback text. Results are posts with similar embeddings, for duplicate checks.", + Type: []string{"string"}, + Format: "", + }, + }, + "filter": { + SchemaProps: spec.SchemaProps{ + Description: "Filter narrows the results.", + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryFilter"), + }, + }, + "sort": { + SchemaProps: spec.SchemaProps{ + Description: "Sort orders the results. Defaults to relevance when text or similarTo is set, otherwise top.\n\nPossible enum values:\n - `\"newest\"` sorts by GitHub createdAt, newest first.\n - `\"recentlyChanged\"` sorts by the latest delivery history entry.\n - `\"relevance\"` is the default when text or similarTo is set.\n - `\"top\"` sorts by votes.total, highest first.\n - `\"trending\"` sorts by votes.trendingScore.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"newest", "recentlyChanged", "relevance", "top", "trending"}, + }, + }, + "limit": { + SchemaProps: spec.SchemaProps{ + Description: "Limit is the page size.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "continue": { + SchemaProps: spec.SchemaProps{ + Description: "Continue is status.continue from the previous page.", + Type: []string{"string"}, + Format: "", + }, + }, + "facets": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Facets names the fields to count values for: state, categories, orgs or deliveryStage.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryFilter"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostQueryStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostQueryStatus carries the results.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "results": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryResult"), + }, + }, + }, + }, + }, + "facets": { + SchemaProps: spec.SchemaProps{ + Description: "Facets maps each requested field to value counts.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + }, + }, + }, + "continue": { + SchemaProps: spec.SchemaProps{ + Description: "Continue fetches the next page. Empty on the last page.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostQueryResult"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostReference names a Post.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the Post, e.g. datum-cloud.enhancements.912.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostSpec holds the fields staff control.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "hidden": { + SchemaProps: spec.SchemaProps{ + Description: "Hidden removes the post from every client and from search.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostStatus holds the fields synced from GitHub and derived by the service.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "title": { + SchemaProps: spec.SchemaProps{ + Description: "Title is the issue title.", + Type: []string{"string"}, + Format: "", + }, + }, + "summary": { + SchemaProps: spec.SchemaProps{ + Description: "Summary is a plain-text excerpt of the body.", + Type: []string{"string"}, + Format: "", + }, + }, + "bodyHTML": { + SchemaProps: spec.SchemaProps{ + Description: "BodyHTML is the issue body, sanitised against an allow-list.", + Type: []string{"string"}, + Format: "", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "State is the public status, mapped from the Enhancements project.\n\nPossible enum values:\n - `\"backlog\"`\n - `\"closed\"`\n - `\"in-progress\"`\n - `\"none\"`\n - `\"on-deck\"`\n - `\"planning\"`\n - `\"shipped\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"backlog", "closed", "in-progress", "none", "on-deck", "planning", "shipped"}, + }, + }, + "categories": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Categories are mapped from labels by the FeedbackSource.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "labels": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Labels are the issue's GitHub labels.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "issueType": { + SchemaProps: spec.SchemaProps{ + Description: "IssueType is the GitHub issue type, e.g. Enhancement.", + Type: []string{"string"}, + Format: "", + }, + }, + "github": { + SchemaProps: spec.SchemaProps{ + Description: "GitHub identifies the backing issue.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubIssue"), + }, + }, + "release": { + SchemaProps: spec.SchemaProps{ + Description: "Release is the name of the Release whose milestone the issue is on.", + Type: []string{"string"}, + Format: "", + }, + }, + "votes": { + SchemaProps: spec.SchemaProps{ + Description: "Votes are the vote totals.", + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostVotes"), + }, + }, + "publicVoters": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "PublicVoters are up to 10 voters who opted in to showing their votes.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PublicVoter"), + }, + }, + }, + }, + }, + "delivery": { + SchemaProps: spec.SchemaProps{ + Description: "Delivery tracks the post from request to release.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryStatus"), + }, + }, + "lastSyncedAt": { + SchemaProps: spec.SchemaProps{ + Description: "LastSyncedAt is when feedback-sync last wrote this post.", + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DeliveryStatus", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubIssue", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostVotes", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PublicVoter", v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PostVotes(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PostVotes are vote totals for a post.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "total": { + SchemaProps: spec.SchemaProps{ + Description: "Total is Datum votes plus GitHub 👍, minus people matched as doing both.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "datum": { + SchemaProps: spec.SchemaProps{ + Description: "Datum is the number of Vote resources.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "github": { + SchemaProps: spec.SchemaProps{ + Description: "GitHub is the 👍 reaction count on the issue.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "trendingScore": { + SchemaProps: spec.SchemaProps{ + Description: "TrendingScore weights votes with a 7-day half-life.", + Type: []string{"number"}, + Format: "double", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_ProjectRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ProjectRef identifies a GitHub ProjectV2 and the fields the service uses.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner is the org that owns the project.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "number": { + SchemaProps: spec.SchemaProps{ + Description: "Number is the project number.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "statusField": { + SchemaProps: spec.SchemaProps{ + Description: "StatusField is the single-select field that holds item status.", + Type: []string{"string"}, + Format: "", + }, + }, + "votesField": { + SchemaProps: spec.SchemaProps{ + Description: "VotesField is the number field the service writes vote totals to.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"owner", "number"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PublicVoter(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PublicVoter is a voter who opted in to being shown.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "avatarURL": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"displayName"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_PullRequestRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PullRequestRef is a pull request linked to a work item.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "ref": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"ref", "state"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_RateLimitStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RateLimitStatus is a snapshot of the GitHub rate limit.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "remaining": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "resetAt": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"remaining", "resetAt"}, + }, + }, + Dependencies: []string{ + v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_ReconcileStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ReconcileStatus describes a completed reconcile.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "completedAt": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + "postsSynced": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"completedAt"}, + }, + }, + Dependencies: []string{ + v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_Release(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Release maps to a milestone in the FeedbackSource's milestones repository. Only feedback-sync writes releases; everyone can read them.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReleaseStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ReleaseStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_ReleaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ReleaseList is a list of Release.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Release"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Release", v1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_ReleaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ReleaseStatus is synced from the milestone.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "title": { + SchemaProps: spec.SchemaProps{ + Description: "Title is the milestone title, e.g. \"Hedy: 2.0\".", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "codename": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "dueOn": { + SchemaProps: spec.SchemaProps{ + Description: "DueOn is the milestone due date, as YYYY-MM-DD.", + Type: []string{"string"}, + Format: "", + }, + }, + "shipped": { + SchemaProps: spec.SchemaProps{ + Description: "Shipped is set when the milestone is closed.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "descriptionHTML": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "coverImage": { + SchemaProps: spec.SchemaProps{ + Description: "CoverImage is a key into the website's static assets.", + Type: []string{"string"}, + Format: "", + }, + }, + "posts": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Posts are the names of posts on the milestone.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "github": { + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubLink"), + }, + }, + }, + Required: []string{"title"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.GitHubLink"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_RepositorySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RepositorySelector includes and excludes repositories by name or glob.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "include": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "exclude": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityAcknowledgement(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityAcknowledgement is a read-only public credit for a fixed or disclosed SecurityReport whose reporter chose public credit. It holds only what the acknowledgements page shows.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAcknowledgementStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAcknowledgementStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityAcknowledgementList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityAcknowledgementList is a list of SecurityAcknowledgement.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAcknowledgement"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAcknowledgement", v1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityAcknowledgementStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityAcknowledgementStatus is the public credit.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "url": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "month": { + SchemaProps: spec.SchemaProps{ + Description: "Month is when the report was fixed, as YYYY-MM.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "severity": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"critical\"`\n - `\"high\"`\n - `\"informational\"`\n - `\"low\"`\n - `\"medium\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"critical", "high", "informational", "low", "medium"}, + }, + }, + }, + Required: []string{"name", "month"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityAdvisory(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityAdvisory is the published advisory.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "url": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "cve": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityCredit(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityCredit is the reporter's credit preference.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "public": { + SchemaProps: spec.SchemaProps{ + Description: "Public lists the reporter on the acknowledgements page once the report is Fixed or Disclosed.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "url": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityReport(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityReport is a private vulnerability report. Reporters create and read their own in the user context, without status.internal. Only the Security Team role can list reports and write status. Reports are never synced to GitHub, embedded, indexed or sent to the AI gateway, and are audited at Metadata level only.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportSpec", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityReportContext(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityReportContext is where the report came from.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "client": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"datumctl\"`\n - `\"email\"` and ClientGitHub are only used for security reports the Security Team logs on behalf of an external reporter.\n - `\"github\"`\n - `\"patch\"`\n - `\"portal\"`\n - `\"website\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"datumctl", "email", "github", "patch", "portal", "website"}, + }, + }, + "filedByAgent": { + SchemaProps: spec.SchemaProps{ + Description: "FiledByAgent is set when an agent (Patch, non-interactive datumctl) filed the report.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "organization": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "clientVersion": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityReportInternal(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityReportInternal is Security Team only.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "assignee": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "duplicateOf": { + SchemaProps: spec.SchemaProps{ + Description: "DuplicateOf is the name of the original report.", + Type: []string{"string"}, + Format: "", + }, + }, + "tracking": { + SchemaProps: spec.SchemaProps{ + Description: "Tracking links the private issue or draft advisory for the fix.", + Type: []string{"string"}, + Format: "", + }, + }, + "notes": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityReportList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityReportList is a list of SecurityReport.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReport"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReport", v1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityReportSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityReportSpec is what the reporter submitted.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "title": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "affected": { + SchemaProps: spec.SchemaProps{ + Description: "Affected is free text that helps routing, e.g. \"connectors\".", + Type: []string{"string"}, + Format: "", + }, + }, + "stepsToReproduce": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "impact": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "attachments": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Attachments reference files uploaded with AttachmentUpload for a security report.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentReference"), + }, + }, + }, + }, + }, + "credit": { + SchemaProps: spec.SchemaProps{ + Description: "Credit is how the reporter wants to be credited.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityCredit"), + }, + }, + "reporter": { + SchemaProps: spec.SchemaProps{ + Description: "Reporter is set only on reports the Security Team logs for someone without a Datum account (from email or GitHub private reporting).", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ExternalReporter"), + }, + }, + "context": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportContext"), + }, + }, + }, + Required: []string{"title", "description"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentReference", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.ExternalReporter", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityCredit", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportContext"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityReportStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityReportStatus is written by the Security Team.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"Disclosed\"`\n - `\"Duplicate\"`\n - `\"Fixed\"`\n - `\"Fixing\"`\n - `\"NotApplicable\"`\n - `\"Received\"`\n - `\"Triaged\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Disclosed", "Duplicate", "Fixed", "Fixing", "NotApplicable", "Received", "Triaged"}, + }, + }, + "severity": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"critical\"`\n - `\"high\"`\n - `\"informational\"`\n - `\"low\"`\n - `\"medium\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"critical", "high", "informational", "low", "medium"}, + }, + }, + "cvssVector": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason is shown to the reporter for NotApplicable and Duplicate.", + Type: []string{"string"}, + Format: "", + }, + }, + "timeline": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Timeline is visible to the reporter.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityTimelineEntry"), + }, + }, + }, + }, + }, + "advisory": { + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAdvisory"), + }, + }, + "reward": { + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReward"), + }, + }, + "internal": { + SchemaProps: spec.SchemaProps{ + Description: "Internal is visible to the Security Team only.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportInternal"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityAdvisory", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReportInternal", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityReward", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SecurityTimelineEntry"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityReward(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityReward records how the reporter was thanked.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"credits\"`\n - `\"none\"`\n - `\"swag\"`\n - `\"thanks\"`", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"credits", "none", "swag", "thanks"}, + }, + }, + "amount": { + SchemaProps: spec.SchemaProps{ + Description: "Amount is the credit amount, for kind credits.", + Type: []string{"string"}, + Format: "", + }, + }, + "creditGrantRef": { + SchemaProps: spec.SchemaProps{ + Description: "CreditGrantRef names the billing CreditGrant, for kind credits.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.CreditGrantReference"), + }, + }, + "grantedAt": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"kind"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.CreditGrantReference", v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SecurityTimelineEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityTimelineEntry is one phase change.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"Disclosed\"`\n - `\"Duplicate\"`\n - `\"Fixed\"`\n - `\"Fixing\"`\n - `\"NotApplicable\"`\n - `\"Received\"`\n - `\"Triaged\"`", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Disclosed", "Duplicate", "Fixed", "Fixing", "NotApplicable", "Received", "Triaged"}, + }, + }, + "at": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + "note": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"phase", "at"}, + }, + }, + Dependencies: []string{ + v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SimilarPost(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SimilarPost is a post that may cover the same feedback.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "score": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"number"}, + Format: "double", + }, + }, + }, + Required: []string{"name", "score"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_Submission(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Submission is private feedback waiting for a staff decision. Submitters create and read their own in the user context; staff list and review them in the platform context. Nothing in a submission reaches GitHub unless staff approve it, and then only the staff-edited public title and body.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionSpec", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionContext(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionContext is private context about where the feedback came from.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "client": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"datumctl\"`\n - `\"email\"` and ClientGitHub are only used for security reports the Security Team logs on behalf of an external reporter.\n - `\"github\"`\n - `\"patch\"`\n - `\"portal\"`\n - `\"website\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"datumctl", "email", "github", "patch", "portal", "website"}, + }, + }, + "pageURL": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "organization": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "project": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "requestIDs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "RequestIDs are recent API request IDs, for debugging.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "clientVersion": { + SchemaProps: spec.SchemaProps{ + Description: "ClientVersion is e.g. cloud-portal@2026.10.1.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionList is a list of Submission.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Submission"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Submission", v1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionReview(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionReview is the body of a create on submissions/{name}/review. Only staff in the platform context can create one. The response is the updated Submission.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionReviewSpec"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionReviewSpec", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionReviewOutcome(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionReviewOutcome records the staff decision.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "reviewer": { + SchemaProps: spec.SchemaProps{ + Description: "Reviewer is the staff member who decided. Staff only.", + Type: []string{"string"}, + Format: "", + }, + }, + "decision": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"Approved\"` creates a public issue from the submission.\n - `\"Merged\"` adds the submitter to an existing post.\n - `\"Rejected\"` closes the submission with a reason.", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Approved", "Merged", "Rejected"}, + }, + }, + "reviewedAt": { + SchemaProps: spec.SchemaProps{ + Ref: ref(v1.Time{}.OpenAPIModelName()), + }, + }, + "publicTitle": { + SchemaProps: spec.SchemaProps{ + Description: "PublicTitle and PublicBody are what goes to GitHub on approval.", + Type: []string{"string"}, + Format: "", + }, + }, + "publicBody": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "mergedInto": { + SchemaProps: spec.SchemaProps{ + Description: "MergedInto is the post name when the decision is Merged.", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason is shown to the submitter when the decision is Rejected.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"decision", "reviewedAt"}, + }, + }, + Dependencies: []string{ + v1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionReviewSpec is the decision.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "decision": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"Approved\"` creates a public issue from the submission.\n - `\"Merged\"` adds the submitter to an existing post.\n - `\"Rejected\"` closes the submission with a reason.", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Approved", "Merged", "Rejected"}, + }, + }, + "publicTitle": { + SchemaProps: spec.SchemaProps{ + Description: "PublicTitle and PublicBody are required for Approved. They default to the triage draft in clients.", + Type: []string{"string"}, + Format: "", + }, + }, + "publicBody": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "mergedInto": { + SchemaProps: spec.SchemaProps{ + Description: "MergedInto is required for Merged.", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason is required for Rejected and shown to the submitter.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"decision"}, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionSpec is what the user submitted.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"bug\"`\n - `\"idea\"`\n - `\"other\"`", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"bug", "idea", "other"}, + }, + }, + "title": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "body": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "attachments": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Attachments reference files uploaded with AttachmentUpload.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentReference"), + }, + }, + }, + }, + }, + "context": { + SchemaProps: spec.SchemaProps{ + Description: "Context is filled by the client and never sent to GitHub.", + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionContext"), + }, + }, + }, + Required: []string{"kind", "title", "body"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.AttachmentReference", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionContext"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionStatus is written by the server, feedback-controller, feedback-sync and the review subresource. Submitters see phase, postRef and review.reason only.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"Approved\"`\n - `\"Merged\"`\n - `\"PendingReview\"`\n - `\"Rejected\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Approved", "Merged", "PendingReview", "Rejected"}, + }, + }, + "triage": { + SchemaProps: spec.SchemaProps{ + Description: "Triage is advisory, written by feedback-controller. Staff only.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionTriage"), + }, + }, + "review": { + SchemaProps: spec.SchemaProps{ + Description: "Review is the staff decision, written through the review subresource.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionReviewOutcome"), + }, + }, + "postRef": { + SchemaProps: spec.SchemaProps{ + Description: "PostRef is the post the submission became or was merged into. Set by feedback-sync once the post syncs.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostReference"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostReference", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionReviewOutcome", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubmissionTriage"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionToSecurityReport(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionToSecurityReport is the body of a create on submissions/{name}/to-security-report. It moves a misfiled submission to the security track: a SecurityReport is created from it, its attachments move, and the submission is deleted, in one transaction. The response is the new SecurityReport.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "affected": { + SchemaProps: spec.SchemaProps{ + Description: "Affected optionally sets spec.affected on the new report.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_SubmissionTriage(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SubmissionTriage is the controller's advisory triage.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "suggestedCategories": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "suggestedKind": { + SchemaProps: spec.SchemaProps{ + Description: "Possible enum values:\n - `\"bug\"`\n - `\"idea\"`\n - `\"other\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"bug", "idea", "other"}, + }, + }, + "similarPosts": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SimilarPost"), + }, + }, + }, }, }, - "statusField": { + "draftIssue": { SchemaProps: spec.SchemaProps{ - Description: "StatusField is the single-select field that holds item status.", + Description: "DraftIssue is a public title and body with private details stripped.", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DraftIssue"), + }, + }, + "fraudScore": { + SchemaProps: spec.SchemaProps{ + Description: "FraudScore is from the fraud service, 0 to 1.", + Type: []string{"number"}, + Format: "double", + }, + }, + "likelySecurityIssue": { + SchemaProps: spec.SchemaProps{ + Description: "LikelySecurityIssue flags submissions that should be moved to the security track with the to-security-report subresource.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.DraftIssue", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SimilarPost"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_Subscription(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Subscription links a user to a post they follow, in the user context. It is created when the user votes or their submission is approved or merged, and the user can delete it. The name must equal spec.postRef.name.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "votesField": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "VotesField is the number field the service writes vote totals to.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubscriptionSpec"), + }, + }, }, - Required: []string{"owner", "number"}, + Required: []string{"spec"}, }, }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.SubscriptionSpec", v1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_feedback_v1alpha1_RateLimitStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_SubscriptionList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RateLimitStatus is a snapshot of the GitHub rate limit.", + Description: "SubscriptionList is a list of Subscription.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "remaining": { + "kind": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "resetAt": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Ref: ref(v1.Time{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Subscription"), + }, + }, + }, }, }, }, - Required: []string{"remaining", "resetAt"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - v1.Time{}.OpenAPIModelName()}, + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Subscription", v1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_feedback_v1alpha1_ReconcileStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_SubscriptionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ReconcileStatus describes a completed reconcile.", + Description: "SubscriptionSpec identifies the post.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "completedAt": { + "postRef": { SchemaProps: spec.SchemaProps{ - Ref: ref(v1.Time{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostReference"), }, }, - "postsSynced": { + "reason": { SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", + Description: "Possible enum values:\n - `\"manual\"`\n - `\"merged\"`\n - `\"submitted\"`\n - `\"voted\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"manual", "merged", "submitted", "voted"}, }, }, }, - Required: []string{"completedAt"}, + Required: []string{"postRef"}, }, }, Dependencies: []string{ - v1.Time{}.OpenAPIModelName()}, + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostReference"}, } } -func schema_pkg_apis_feedback_v1alpha1_RepositorySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_feedback_v1alpha1_Vote(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RepositorySelector includes and excludes repositories by name or glob.", + Description: "Vote is a user's vote on a post, in the user context. The name must equal spec.postRef.name, so a user votes at most once per post. Deleting the Vote removes the vote. Creating one also creates a Subscription to the post.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "include": { + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.VoteSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.VoteStatus"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.VoteSpec", "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.VoteStatus", v1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_VoteList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VoteList is a list of Vote.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Vote"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.Vote", v1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_VoteSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VoteSpec identifies the post and where the vote came from.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "postRef": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostReference"), + }, + }, + "source": { + SchemaProps: spec.SchemaProps{ + Description: "Source is the client the vote was cast from.\n\nPossible enum values:\n - `\"datumctl\"`\n - `\"email\"` and ClientGitHub are only used for security reports the Security Team logs on behalf of an external reporter.\n - `\"github\"`\n - `\"patch\"`\n - `\"portal\"`\n - `\"website\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"datumctl", "email", "github", "patch", "portal", "website"}, + }, + }, + }, + Required: []string{"postRef"}, + }, + }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PostReference"}, + } +} + +func schema_pkg_apis_feedback_v1alpha1_VoteStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VoteStatus is written by the server.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "organizations": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "set", }, }, SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Organizations the voter belonged to when voting. Used for staff analytics and never public.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -591,27 +3881,79 @@ func schema_pkg_apis_feedback_v1alpha1_RepositorySelector(ref common.ReferenceCa }, }, }, - "exclude": { + }, + }, + }, + } +} + +func schema_pkg_apis_feedback_v1alpha1_WorkItem(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "WorkItem is a sub-issue or linked pull request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is \"issue\" or \"pullRequest\".", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "ref": { + SchemaProps: spec.SchemaProps{ + Description: "Ref is \"/#\".", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "title": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "State is \"open\", \"closed\" or \"merged\".", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "url": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "pullRequests": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ - "x-kubernetes-list-type": "set", + "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "PullRequests are the pull requests that close this issue.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Ref: ref("go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PullRequestRef"), }, }, }, }, }, }, + Required: []string{"kind", "ref", "state"}, }, }, + Dependencies: []string{ + "go.miloapis.com/feedback/pkg/apis/feedback/v1alpha1.PullRequestRef"}, } }