cognitedata/inso-bootstrap-cli

Allow running Diagram-command without connecting to CDF

sdorheim opened this issue · 3 comments

Allow running Diagram-command without connecting to CDF

that should be in fact already implemented :)

  • and you can define --cdf-project to pick one from multiple configured in idp-mappings
poetry run bootstrap diagram --cdf-project shiny-test /configs/config-simple-v2-draft.yml

name of the selected project is reflected in the diagram now too, that it is easier to understand "IdP Groups for CDF Project: ''shiny-test" are visualized

I think we can close this @sdorheim?

  • two options to make this happen
    a) provide a cognite config section in yaml-config => and you still can decide with -cdf-project shiny-test you want to diagram
    b) don't provide a cognite section at all, and diagram still works (tested right now)

what is not working is:

  • a cognite section available with not-working values (like i.e. BOOTSTRAP_IDP_CLIENT_ID / BOOTSTRAP_IDP_CLIENT_SECRET)

implemented as explained in last comment
closing it