Open andeke07 opened 1 week ago
For the sake of tidiness, moving values out of an external file and moving it all to the app manifest produces the same behaviour:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
namespace: argocd
name: pihole
spec:
project: default
destination:
namespace: pihole
server: https://kubernetes.default.svc
source:
repoURL: https://mojo2600.github.io/pihole-kubernetes/
chart: pihole
targetRevision: 2.23.0
helm:
valuesObject:
admin:
existingSecret: pihole-password
ingress:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
enabled: true
hosts:
- dns.my.tld
tls:
- hosts:
- dns.my.tld
secretName: dns-ui-tls
persistentVolumeClaim:
enabled: true
serviceDhcp:
annotations:
metallb.universe.tf/allow-shared-ip: pihole
enabled: false
serviceDns:
annotations:
metallb.universe.tf/allow-shared-ip: pihole
loadBalancerIP: 192.168.0.2
type: LoadBalancer
serviceWeb:
annotations:
metallb.universe.tf/allow-shared-ip: pihole
dnsmasq:
customDnsEntries:
- address=/my.custom.urls/192.168.0.4
- ...
It seems applying this manifest through the CLI works fine and the issue is limited to creating the app through the web UI.
The working manifest, applied via kubectl apply
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: pihole
namespace: argocd
spec:
destination:
namespace: pihole
server: https://kubernetes.default.svc
project: default
sources:
- chart: pihole
helm:
valueFiles:
- $values/pihole/values.yaml
repoURL: https://mojo2600.github.io/pihole-kubernetes/
targetRevision: 2.23.0
- repoURL: git@github.com:MY-REPO/homelab
ref: values
syncPolicy:
automated:
prune: true
selfHeal: true
Checklist:
argocd version
.Describe the bug
When creating an app (from the web UI in this case) it seems to create a recursive app within my app. This is causing my app to constantly be considered out of sync. Deleting redundant app will delete the main app, as this redundant app seems to be referencing itself. I have tried this with 2 separate applications and gotten the same results.
To Reproduce Repo Structure:
(argocd-apps/pihole/pihole.yml is the app definition and pihole/values.yaml is the helm chart values file)
App manifest as shown in the web UI
argocd-apps/pihole/pihole.yml
pihole/values.yaml:
Expected behavior A redundant application would not be created. This app cannot be deleted as it is somehow cyclically referencing the main app and deletion of the redundant app deletes the main app.
Screenshots
Version