Created
September 20, 2018 12:28
-
-
Save mjudeikis/e85e5f6caca7ec045ae354e32f28e518 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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