-
Notifications
You must be signed in to change notification settings - Fork 187
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
GA: Promote GitRepository API to source.toolkit.fluxcd.io/v1
#1056
Conversation
5136db4
to
9a0a899
Compare
Signed-off-by: Stefan Prodan <[email protected]>
9a0a899
to
ef8804c
Compare
Signed-off-by: Stefan Prodan <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
Signed-off-by: Stefan Prodan <[email protected]>
Signed-off-by: Stefan Prodan <[email protected]>
Signed-off-by: Max Jonas Werner <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
Signed-off-by: Max Jonas Werner <[email protected]>
Signed-off-by: Stefan Prodan <[email protected]>
15eded4
to
161806b
Compare
Signed-off-by: Hidde Beydals <[email protected]>
Consumers still relying on this should make use of `v1beta2` to facilitate any transition. In addition, remove the `*Implementation` constants for now removed Git implemenations. Signed-off-by: Hidde Beydals <[email protected]>
161806b
to
6bea001
Compare
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 about the checksum-related changes in here but otherwise lgtm.
8c8f1c9
to
3e301c6
Compare
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.
A few comments while revising the APIs one last time before v1.
Usage of this field has not been recommended for a long time as it was best-effort based. Signed-off-by: Hidde Beydals <[email protected]>
Plus a switch from `godoc.org` -> `pkg.go.dev`. Signed-off-by: Hidde Beydals <[email protected]>
3e301c6
to
8fcfde9
Compare
7379b84
to
1507ebb
Compare
Signed-off-by: Hidde Beydals <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
- Use `kubectl events` in favor of `kubectl get events`. - Remove deleted `URL` field from `Status` examples of `GitRepository` v1. Signed-off-by: Hidde Beydals <[email protected]>
1507ebb
to
f2da9bf
Compare
@darkowlzz think I managed to address all your comments. |
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.
LGTM!
API changes
The
GitRepository
kind was promoted from v1beta2 to v1 (GA) and deprecated fields were removed.The common types
Artifact
,Conditions
and theSource
interface were promoted to v1.The
gitrepositories.source.toolkit.fluxcd.io
CRD contains the following versions:Upgrade
The
GitRepository
v1 API is backwards compatible with v1beta2 with the following exceptions:.spec.gitImplementation
was removed.spec.accessFrom
was removed.status.contentConfigChecksum
was removed.status.artifact.checksum
was removed.status.url
was removed in favor of the absolute.status.artifact.url
To upgrade from v1beta2, after deploying the new CRD and controller, set
apiVersion: source.toolkit.fluxcd.io/v1
in the YAML files that containGitRepository
definitions and remove the deprecated fields if any. Bumping the API version in manifests can be done gradually. It is advised to not delay this procedure as the beta versions will be removed after 6 months.Closes: #947