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

Read annotations ingress api #3

Open
vavasilva opened this issue Jan 23, 2019 · 1 comment
Open

Read annotations ingress api #3

vavasilva opened this issue Jan 23, 2019 · 1 comment

Comments

@vavasilva
Copy link

tks.sh/uptimerobot.enable: "true"
tks.sh/uptimerobot.monitorspath: "['/healthz','/ready']"
tks.sh/uptimerobot.monitorsprotocol: "['https','https']"
tks.sh/uptimerobot.monitorsinterval: "['300','300']"
tks.sh/uptimerobot.monitorsalertcontact: "['2713850','2713850']"

@michelsazevedo
Copy link

@vavarodrigues, we can unmarshal values only in json formats.

monitorPaths := "[\"/healthz\",\"/ready\"]"
var paths []string

err := json.Unmarshal([]byte(monitorPaths), &paths)
    
if err != nil {
        log.Fatal(err)
}
    
fmt.Printf("%v", paths)

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

2 participants