Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VZ-8104 make user numeric in Dockerfile #1

Open
wants to merge 39 commits into
base: oracle/release/0.3.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a2181df
udpates for build from source
markxnelson Feb 22, 2021
ab0fb90
add readme
markxnelson Feb 22, 2021
9e8d4fb
udpate some dependencies
markxnelson Feb 22, 2021
9cb204e
update copyright notices
markxnelson Feb 22, 2021
4b3e513
JIRA: VZ-3674 update docker file (#1)
jmaron99 Oct 5, 2021
47fdd55
VZ 3778: OAM SDK 1.22 compat
anders-swanson Oct 14, 2021
ba23e6b
Update go version
anders-swanson Oct 15, 2021
db29416
Commented code
anders-swanson Oct 15, 2021
743079e
Merge pull request #2 from verrazzano/anders/vz-3778
anders-swanson Oct 18, 2021
fb1ff27
VZ 3778: Update go.mod
anders-swanson Oct 19, 2021
6c698d4
Merge pull request #3 from verrazzano/anders/vz-3778
anders-swanson Oct 19, 2021
001a319
Packages and copyright
anders-swanson Oct 20, 2021
3fe30df
add missed copyright
anders-swanson Oct 20, 2021
352fb58
Merge pull request #4 from verrazzano/anders/vz-3778
anders-swanson Oct 20, 2021
5d196f8
downrev versions
anders-swanson Oct 22, 2021
91f152f
Merge pull request #5 from verrazzano/anders/vz-3778
anders-swanson Oct 26, 2021
bec77b8
Update dependencies
bhatpmk Nov 11, 2021
20f5aa5
Merge pull request #6 from verrazzano/bfs/update-dependencies
bhatpmk Nov 19, 2021
4ddf04c
Resets VZ 3778 (#9)
anders-swanson Nov 19, 2021
f924c32
Remove unneeded yum repo from Dockerfile
desagar Nov 24, 2021
5ee076b
Merge pull request #10 from verrazzano/bfs/desagar_vz-4154_remove_repo
desagar Nov 24, 2021
d1c8cc9
VZ-4154 fix go.mod dependencies
davis-gomes Dec 1, 2021
3bdb04f
lets see how this goes
davis-gomes Dec 1, 2021
772d2be
replace versions
davis-gomes Dec 2, 2021
0f42715
replace versions 2
davis-gomes Dec 2, 2021
9a3c241
revert k8s.io changes
davis-gomes Dec 2, 2021
00643c8
Merge pull request #11 from verrazzano/bfs/davgomes/VZ-4154
davisgomes Dec 2, 2021
e057ce8
JIRA:VZ-4313 restore finalizers from existing trait during rendering …
jmaron99 Jan 11, 2022
03a997d
update xz
markxnelson Jan 24, 2022
3a38226
Merge pull request #13 from verrazzano/mark/xz
markxnelson Jan 25, 2022
046d772
VZ 6061: OAM Loglevel (#14)
anders-swanson Jun 2, 2022
1799004
Merge pull request #16 from verrazzano/igirdhar/VZ-7192
IshaGirdhar Sep 29, 2022
e2c47f5
update base image to ol8
lake-of-dreams Oct 13, 2022
6d72b97
remove obsolete distroless related comment
lake-of-dreams Oct 13, 2022
b7e9276
VZ-6555: update base image to ol8
lake-of-dreams Oct 13, 2022
bee0fdc
VZ-7212 copyright license auit in 0.3.3
guoyongzhang Oct 21, 2022
21eab61
Merge pull request #23 from verrazzano/gz/VZ-7212_0.3.3_copyright
guoyongzhang Oct 25, 2022
d9d0821
merge from master
Jan 9, 2023
d41616b
numeric user
Jan 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ WORKDIR /
COPY --from=builder /workspace/controller .
COPY LICENSE README.md SECURITY.md /licenses/

USER nonroot:nonroot
USER 65532:65532

ENTRYPOINT ["/controller"]
1 change: 1 addition & 0 deletions apis/core/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ func (r *Reconciler) scaleResources(ctx context.Context, mLog logr.Logger,
}

// locateReplicaField call openapi RESTFUL end point to fetch the schema of a given resource and try to see
// if it has a spec.replicas filed that is of type integer. We will apply duck typing to modify the fields there
// assuming that the fields is used to control the number of instances of this resource
// NOTE: This only works if the resource CRD has a structural schema, all `apiextensions.k8s.io/v1` CRDs do
//
// if it has a spec.replicas filed that is of type integer. We will apply duck typing to modify the fields there
// assuming that the fields is used to control the number of instances of this resource
// NOTE: This only works if the resource CRD has a structural schema, all `apiextensions.k8s.io/v1` CRDs do
//
// https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema
func locateReplicaField(document openapi.Resources, res *unstructured.Unstructured) bool {
// this is the most common path for replicas fields
Expand Down
1 change: 1 addition & 0 deletions pkg/webhook/v1alpha2/component/validating_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func ValidateComponentObject(obj *v1alpha2.Component) field.ErrorList {
var _ inject.Client = &ValidatingHandler{}

// InjectClient injects the client into the ComponentValidatingHandler

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like an accidental newline?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm not sure how those got added in

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or did gofmt force these ws changes?

func (h *ValidatingHandler) InjectClient(c client.Client) error {
h.Client = c
return nil
Expand Down