Skip to content
Snippets Groups Projects
install.sh 741 B
Newer Older
  • Learn to ignore specific revisions
  • #!/usr/bin/env bash
    
    
    kubectl get namespace stackspout 2>/dev/null || kubectl create namespace stackspout
    
    
    xeruf's avatar
    xeruf committed
    echo "Creating / Updating gitRepository stackspout"
    
    flux create source git stackspout \
    
    xeruf's avatar
    xeruf committed
      --url=https://forge.ftt.gmbh/polygon/stackspout.git \
    
      --branch=main \
    
      --interval=5m
    
    xeruf's avatar
    xeruf committed
    echo "Creating / Updating kustomization stackspout"
    
    flux create kustomization stackspout \
      --source=GitRepository/stackspout \
    
    xeruf's avatar
    xeruf committed
      --path="./infrastructure/kustomizations/" \
    
      --prune=true \
    
      --interval=5m
    
    xeruf's avatar
    xeruf committed
    # Required for oversized truecharts repo
    export GITEA_TOKEN=$(pass business/ftt/stackspout)
    flux bootstrap gitea \
      --token-auth \
    
      --branch=main \
    
    xeruf's avatar
    xeruf committed
      --hostname=forge.ftt.gmbh \
      --owner=polygon \
      --repository=stackspout \
    
      --path=util/flux