big-spring-14945
05/31/2023, 4:33 PMbig-spring-14945
05/31/2023, 4:35 PMcopyFromcopyFrombig-spring-14945
05/31/2023, 4:43 PMkind: Deploy
type: kubernetes
name: test
source:
  repository:
    url: https://github.com/prometheus-operator/kube-prometheus.git#0198f98f682f1d7e40b1dd5615437a916107f1aa
spec:
  files:
    - manifests/grafana-dashboardDefinitions.yamlspec:
  kustomize:
    path: .kustomize.yamlkind: Build
type: exec
name: prometheus-operator-dashboards
source:
  repository:
    url: https://github.com/prometheus-operator/kube-prometheus.git#0198f98f682f1d7e40b1dd5615437a916107f1aa
path: manifestskind: Deploy
type: kubernetes
name: test
copyFrom:
  - build: prometheus-operator-dashboards
    sourcePath: grafana-dashboardDefinitions.yaml
spec:
  kustomization:
    path: .
  files:
    - grafana-dashboardDefinitions.yamlalert-helicopter-61082
05/31/2023, 6:38 PMbuildcopyFrombig-spring-14945
06/01/2023, 9:09 AMbig-spring-14945
06/01/2023, 10:40 AM`
kind: Project
apiVersion: garden.io/v1
name: repro
environments:
 - name: default
providers:
 - name: local-kubernetes
---
# Get prometheus-operator Grafana default dashboards
kind: Build
type: exec
name: github-kube-prometheus
source:
  repository:
    url: https://github.com/prometheus-operator/kube-prometheus.git#3fff8b56097778f1491edba968aee3cfbd5652ef
---
# Combine the dashboards we need with the kustomization we need
kind: Build
type: exec
name: grafana-default-dashboards-with-kustomization
dependencies:
 - build.github-kube-prometheus
copyFrom:
  - build: github-kube-prometheus
    sourcePath: manifests/grafana-dashboardDefinitions.yaml
    targetPath: grafana-prometheus-default.yaml
include:
 - kustomize-add-label/**/*
 - grafana-prometheus-default.yaml
---
# Deploy the default dashboards after applying the kustomization
kind: Deploy
type: kubernetes
name: grafana-default-dashboards
description: Additional grafana dashboards
dependencies:
 - build.grafana-default-dashboards-with-kustomization
build: grafana-default-dashboards-with-kustomization
spec:
  namespace: monitoring
  kustomize:
    path: ./kustomize-add-label/
  files:
    - grafana-prometheus-default.yaml✖ deploy.grafana-default-dashboards → Failed resolving status for Deploy type=kubernetes name=grafana-default-dashboards (took 0.04 sec). Here is the output:
ENOENT: no such file or directory, open '/Users/steffen/repro2/grafana-prometheus-default.yaml'big-spring-14945
06/01/2023, 10:59 AMalert-helicopter-61082
06/01/2023, 11:09 AMalert-helicopter-61082
06/01/2023, 4:38 PMaction.basePath()action.getBuildPath()action.<something>Path()alert-helicopter-61082
06/01/2023, 4:39 PMalert-helicopter-61082
06/02/2023, 9:30 AMalert-helicopter-61082
06/02/2023, 9:31 AMalert-helicopter-61082
06/02/2023, 9:31 AMbig-spring-14945
06/06/2023, 11:55 AM