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

Various changes #1622

Merged
merged 15 commits into from
Sep 7, 2023
Merged

Various changes #1622

merged 15 commits into from
Sep 7, 2023

Conversation

Alan-Cha
Copy link
Member

@Alan-Cha Alan-Cha commented Sep 5, 2023

Fix #1598
Fix #1615
Fix #1611
Fix #1617
Fix #1492

@Alan-Cha Alan-Cha requested a review from kalantar September 5, 2023 20:58
This was referenced Sep 6, 2023
@Alan-Cha Alan-Cha marked this pull request as ready for review September 6, 2023 12:20
cmd/k.go Outdated Show resolved Hide resolved
cmd/k.go Outdated Show resolved Hide resolved
cmd/krun.go Outdated Show resolved Hide resolved
cmd/krun.go Outdated Show resolved Hide resolved
charts/iter8/README.md Outdated Show resolved Hide resolved
cmd/krun.go Outdated

$ iter8 k run --namespace {{ .Experiment.Namespace }} --group {{ .Experiment.group }}
$ iter8 k run --namespace {{ .Test.Namespace }} --group {{ .Test.group }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove --group

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also change _k-job.tpl to remove this option

cmd/root.go Show resolved Hide resolved
cmd/k.go Outdated Show resolved Hide resolved
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
Comment on lines -84 to -107
// errorCode checks if a given code is an error code
func (t *collectHTTPTask) errorCode(code int) bool {
// connection failure
if code == -1 {
return true
}
// HTTP errors
for _, lims := range t.With.ErrorRanges {
// if no lower limit (check upper)
if lims.Lower == nil && code <= *lims.Upper {
return true
}
// if no upper limit (check lower)
if lims.Upper == nil && code >= *lims.Lower {
return true
}
// if both limits are present (check both)
if lims.Upper != nil && lims.Lower != nil && code <= *lims.Upper && code >= *lims.Lower {
return true
}
}
return false
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not used

Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
kalantar
kalantar previously approved these changes Sep 7, 2023
Copy link
Member

@kalantar kalantar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Signed-off-by: Alan Cha <[email protected]>
Copy link
Member

@kalantar kalantar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kalantar kalantar merged commit 3c2a0a0 into iter8-tools:master Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants