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

feat: upgrade to go version 1.18 #39

Merged
merged 15 commits into from
Jun 21, 2022
Merged

feat: upgrade to go version 1.18 #39

merged 15 commits into from
Jun 21, 2022

Commits on Jun 20, 2022

  1. feat: upgrade operator-builder itself to go1.18

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    f7cbc27 View commit details
    Browse the repository at this point in the history
  2. feat: upgrade packages to latest versions and update go version

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    f0ec489 View commit details
    Browse the repository at this point in the history
  3. fix: use go install to work with go1.18

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    c00b9b3 View commit details
    Browse the repository at this point in the history
  4. test: update tests to support latest 2 versions of go

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    811d008 View commit details
    Browse the repository at this point in the history
  5. chore: fix linter errors and update tests

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    b6d9d85 View commit details
    Browse the repository at this point in the history
  6. fix: change minimum go version

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    820e43b View commit details
    Browse the repository at this point in the history
  7. test: upgrade to go version 1.18 for lint checks

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    1381027 View commit details
    Browse the repository at this point in the history
  8. fix: typo in template variable

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    627b6e2 View commit details
    Browse the repository at this point in the history
  9. refactor: added ToTitle method to deal with deprecated titling in go1.18

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    d4ac84a View commit details
    Browse the repository at this point in the history
  10. chore: disable linting for strings.Title

    cases.Title is set to replace strings.Title, but it does not return the same.  We consider a
    'title' of a field of collection.spec.name to read collection.Spec.Name, but the new
    method returns collection.Spec.name instead.  Only the first field is capitalized and the
    rest are lowercased.  We will use the deprecated method until we can figure out how to
    make it return appropriately.
    
    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    765d447 View commit details
    Browse the repository at this point in the history
  11. chore: fix linter errors surrounding deprecated methodology

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    cf079c9 View commit details
    Browse the repository at this point in the history
  12. test: fix typo in build artifact step

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    e11a3ad View commit details
    Browse the repository at this point in the history
  13. fix: also version indirect dependencies to ensure compatibility

    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    392e70c View commit details
    Browse the repository at this point in the history
  14. fix: upgrade kustomize versions and controller-gen args

    This commit upgrades the kustomize version as the old version is imcompatible with the way it was
    importing its packages in go1.18.
    
    It also adjusts the controller-gen options to account for a newer version of controller-gen by
    removing the deprecated options.
    
    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    195eb33 View commit details
    Browse the repository at this point in the history
  15. fix: updated go version for dockerfile to build controller

    Also centralized the preferred and minimum version variables into a version file
    in utils package to assist with future upgrades.
    
    Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
    scottd018 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    e1af3cd View commit details
    Browse the repository at this point in the history