Commit Graph

930 Commits

Author SHA1 Message Date
Alexandr Demicev 9d07cc986e
Remove leftovers after scaffolding
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2022-11-14 17:16:20 +01:00
Alexander Demicev 3cd8349880
Merge pull request #20 from rancher-sandbox/dependabot/go_modules/github.com/onsi/gomega-1.24.1
chore(deps): Bump github.com/onsi/gomega from 1.24.0 to 1.24.1
2022-11-14 16:03:31 +01:00
dependabot[bot] 8deba69391
chore(deps): Bump github.com/onsi/gomega from 1.24.0 to 1.24.1
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.24.0 to 1.24.1.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.24.0...v1.24.1)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 14:58:53 +00:00
Alexander Demicev 428a797090
Merge pull request #22 from rancher-sandbox/dependabot/go_modules/k8s.io/client-go-0.25.4
chore(deps): Bump k8s.io/client-go from 0.25.3 to 0.25.4
2022-11-14 15:57:52 +01:00
dependabot[bot] 85fa017af2
chore(deps): Bump k8s.io/client-go from 0.25.3 to 0.25.4
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.25.3 to 0.25.4.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.25.3...v0.25.4)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 14:32:00 +00:00
Mohamed Belgaied Hassine c09e48a979
Merge pull request #18 from belgaied2/main
Adding first structs for the API
2022-11-14 15:31:00 +01:00
Mohamed Belgaied Hassine 57c6795ecf
Refining the Control Plane API
Moved RKE2ServerConfig relevant parts to Control Plane API

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

standardized comment spacing to a single space

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Added ManifestsConfigMapReference to the control plane for the possibility to automatically deploy manifests

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Added NTP Field to the common node configuration

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Adding Status fields in the Control API and clarifying bootstrap import

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Adding fields from RKE2ConfigSpec to RKE2ControlPlaneSpec and removing RKE2CommonNodeConf struct

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

fixed LoadBalancerPort json name

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Removed fields for requests and limits of the control plane components from the API

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Removed some unnecessary comments generated by kubebuilder

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2022-11-14 14:22:24 +00:00
Mohamed Belgaied Hassine 915cc0b839
Refining the Bootstrap API
First commit - drafting data struct docs

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Added UML file for documenting structs

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Adding first version of RKE2Config structs

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Updating go modules because of changes in imports

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

did a go mod tidy

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

re-generated CRDs using make generate

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

fixed refactoring issue in webhook configuration

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Dot at the end of comment line

Co-authored-by: Alexander Demicev <alexandr.demicev@suse.com>
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Dot at the end of comment line

Co-authored-by: Alexander Demicev <alexandr.demicev@suse.com>
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Adding dots in comment end of lines when necessary

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Small improvements in comment formatting

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Removed DeployRKE2Commands attribute because of duplicate usage

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Replaced SecretRef and ConfigMapRef types by the generic v1.ObjectReference type

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

fixed additional issue with webhook refactoring

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

simplified EtcdBackupConfig struct field names

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

removed Snapshotter attribute from RKE2Agent/ServerConfig

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

changed ResolvConf attribute to reference a ConfigMap instead of a string with a path

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

changed EtcdMetricsExposed to EtcdMetricsExposurePolicy to replace bool with enum

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

replaced bool fields with enums as recommended by KubeAPI best practices

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Capitalize acronym in KubeAPIServer

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Co-authored-by: Alexander Demicev <alexandr.demicev@suse.com>

Fixed small issues related to capitalization of KubeAPIServer attribute

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

fixed issue of Kubebuilder enum validation + moved validation tags to structs fields instead of types

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Changed LbServerPort to LoadBalancerPort with type int

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

capitalized some acronym attributes

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Removed some unnecessary structs and annotations from Registry struct, will use another struct for marshalling yaml

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Modify TLSConfig for registries to reference a single tls secret instead of three secrets

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

removed duplicate attributes between agent and server, and put them their own common struct

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

removed BootstrapData field in RKE2ConfigStatus struct

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Small comment changes

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

moved multiple disableXXX attributes to single DisableComponents struct

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

refactoring back to bool and adding constants

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>

Changed all Rke2Xxx structs to RKE2Xxx

Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
2022-11-14 14:21:54 +00:00
Alexander Demicev 7a0bc0daea
Merge pull request #17 from rancher-sandbox/dependabot/go_modules/sigs.k8s.io/controller-runtime-0.13.1
chore(deps): Bump sigs.k8s.io/controller-runtime from 0.13.0 to 0.13.1
2022-11-07 12:30:06 +01:00
dependabot[bot] 8505edb18f
chore(deps): Bump sigs.k8s.io/controller-runtime from 0.13.0 to 0.13.1
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.13.0...v0.13.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-07 02:08:24 +00:00
Richard Case 8cf2304e82
Merge pull request #16 from alexander-demicev/fixtests
Fix CRD paths in envtest setup
2022-11-03 11:22:35 +00:00
Alexandr Demicev 83aedcdcb8
Enable unit tests in CI
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2022-11-03 11:41:10 +01:00
Alexandr Demicev 303493bcc2
Fix CRD paths in envtest setup
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2022-11-03 11:38:30 +01:00
Alexander Demicev 9c196af0f6
Merge pull request #13 from richardcase/tilt_changes
Tilt changes
2022-11-03 10:17:55 +01:00
Richard Case 8469f799e5
chore: readme and tailt changes
Some changes after testing with tilt. The tilt setup is dependent on a
bug being fixed upstream in capi. Added some initial instructions to the
README to get started.

Signed-off-by: Richard Case <richard.case@outlook.com>
2022-11-03 07:59:02 +00:00
Alexander Demicev bbe7f4e0f6
Merge pull request #3 from alexander-demicev/imports
Standardise API imports
2022-11-02 16:58:55 +01:00
Richard Case 6635f0db67
Merge pull request #12 from richardcase/rename_test_gha
chore: rename gha workflow to ci
2022-11-02 15:53:56 +00:00
Alexander Demicev 9dd5428796
Merge pull request #5 from rancher-sandbox/dependabot/go_modules/k8s.io/client-go-0.25.3
chore(deps): Bump k8s.io/client-go from 0.24.2 to 0.25.3
2022-11-02 16:31:44 +01:00
dependabot[bot] 6510ecee4b
chore(deps): Bump k8s.io/client-go from 0.24.2 to 0.25.3
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.24.2 to 0.25.3.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.24.2...v0.25.3)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 15:26:21 +00:00
Alexander Demicev 97fce5fc70
Merge pull request #8 from rancher-sandbox/dependabot/go_modules/sigs.k8s.io/controller-runtime-0.13.0
chore(deps): Bump sigs.k8s.io/controller-runtime from 0.12.2 to 0.13.0
2022-11-02 16:25:26 +01:00
dependabot[bot] 5f08cdd366
chore(deps): Bump sigs.k8s.io/controller-runtime from 0.12.2 to 0.13.0
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.12.2 to 0.13.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.12.2...v0.13.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 14:59:46 +00:00
Alexander Demicev 212f38ea7f
Merge pull request #6 from rancher-sandbox/dependabot/go_modules/github.com/onsi/gomega-1.24.0
chore(deps): Bump github.com/onsi/gomega from 1.18.1 to 1.24.0
2022-11-02 15:58:50 +01:00
Alexandr Demicev e697e283f9
Standardise API imports
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2022-11-02 15:53:10 +01:00
Richard Case ee140ae4b3
chore: rename gha workflow to ci
Rename the `test` gha workflow to `ci` so that it better represents what
its actually doing :)

Signed-off-by: Richard Case <richard.case@outlook.com>
2022-11-02 14:46:15 +00:00
dependabot[bot] cbc7cd7649
chore(deps): Bump github.com/onsi/gomega from 1.18.1 to 1.24.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.18.1 to 1.24.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.18.1...v1.24.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 14:31:47 +00:00
Richard Case 8d8e124ff1
Merge pull request #2 from richardcase/repo_setup
feat: github repo setup
2022-11-02 14:31:03 +00:00
Richard Case 02c965f113
feat: github repo setup
A few changes to setup the GitHub repo for future contribution.
Includes:

- GHA workflow for labeling PRs based on size
- GHA workflow that requires a kind/* label on PRs
- GHA workflow for marking issues/prs as stale
- GHA workflow for running tests on PRs (i.e. build, test, verify)
- Dependabot configuration
- GitHub release notes configuration

Labels have also been created in the repo and these are used in the
above.

NOTE: the `make test` has been commented out from the tests for the time
being until the tests have been fixed.

Signed-off-by: Richard Case <richard.case@outlook.com>
2022-11-02 14:21:13 +00:00
Richard Case 581e8caadf
Merge pull request #1 from richardcase/scaffold
chore: scaffolding of the provider
2022-11-02 11:23:13 +00:00
Richard Case e5e027de73
chore: scaffolding of the provider
This is the initial scaffolding for the RKE2 provider. It includes a
bootstrap and control plane provider,

Signed-off-by: Richard Case <richard.case@outlook.com>
2022-11-02 10:07:26 +00:00
Ivan-Clare Ngong 69dab9bf2a
Initial commit 2022-10-24 17:14:22 +02:00