Skip to content

Instantly share code, notes, and snippets.

@mjudeikis
Created September 20, 2018 12:28
Show Gist options
  • Save mjudeikis/e85e5f6caca7ec045ae354e32f28e518 to your computer and use it in GitHub Desktop.
Save mjudeikis/e85e5f6caca7ec045ae354e32f28e518 to your computer and use it in GitHub Desktop.
masterConfig, err := Asset("master-config/master-config.yaml")
if err != nil {
panic(err)
}
log.Debug(string(masterConfig))
var o unstructured.Unstructured
err = yaml.Unmarshal(masterConfig, &o)
if err != nil {
panic(err)
}
a := o.UnstructuredContent()
authConfig := a["authConfig"].(map[string]interface{})
log.Debug(authConfig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment