Hello Flux Team 👋,
We are using currently the include attribute in GitRepository to bypass some limitations (especially remove base with git) and for path reconciliation, but the current API allows us to use only GitRepository into another GitRepository, like this:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: foo-app-source
namespace: flux-system
spec:
interval: 99m
include:
- repository:
name: fo-experiment-base
fromPath: foor/.base
toPath: apps/cluster/foo/.base
ref:
branch: 'main'
url: ssh://[email protected]/foo/bar.git
secretRef:
name: flux-system
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: foo-experiment-base
namespace: flux-system
spec:
interval: 99m
ref:
tag: 'foo-1.8'
url: ssh://[email protected]/another/repo-with-base-only.git
secretRef:
name: another-secret
And, we would like to be able to use something else than repository in include, for example:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: foo-app-source
namespace: flux-system
spec:
interval: 99m
include:
- source:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: Bucket
name: foo-s3-base
fromPath: foor/.base
toPath: apps/cluster/foo/.base
ref:
branch: 'main'
url: ssh://[email protected]/foo/bar.git
secretRef:
name: flux-system
Or even, in (near) future, being able to do the same with OCI registry like this:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: foo-app-source
namespace: flux-system
spec:
interval: 99m
include:
- source:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
name: foo-oci-base
fromPath: foor/.base
toPath: apps/cluster/foo/.base
ref:
branch: 'main'
url: ssh://[email protected]/foo/bar.git
secretRef:
name: flux-system
If you need more feedback or use case we have from that, feel free to ask, I'll be happy to share in more details our structure.
PS: Flux is a super product, thank you for it!
Hello Flux Team 👋,
We are using currently the
includeattribute inGitRepositoryto bypass some limitations (especially remove base withgit) and for path reconciliation, but the current API allows us to use onlyGitRepositoryinto anotherGitRepository, like this:And, we would like to be able to use something else than
repositoryininclude, for example:Or even, in (near) future, being able to do the same with OCI registry like this:
If you need more feedback or use case we have from that, feel free to ask, I'll be happy to share in more details our structure.
PS: Flux is a super product, thank you for it!