Skip to content

Jsonnet examples and documentation don't seem to work on k 1.22 #1825

@zalegrala

Description

@zalegrala

Describe the bug

I'm following the docs to create a new mimir deployment in a lab environment and running into an issue.

To Reproduce

Steps to reproduce the behavior:

  1. cp vendor/mimir/mimir-manifests.jsonnet.example environments/mimir/main.jsonnet
  2. tk diff environments/mimir
    Observe the following error.
Error: evaluating jsonnet: RUNTIME ERROR: max stack frames exceeded.
	Field "#mixin"	
	Field "mixin"	
	Field "mixin"	
	Field "mixin"	
	Field "mixin"	
	Field "mixin"	
	Field "mixin"	
	Field "mixin"	
	Field "mixin"	
	Field "mixin"	
	...
	Field "nodeAffinity"	
	Field "affinity"	
	Field "spec"	
	Field "template"	
	Field "spec"	
	Field "daemonSet"	
	Field "v1beta1"	
	Field "extensions"	
	Field "consul"	
	During manifestation	

Expected behavior

I'd expect that the objects render and give back the delta between the running namespace, and the rendered manifest.

Environment

  • Infrastructure: kubernetes on k3s
  • Deployment tool: tanka + jsonnet

Additional Context

Of note, I'm using github.com/jsonnet-libs/k8s-libsonnet/1.22/main.libsonnet instead of the 1.18 as mentioned in the quickstart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions