Given the following GitRepository and Kustomization...
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: gitops-examples
namespace: flux-system
spec:
interval: 1m0s
ref:
branch: main
url: https://github.com/christianh814/gitops-examples
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: welcome-app
namespace: flux-system
spec:
interval: 10m0s
path: ./welcome-k8s/overlays/default
prune: true
sourceRef:
kind: GitRepository
name: gitops-examples
The following command will fail
$ mta kustomization --name welcome-app
FATA[0000] gitrepositories.source.toolkit.fluxcd.io "welcome-app" not found
This is because mta currently assumes that all repos require authentication
This should be changed to check to see if the Kustomization is using a public repo.
Given the following
GitRepositoryandKustomization...The following command will fail
$ mta kustomization --name welcome-app FATA[0000] gitrepositories.source.toolkit.fluxcd.io "welcome-app" not foundThis is because
mtacurrently assumes that all repos require authenticationThis should be changed to check to see if the
Kustomizationis using a public repo.