Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template context within tasks configuration and organization update produce incosistent state #600

Open
project0 opened this issue Nov 26, 2024 · 0 comments

Comments

@project0
Copy link

Subject of the issue

Update-organization is produces and uses different states when template context is used. It looks like only the template context given the CLI is fully respected. Strangely the organization is updates as expected with all template settings, but the stored state in s3 is wrong and later also not used for other operations.
Additionally nunjuck debug output template produces the correct yaml file, but as i said before not used in later operations.

Your environment

  • version of org-foramtion (ofn --version): 1.0.16
  • version of node (node --version)
  • which OS/distro

Steps to reproduce

assume you set the follwoing template context set via CLI

{
  "context": {
    "id": "flowers-test"
    }
}

and enrich the template context with additional variables in the tasks

OrganizationUpdate:
  Type: update-organization
  Template: ./organization.yaml
  TemplatingContext:
    context: {{ context | dump | safe }}
    email-domain: "test.com"

Expected behaviour

TemplatingContext should be respected the same way as with tasks. The stored state should also reflect it and the dependend tasks should be able to read the (final) produced state as given with the template context.

Actual behaviour

TemplatingContext given in the tasks.yaml is partially ignored, the org is updated as given, but the state is produced differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant