Hello,
I’m trying to setup an application level backup for MongoDB using kasten/kanister integration in a k8s cluster,
i’ve created the Kanister Profile using the Kasten interface for a S3 Compatible target (minIO) ,
i’m using this YAML as a base blueprint for the backup action
raw.githubusercontent.com/kanisterio/kanister/0.72.0/examples/stable/mongodb/blueprint-v2/mongo-blueprint.yaml
when i execute the policy trough kasten UI, i get the following error:
cause:
cause:
cause:
fields:
- name: message
value: "could not render object reference {mongosecret}: template: config:1:14:
executing \"config\" at <.Deployment.Name>: can't evaluate
field metadata in type *param.DeploymentParams"
Actually our MongoDB is deployed as a Deployment and we have annotated the deployments manifest with this annotation:
kanister.kasten.io/blueprint: mongodb-blueprint
Why the kanister operator cannot evaluate correctly the GO template at runtime?
Best answer by jaiganeshjk
View original