You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove performSpecUpdate(boolean) from Set<Operation>Output. (#132)
Issue #, if available: aws-controllers-k8s/community#812
Description of changes:
* Do not restrict Create and Update operation output to only updating the Status of latest k8s resource. This change will allow both Spec and Status of latest object to be updated.
* Removing of conditional "performSpecUpdate" will allow both Spec and Status fields to be updated.
* This will allow server-side-defaults to be populated into the k8s latest object. Server-side-defaults are the default values added by AWS service upon resource creation/update when these optional values were not specified by the user.
------
make test
```
➜ code-generator git:(allow-spec-updates) make test
go test -tags codegen ./...
? github.com/aws-controllers-k8s/code-generator/cmd/ack-generate [no test files]
? github.com/aws-controllers-k8s/code-generator/cmd/ack-generate/command [no test files]
ok github.com/aws-controllers-k8s/code-generator/pkg/generate/ack (cached)
ok github.com/aws-controllers-k8s/code-generator/pkg/generate/code (cached)
? github.com/aws-controllers-k8s/code-generator/pkg/generate/config [no test files]
? github.com/aws-controllers-k8s/code-generator/pkg/generate/crossplane [no test files]
? github.com/aws-controllers-k8s/code-generator/pkg/generate/olm [no test files]
? github.com/aws-controllers-k8s/code-generator/pkg/generate/templateset [no test files]
? github.com/aws-controllers-k8s/code-generator/pkg/metadata [no test files]
ok github.com/aws-controllers-k8s/code-generator/pkg/model (cached)
ok github.com/aws-controllers-k8s/code-generator/pkg/model/multiversion (cached)
ok github.com/aws-controllers-k8s/code-generator/pkg/names (cached)
? github.com/aws-controllers-k8s/code-generator/pkg/testutil [no test files]
? github.com/aws-controllers-k8s/code-generator/pkg/util [no test files]
? github.com/aws-controllers-k8s/code-generator/pkg/version [no test files]
```
make build-controller
```
➜ code-generator git:(allow-spec-updates) make build-controller
building ack-generate ... ok.
Copying common custom resource definitions into ecr
Building Kubernetes API objects for ecr
Generating deepcopy code for ecr
Generating custom resource definitions for ecr
Building service controller for ecr
Generating RBAC manifests for ecr
Running gofmt against generated code for ecr
```
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
0 commit comments