diff --git a/porch/api/generated/clientset/versioned/fake/register.go b/porch/api/generated/clientset/versioned/fake/register.go index 36b9da3ca7..2b1d2df776 100644 --- a/porch/api/generated/clientset/versioned/fake/register.go +++ b/porch/api/generated/clientset/versioned/fake/register.go @@ -35,14 +35,14 @@ var localSchemeBuilder = runtime.SchemeBuilder{ // AddToScheme adds all types of this clientset into the given scheme. This allows composition // of clientsets, like in: // -// import ( -// "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kubernetes/scheme" -// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" -// ) +// import ( +// "k8s.io/client-go/kubernetes" +// clientsetscheme "k8s.io/client-go/kubernetes/scheme" +// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" +// ) // -// kclientset, _ := kubernetes.NewForConfig(c) -// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) +// kclientset, _ := kubernetes.NewForConfig(c) +// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) // // After this, RawExtensions in Kubernetes types will serialize kube-aggregator types // correctly. diff --git a/porch/api/generated/clientset/versioned/scheme/register.go b/porch/api/generated/clientset/versioned/scheme/register.go index cee00d25bb..90fc1da236 100644 --- a/porch/api/generated/clientset/versioned/scheme/register.go +++ b/porch/api/generated/clientset/versioned/scheme/register.go @@ -35,14 +35,14 @@ var localSchemeBuilder = runtime.SchemeBuilder{ // AddToScheme adds all types of this clientset into the given scheme. This allows composition // of clientsets, like in: // -// import ( -// "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kubernetes/scheme" -// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" -// ) +// import ( +// "k8s.io/client-go/kubernetes" +// clientsetscheme "k8s.io/client-go/kubernetes/scheme" +// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" +// ) // -// kclientset, _ := kubernetes.NewForConfig(c) -// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) +// kclientset, _ := kubernetes.NewForConfig(c) +// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) // // After this, RawExtensions in Kubernetes types will serialize kube-aggregator types // correctly. diff --git a/porch/api/generated/clientset/versioned/typed/porch/v1alpha1/fake/fake_package.go b/porch/api/generated/clientset/versioned/typed/porch/v1alpha1/fake/fake_pkg.go similarity index 78% rename from porch/api/generated/clientset/versioned/typed/porch/v1alpha1/fake/fake_package.go rename to porch/api/generated/clientset/versioned/typed/porch/v1alpha1/fake/fake_pkg.go index 0c02b78d2f..30c2531153 100644 --- a/porch/api/generated/clientset/versioned/typed/porch/v1alpha1/fake/fake_package.go +++ b/porch/api/generated/clientset/versioned/typed/porch/v1alpha1/fake/fake_pkg.go @@ -18,6 +18,7 @@ package fake import ( "context" + v1alpha1 "github.com/GoogleContainerTools/kpt/porch/api/porch/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" @@ -33,14 +34,14 @@ type FakePackages struct { ns string } -var pkgsResource = schema.GroupVersionResource{Group: "porch.kpt.dev", Version: "v1alpha1", Resource: "pkgs"} +var packagesResource = schema.GroupVersionResource{Group: "porch.kpt.dev", Version: "v1alpha1", Resource: "packages"} -var pkgsKind = schema.GroupVersionKind{Group: "porch.kpt.dev", Version: "v1alpha1", Kind: "Package"} +var packagesKind = schema.GroupVersionKind{Group: "porch.kpt.dev", Version: "v1alpha1", Kind: "Package"} // Get takes name of the pkg, and returns the corresponding pkg object, and an error if there is any. func (c *FakePackages) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Package, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(pkgsResource, c.ns, name), &v1alpha1.Package{}) + Invokes(testing.NewGetAction(packagesResource, c.ns, name), &v1alpha1.Package{}) if obj == nil { return nil, err @@ -51,7 +52,7 @@ func (c *FakePackages) Get(ctx context.Context, name string, options v1.GetOptio // List takes label and field selectors, and returns the list of Packages that match those selectors. func (c *FakePackages) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PackageList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(pkgsResource, pkgsKind, c.ns, opts), &v1alpha1.PackageList{}) + Invokes(testing.NewListAction(packagesResource, packagesKind, c.ns, opts), &v1alpha1.PackageList{}) if obj == nil { return nil, err @@ -70,17 +71,17 @@ func (c *FakePackages) List(ctx context.Context, opts v1.ListOptions) (result *v return list, err } -// Watch returns a watch.Interface that watches the requested pkgs. +// Watch returns a watch.Interface that watches the requested packages. func (c *FakePackages) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { return c.Fake. - InvokesWatch(testing.NewWatchAction(pkgsResource, c.ns, opts)) + InvokesWatch(testing.NewWatchAction(packagesResource, c.ns, opts)) } // Create takes the representation of a pkg and creates it. Returns the server's representation of the pkg, and an error, if there is any. func (c *FakePackages) Create(ctx context.Context, pkg *v1alpha1.Package, opts v1.CreateOptions) (result *v1alpha1.Package, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(pkgsResource, c.ns, pkg), &v1alpha1.Package{}) + Invokes(testing.NewCreateAction(packagesResource, c.ns, pkg), &v1alpha1.Package{}) if obj == nil { return nil, err @@ -91,7 +92,7 @@ func (c *FakePackages) Create(ctx context.Context, pkg *v1alpha1.Package, opts v // Update takes the representation of a pkg and updates it. Returns the server's representation of the pkg, and an error, if there is any. func (c *FakePackages) Update(ctx context.Context, pkg *v1alpha1.Package, opts v1.UpdateOptions) (result *v1alpha1.Package, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(pkgsResource, c.ns, pkg), &v1alpha1.Package{}) + Invokes(testing.NewUpdateAction(packagesResource, c.ns, pkg), &v1alpha1.Package{}) if obj == nil { return nil, err @@ -103,7 +104,7 @@ func (c *FakePackages) Update(ctx context.Context, pkg *v1alpha1.Package, opts v // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). func (c *FakePackages) UpdateStatus(ctx context.Context, pkg *v1alpha1.Package, opts v1.UpdateOptions) (*v1alpha1.Package, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(pkgsResource, "status", c.ns, pkg), &v1alpha1.Package{}) + Invokes(testing.NewUpdateSubresourceAction(packagesResource, "status", c.ns, pkg), &v1alpha1.Package{}) if obj == nil { return nil, err @@ -114,14 +115,14 @@ func (c *FakePackages) UpdateStatus(ctx context.Context, pkg *v1alpha1.Package, // Delete takes name of the pkg and deletes it. Returns an error if one occurs. func (c *FakePackages) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(pkgsResource, c.ns, name, opts), &v1alpha1.Package{}) + Invokes(testing.NewDeleteActionWithOptions(packagesResource, c.ns, name, opts), &v1alpha1.Package{}) return err } // DeleteCollection deletes a collection of objects. func (c *FakePackages) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(pkgsResource, c.ns, listOpts) + action := testing.NewDeleteCollectionAction(packagesResource, c.ns, listOpts) _, err := c.Fake.Invokes(action, &v1alpha1.PackageList{}) return err @@ -130,7 +131,7 @@ func (c *FakePackages) DeleteCollection(ctx context.Context, opts v1.DeleteOptio // Patch applies the patch and returns the patched pkg. func (c *FakePackages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Package, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(pkgsResource, c.ns, name, pt, data, subresources...), &v1alpha1.Package{}) + Invokes(testing.NewPatchSubresourceAction(packagesResource, c.ns, name, pt, data, subresources...), &v1alpha1.Package{}) if obj == nil { return nil, err diff --git a/porch/api/generated/clientset/versioned/typed/porch/v1alpha1/package.go b/porch/api/generated/clientset/versioned/typed/porch/v1alpha1/pkg.go similarity index 76% rename from porch/api/generated/clientset/versioned/typed/porch/v1alpha1/package.go rename to porch/api/generated/clientset/versioned/typed/porch/v1alpha1/pkg.go index 07deac518e..5a4b105b02 100644 --- a/porch/api/generated/clientset/versioned/typed/porch/v1alpha1/package.go +++ b/porch/api/generated/clientset/versioned/typed/porch/v1alpha1/pkg.go @@ -48,26 +48,26 @@ type PackageInterface interface { PackageExpansion } -// pkgs implements PackageInterface -type pkgs struct { +// packages implements PackageInterface +type packages struct { client rest.Interface ns string } // newPackages returns a Packages -func newPackages(c *PorchV1alpha1Client, namespace string) *pkgs { - return &pkgs{ +func newPackages(c *PorchV1alpha1Client, namespace string) *packages { + return &packages{ client: c.RESTClient(), ns: namespace, } } // Get takes name of the pkg, and returns the corresponding pkg object, and an error if there is any. -func (c *pkgs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Package, err error) { +func (c *packages) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Package, err error) { result = &v1alpha1.Package{} err = c.client.Get(). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). Name(name). VersionedParams(&options, scheme.ParameterCodec). Do(ctx). @@ -76,7 +76,7 @@ func (c *pkgs) Get(ctx context.Context, name string, options v1.GetOptions) (res } // List takes label and field selectors, and returns the list of Packages that match those selectors. -func (c *pkgs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PackageList, err error) { +func (c *packages) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PackageList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second @@ -84,7 +84,7 @@ func (c *pkgs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1. result = &v1alpha1.PackageList{} err = c.client.Get(). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). VersionedParams(&opts, scheme.ParameterCodec). Timeout(timeout). Do(ctx). @@ -92,8 +92,8 @@ func (c *pkgs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1. return } -// Watch returns a watch.Interface that watches the requested pkgs. -func (c *pkgs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { +// Watch returns a watch.Interface that watches the requested packages. +func (c *packages) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second @@ -101,18 +101,18 @@ func (c *pkgs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, opts.Watch = true return c.client.Get(). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). VersionedParams(&opts, scheme.ParameterCodec). Timeout(timeout). Watch(ctx) } // Create takes the representation of a pkg and creates it. Returns the server's representation of the pkg, and an error, if there is any. -func (c *pkgs) Create(ctx context.Context, pkg *v1alpha1.Package, opts v1.CreateOptions) (result *v1alpha1.Package, err error) { +func (c *packages) Create(ctx context.Context, pkg *v1alpha1.Package, opts v1.CreateOptions) (result *v1alpha1.Package, err error) { result = &v1alpha1.Package{} err = c.client.Post(). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). VersionedParams(&opts, scheme.ParameterCodec). Body(pkg). Do(ctx). @@ -121,11 +121,11 @@ func (c *pkgs) Create(ctx context.Context, pkg *v1alpha1.Package, opts v1.Create } // Update takes the representation of a pkg and updates it. Returns the server's representation of the pkg, and an error, if there is any. -func (c *pkgs) Update(ctx context.Context, pkg *v1alpha1.Package, opts v1.UpdateOptions) (result *v1alpha1.Package, err error) { +func (c *packages) Update(ctx context.Context, pkg *v1alpha1.Package, opts v1.UpdateOptions) (result *v1alpha1.Package, err error) { result = &v1alpha1.Package{} err = c.client.Put(). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). Name(pkg.Name). VersionedParams(&opts, scheme.ParameterCodec). Body(pkg). @@ -136,11 +136,11 @@ func (c *pkgs) Update(ctx context.Context, pkg *v1alpha1.Package, opts v1.Update // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *pkgs) UpdateStatus(ctx context.Context, pkg *v1alpha1.Package, opts v1.UpdateOptions) (result *v1alpha1.Package, err error) { +func (c *packages) UpdateStatus(ctx context.Context, pkg *v1alpha1.Package, opts v1.UpdateOptions) (result *v1alpha1.Package, err error) { result = &v1alpha1.Package{} err = c.client.Put(). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). Name(pkg.Name). SubResource("status"). VersionedParams(&opts, scheme.ParameterCodec). @@ -151,10 +151,10 @@ func (c *pkgs) UpdateStatus(ctx context.Context, pkg *v1alpha1.Package, opts v1. } // Delete takes name of the pkg and deletes it. Returns an error if one occurs. -func (c *pkgs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { +func (c *packages) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). Name(name). Body(&opts). Do(ctx). @@ -162,14 +162,14 @@ func (c *pkgs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) e } // DeleteCollection deletes a collection of objects. -func (c *pkgs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { +func (c *packages) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { var timeout time.Duration if listOpts.TimeoutSeconds != nil { timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second } return c.client.Delete(). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). VersionedParams(&listOpts, scheme.ParameterCodec). Timeout(timeout). Body(&opts). @@ -178,11 +178,11 @@ func (c *pkgs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, list } // Patch applies the patch and returns the patched pkg. -func (c *pkgs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Package, err error) { +func (c *packages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Package, err error) { result = &v1alpha1.Package{} err = c.client.Patch(pt). Namespace(c.ns). - Resource("pkgs"). + Resource("packages"). Name(name). SubResource(subresources...). VersionedParams(&opts, scheme.ParameterCodec). diff --git a/porch/api/generated/openapi/zz_generated.openapi.go b/porch/api/generated/openapi/zz_generated.openapi.go index 3c3a66ec98..64d4456a9b 100644 --- a/porch/api/generated/openapi/zz_generated.openapi.go +++ b/porch/api/generated/openapi/zz_generated.openapi.go @@ -628,7 +628,7 @@ func schema_porch_api_porch_v1alpha1_PackageCloneTaskSpec(ref common.ReferenceCa }, "strategy": { SchemaProps: spec.SchemaProps{ - Description: "\tDefines which strategy should be used to update the package. It defaults to 'resource-merge'.\n * resource-merge: Perform a structural comparison of the original /\n updated resources, and merge the changes into the local package.\n * fast-forward: Fail without updating if the local package was modified\n since it was fetched.\n * force-delete-replace: Wipe all the local changes to the package and replace\n it with the remote version.", + Description: "\n\tDefines which strategy should be used to update the package. It defaults to 'resource-merge'.\n * resource-merge: Perform a structural comparison of the original /\n updated resources, and merge the changes into the local package.\n * fast-forward: Fail without updating if the local package was modified\n since it was fetched.\n * force-delete-replace: Wipe all the local changes to the package and replace\n it with the remote version.", Type: []string{"string"}, Format: "", }, @@ -1955,7 +1955,7 @@ func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common. }, "fieldValidation": { SchemaProps: spec.SchemaProps{ - Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + Description: "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.", Type: []string{"string"}, Format: "", }, @@ -2468,7 +2468,7 @@ func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenA Properties: map[string]spec.Schema{ "selfLink": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + Description: "selfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", Type: []string{"string"}, Format: "", }, @@ -2620,7 +2620,7 @@ func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) co }, "time": { SchemaProps: spec.SchemaProps{ - Description: "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.", + Description: "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, @@ -2680,7 +2680,7 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope }, "generateName": { SchemaProps: spec.SchemaProps{ - Description: "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + Description: "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", Type: []string{"string"}, Format: "", }, @@ -2694,7 +2694,7 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope }, "selfLink": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + Description: "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", Type: []string{"string"}, Format: "", }, @@ -2814,7 +2814,7 @@ func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.Ope }, "clusterName": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25.\n\nThe name in the go struct is changed to help clients detect accidental use.", + Description: "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", Type: []string{"string"}, Format: "", }, @@ -2889,7 +2889,7 @@ func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common }, "blockOwnerDeletion": { SchemaProps: spec.SchemaProps{ - Description: "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + Description: "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", Type: []string{"boolean"}, Format: "", }, @@ -3056,7 +3056,7 @@ func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.O }, "fieldValidation": { SchemaProps: spec.SchemaProps{ - Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + Description: "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.", Type: []string{"string"}, Format: "", }, @@ -3683,7 +3683,7 @@ func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common. }, "fieldValidation": { SchemaProps: spec.SchemaProps{ - Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + Description: "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.", Type: []string{"string"}, Format: "", }, diff --git a/porch/api/go.sum b/porch/api/go.sum index 203c38eb7a..58e246c8da 100644 --- a/porch/api/go.sum +++ b/porch/api/go.sum @@ -238,6 +238,8 @@ github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAl github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/platkrm/code-generator v0.23.5-porch.1 h1:SMWdEx8urgCWrQzm2SbJyp/64oNw4wHheW3rVH2CbnQ= +github.com/platkrm/code-generator v0.23.5-porch.1/go.mod h1:S0Q1JVA+kSzTI1oUvbKAxZY/DYbA/ZUb4Uknog12ETk= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -644,8 +646,6 @@ k8s.io/apimachinery v0.23.5 h1:Va7dwhp8wgkUPWsEXk6XglXWU4IKYLKNlv8VkX7SDM0= k8s.io/apimachinery v0.23.5/go.mod h1:BEuFMMBaIbcOqVIJqNZJXGFTP4W6AycEpb5+m/97hrM= k8s.io/client-go v0.23.5 h1:zUXHmEuqx0RY4+CsnkOn5l0GU+skkRXKGJrhmE2SLd8= k8s.io/client-go v0.23.5/go.mod h1:flkeinTO1CirYgzMPRWxUCnV0G4Fbu2vLhYCObnt/r4= -k8s.io/code-generator v0.23.5 h1:xn3a6J5pUL49AoH6SPrOFtnB5cvdMl76f/bEY176R3c= -k8s.io/code-generator v0.23.5/go.mod h1:S0Q1JVA+kSzTI1oUvbKAxZY/DYbA/ZUb4Uknog12ETk= k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c h1:GohjlNKauSai7gN4wsJkeZ3WAJx4Sh+oT/b5IYn5suA= k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= diff --git a/porch/controllers/rootsyncset/api/v1alpha1/groupversion_info.go b/porch/controllers/rootsyncset/api/v1alpha1/groupversion_info.go index 6866e81060..aa52eab1de 100644 --- a/porch/controllers/rootsyncset/api/v1alpha1/groupversion_info.go +++ b/porch/controllers/rootsyncset/api/v1alpha1/groupversion_info.go @@ -13,8 +13,8 @@ // limitations under the License. // Package v1alpha1 contains API Schema definitions for the config.porch.kpt.dev v1alpha1 API group -//+kubebuilder:object:generate=true -//+groupName=config.porch.kpt.dev +// +kubebuilder:object:generate=true +// +groupName=config.porch.kpt.dev package v1alpha1 import (