Skip to content

make deploy throws accumulation err='merging resources from 'metrics_service.yaml' #440

@jrbangit

Description

@jrbangit

make deploy throws similar issue as make install, but even after fixing the kustomization config syntax.
It throws another error:

# Warning: 'vars' is deprecated. Please use 'replacements' instead. [EXPERIMENTAL] Run 'kustomize edit fix' to update your Kustomization automatically.
Error: accumulating resources: accumulation err='merging resources from 'metrics_service.yaml': may not add resource with an already registered id: Service.v1.[noGrp]/controller-manager-metrics-service.system': must build at directory: '/Users/jrbangit03/tortoise/config/default/metrics_service.yaml': file is not directory
error: no objects passed to apply
make: *** [deploy] Error 1

Also, this file no longer exists: manager_metrics_patch.yaml and the service in metrics_service.yaml seems to have a clashing name (controller-manager-metrics-service) which causes an error

steps to reproduce:

  • cd to config/default
  • remove the keyword path from all paths. e.g. - path: manager_auth_proxy_patch.yaml to - manager_auth_proxy_patch.yaml in kustomization.yaml
  • run ../../bin/kustomize edit fix
  • cd to back to root ($HOME/tortoise)
  • make deploy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions