Bootstrap CLI for Maidn
Find a file
2025-10-26 16:12:15 +01:00
.vscode feat: added command to create github-auth 2025-10-21 13:22:07 +02:00
cmd feat: restructure & secret setup 2025-10-26 00:43:31 +02:00
internal fix: updated external secret api 2025-10-26 16:12:15 +01:00
go.mod feat: restructure & secret setup 2025-10-26 00:43:31 +02:00
go.sum feat: restructure & secret setup 2025-10-26 00:43:31 +02:00
main.go feat: restructure & secret setup 2025-10-26 00:43:31 +02:00
README.md chore: docs 2025-09-27 20:32:01 +02:00

Commands

go mod init github.com/Pingu-Studio/MaidnCLI go get -u github.com/spf13/cobra@latest go get golang.org/x/term go mod tidy go get gopkg.in/yaml.v3

in powershell run

go install github.com/go-delve/delve/cmd/dlv@latest
dlv version

TODO

create the file: within the main flux repo dynamically changing the org and repo location based on the user's input

---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: ghcr-charts
  namespace: flux-system
spec:
  interval: 5m
  type: oci
  url: oci://ghcr.io/pingu-studio
  secretRef:
    name: github-auth
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
  name: cicd-deployment-manifests
  namespace: flux-system
spec:
  interval: 1m0s
  url: https://github.com/Pingu-Studio/cicd-deployment-manifests
  ref:
    branch: main
  secretRef:
    name: github-auth
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: namespaces
  namespace: flux-system
spec:
  interval: 10m
  path: ./namespaces
  prune: true
  sourceRef:
    kind: GitRepository
    name: cicd-deployment-manifests
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: preview-apps
  namespace: flux-system
spec:
  dependsOn:
    - name: namespaces
  interval: 2m0s
  path: ./apps/previews
  prune: true
  sourceRef:
    kind: GitRepository
    name: cicd-deployment-manifests
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: staging-apps
  namespace: flux-system
spec:
  dependsOn:
    - name: namespaces
  interval: 2m0s
  path: ./apps/staging
  prune: true
  sourceRef:
    kind: GitRepository
    name: cicd-deployment-manifests

and in the cicd-deployment-manifests repo create:

CICD-DEPLOYMENT-MANIFESTS ├── apps │ ├── previews │ │ └── .gitkeep │ ├── production │ │ └── .gitkeep │ └── staging │ └── .gitkeep ├── namespaces │ ├── kustomization.yaml │ ├── previews.yaml │ ├── production.yaml │ └── staging.yaml └── .gitkeep