Closed
Conversation
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Author
|
All right I was able to make it working this way: ---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: cozy-git
namespace: cozy-public
spec:
interval: 1m0s
ref:
tag: v0.37.6
timeout: 60s
url: https://github.com/cozystack/cozystack.git
ignore: |
# exclude all
/*
# include packages dir
!/packages
---
# ArtifactGenerator with explicit copy operations (no symlinks needed)
apiVersion: source.extensions.fluxcd.io/v1beta1
kind: ArtifactGenerator
metadata:
name: apps
namespace: cozy-public
spec:
sources:
- alias: cozy-git
kind: GitRepository
name: cozy-git
namespace: cozy-public
artifacts:
- name: apps-virtual-machine
copy:
- from: "@cozy-git/packages/apps/virtual-machine/**"
to: "@artifact/virtual-machine/"
- from: "@cozy-git/packages/library/cozy-lib/**"
to: "@artifact/virtual-machine/charts/cozy-lib/"
- name: apps-vm-instance
copy:
- from: "@cozy-git/packages/apps/vm-instance/**"
to: "@artifact/vm-instance/"
- from: "@cozy-git/packages/library/cozy-lib/**"
to: "@artifact/vm-instance/charts/cozy-lib/"
---
# HelmRelease uses ExternalArtifact
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: virtual-machine-asd2
namespace: tenant-user
spec:
interval: 5m
chartRef:
kind: ExternalArtifact
name: apps-virtual-machine
namespace: cozy-public
install:
remediation:
retries: -1
upgrade:
remediation:
retries: -1
values:
cloudInit: ""
cloudInitSeed: ""
external: false
externalMethod: PortList
externalPorts:
- 22
instanceProfile: ubuntu
instanceType: u1.medium
running: true
systemDisk:
image: ubuntu
storage: 5Gi
storageClass: replicatedSeems I can even generate charts from the bundled OCI repository. The sad thing is automatically generated index for the repository, but this can be handled by code generation. I will close this PR for now, as original issue closed. I have no more time for testing it right now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Another implementation of fluxcd/source-controller#1931 but for source-watcher