-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add cluster sync addendum to RFC-0001 #75
Conversation
- `url`: The URL of the source repository, can be a Git repository HTTP/S or SSH address, an OCI repository address or a Bucket endpoint. | ||
- `ref`: The source reference, can be a Git ref name e.g. `refs/heads/main`, an OCI tag e.g. `latest` or a Bucket name. | ||
- `path`: The path to the source directory containing the kustomize overlay or plain Kubernetes manifests to sync from. | ||
- `pullSecret`: The name of the Kubernetes secret that contains the credentials to pull the source repository. This field is optional. |
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.
whjat about the provider
field? It's true that we cannot do it for git
yet, but we can already have it in the rfc.
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.
Provider is set from the cluster.type
field, no point in duplicating it here.
- `kind`: The source kind, supported values are `GitRepository`, `OCIRepository` and `Bucket`. | ||
- `url`: The URL of the source repository, can be a Git repository HTTP/S or SSH address, an OCI repository address or a Bucket endpoint. | ||
- `ref`: The source reference, can be a Git ref name e.g. `refs/heads/main`, an OCI tag e.g. `latest` or a Bucket name. | ||
- `path`: The path to the source directory containing the kustomize overlay or plain Kubernetes manifests to sync from. |
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.
I have written a question about it in the implementation PR, but what about LayerSelector
? I would rather use that than path for an oci Artifact
.
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.
LayerSelector
could be added via a kustomize patch if anyone needs it, for now there is no practical use to it. The artifacts in this case are create with flux push artifact
for the fleet Git repo content, so path is a must for any of this to work.
Signed-off-by: Stefan Prodan <[email protected]>
c2901ab
to
6649114
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.
LGTM!
Signed-off-by: Stefan Prodan <[email protected]>
Extend the RFC so that the
FluxInstance
resource can be configured to instruct the operator to generate a Flux source (GitRepository
,OCIRepository
orBucket
) and a FluxKustomization
to sync the cluster state with the source repository.Reference implementation: controlplaneio-fluxcd/flux-operator#20