Commit c08fcbdb authored by Alejandro Sanchez's avatar Alejandro Sanchez
Browse files

feat: fixed declarative architecture

parent 3db5c0c9
Loading
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: oai-5g-core
  namespace: oai-core
  name: oai-core
  namespace: PLACEHOLDER
spec:
  releaseName: oai-5g-core
  chart:
    spec:
      chart: oai-5g-core
      version: "2.2.0"
      sourceRef:
        kind: HelmRepository
        name: gituh-helm
        name: oai-repo
        namespace: PLACEHOLDER
  interval: 10m0s
  install:
    remediation:
      retries: 3
 No newline at end of file
  targetNamespace: PLACEHOLDER
+2 −3
Original line number Diff line number Diff line
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: gituh-helm
  namespace: oai-core
  name: oai-repo
  namespace: PLACEHOLDER
spec:
  interval: 10m0s
  url: https://alesan121.github.io/free5gc-helm-repo/
+35 −0
Original line number Diff line number Diff line
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: ${APPNAME}
  namespace: flux-system
spec:
  interval: 1h0m0s
  path: ./oka/apps/oai-5g-core/manifests
  prune: true
  sourceRef:
    kind: GitRepository
    name: sw-catalogs
    namespace: flux-system
  patches:
    - target:
        kind: HelmRelease
      patch: |-
        - op: replace
          path: /metadata/name
          value: ${APPNAME}
        - op: replace
          path: /metadata/namespace
          value: ${TARGET_NS}
        - op: replace
          path: /spec/chart/spec/sourceRef/namespace
          value: ${TARGET_NS}
        - op: replace
          path: /spec/targetNamespace
          value: ${TARGET_NS}
    - target:
        kind: HelmRepository
      patch: |-
        - op: replace
          path: /metadata/namespace
          value: ${TARGET_NS}
+4 −6
Original line number Diff line number Diff line
@@ -2,17 +2,15 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: ueransim
  namespace: ueransim
  namespace: PLACEHOLDER
spec:
  releaseName: ueransim
  chart:
    spec:
      chart: free5gc-ueransim
      version: "2.0.17"
      sourceRef:
        kind: HelmRepository
        name: gituh-helm
        name: ueran-repo
        namespace: PLACEHOLDER
  interval: 10m0s
  install:
    remediation:
      retries: 3
 No newline at end of file
  targetNamespace: PLACEHOLDER
+2 −3
Original line number Diff line number Diff line
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: gituh-helm
  namespace: ueransim
  name: ueran-repo
  namespace: PLACEHOLDER
spec:
  interval: 10m0s
  url: https://alesan121.github.io/free5gc-helm-repo/
Loading