-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update Tools and API Versions #56
Update Tools and API Versions #56
Conversation
Golang must be v1.20 prior to merging this PR. |
f1c58a0
to
144013d
Compare
E2E test will fail as it needs openshift/release#40248 to be merged, so Golang version on E2E will be updated |
/retest |
/lgtm |
/lgtm Giving a chance to get more feedbacks, feel free to unhold |
144013d
to
8248174
Compare
/retest |
E2E PR was merged and this PR is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there changes not relevant to the PR title in the PR
- please revert the kustomize changes and put them in into their own PR. And when doing so, either delete all unneeded and/or commented configs, or migrate all of them to the new format. What we have in this PR now is a mix of everything. I'd prefer to migrate all (and keep them commented), it will make enabling webhooks later on much easier
- there are also code changes, probably also worth their own PR?
@@ -73,5 +73,5 @@ status: | |||
acceptedNames: | |||
kind: "" | |||
plural: "" | |||
conditions: [] | |||
storedVersions: [] | |||
conditions: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting... in /config this status is removed completely from the CRDs, here just the list values change 🤔 🤷
config/crd/kustomization.yaml
Outdated
@@ -6,7 +6,6 @@ resources: | |||
- bases/fence-agents-remediation.medik8s.io_fenceagentsremediationtemplates.yaml | |||
#+kubebuilder:scaffold:crdkustomizeresource | |||
|
|||
patchesStrategicMerge: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so... how would we enable webhooks now?
config/default/kustomization.yaml
Outdated
@@ -45,31 +37,15 @@ patchesStrategicMerge: | |||
#- webhookcainjection_patch.yaml | |||
|
|||
# the following config is for teaching kustomize how to do var substitution | |||
vars: | |||
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if it's a good idea to remove this certmanager config...
Ok, I will create PR for changing the OCP client-go and fetching machine client in E2E test and in another PR I will update and fix deprecation warnings due to Kustomize v5 changes.
When you say new format are you referring to Kubebuilder |
There are newer versions & reorganize the tool order as their targets order
There was no write permission, thus go-install-tool couldn't remove the old directory
I was thinking of doing another PR for them.
But looking again on the changes, they are quite minor IMHO, and due to bumping the K8s and OCP APIs I was aware of an error with |
ack, wfm |
Use Kubernetes v1.27, and OCP v4.14 (go get -u github.com/openshift/[email protected])
github.com/openshift/machine-api-operator pacakge was outdated, thus we use the OCP client-go package
Add missing and remove unused modules, make vendored copy of dependencies, and verify dependencies have expected content
Update /bundle directory
5598047
to
a745ec7
Compare
Updating to kustomize v5, and removing new deprecation warnings will be done in a follow up PR when we change the project layout to go/v4 - ECOPROJECT-1315 |
/unhold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: razo7, slintes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Bump FAR to the latest tool and API versions (e.g. K8s, OCP, Controller-gen, Kustomize, and Operator-SDK).
In addition it also includes more stuff:
envtest
target directoryECOPROJECT-1403