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
[Testing Framework] Support per app annotations. #13486
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: incfly If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
"io/ioutil" | ||
"testing" | ||
|
||
"istio.io/istio/pilot/test/util" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File is not goimports
-ed (from goimports
)
if len(a.appName) == 0 { | ||
return nil, fmt.Errorf("service does not contain the 'app' label") | ||
return nil, fmt.Errorf("Service does not contain the 'App' label") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
var ( | ||
runtimeScheme = runtime.NewScheme() | ||
codecs = serializer.NewCodecFactory(runtimeScheme) | ||
deserializer = codecs.UniversalDeserializer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deserializer
is unused (from varcheck
)
wantFilePath := fmt.Sprintf("testdata/%v.yaml", name) | ||
golden, err := ioutil.ReadFile(wantFilePath) | ||
gotBytes := []byte(got) | ||
wantBytes := []byte(golden) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary conversion (from unconvert
)
) | ||
|
||
var ( | ||
runtimeScheme = runtime.NewScheme() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
U1000: var runtimeScheme
is unused (from unused
)
|
||
var ( | ||
runtimeScheme = runtime.NewScheme() | ||
codecs = serializer.NewCodecFactory(runtimeScheme) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
U1000: var codecs
is unused (from unused
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the change but it may be better off going into Echo which will deprecate Apps component soon
@@ -65,6 +65,13 @@ type App interface { | |||
type AppParam struct { | |||
Name string | |||
Locality string | |||
// ServiceAnnotations specifies the annotations for the deployment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the deployment
or for the Service?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are native apps completely unaffected?
"serviceAccount": strconv.FormatBool(d.serviceAccount), | ||
"locality": d.locality, | ||
}) | ||
// TODO(incfly): retire InjectProxy field and use annotation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just do it in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
Thanks for the heads up on echo component updates. I haven't stayed tuned with the native & echo implementation. IIRC, they don't have sidecar injector right? Annotations are consumed by either pilot or sidecar injector. Not sure how will these be reflected in native environment? Thoughts? @howardjohn @nmittler @ozevren |
Annotations can impact pilot so still useful even without sidecar injector I think |
In native environment, Pilot is configured thru MCP/galley, right? Does that mean we need to plumb this info to Galley in case of native env? |
How does the annotations impact Pilot? The only way I am aware of is
endpoints. Is there anything else?
If so, the solution seem to be making sure that the endpoint information
flows correctly in the native case.
…On Mon, Apr 22, 2019 at 10:41 AM istio-bot ***@***.***> wrote:
@incfly <https://github.com/incfly>: The following tests *failed*, say
/retest to rerun them all:
Test name Commit Details Rerun command
prow/istio-unit-tests.sh 886bc3c
<886bc3c>
link
<https://k8s-gubernator.appspot.com/build/istio-prow/pr-logs/pull/istio_istio/13486/istio-unit-tests/24192> /test
istio-unit-tests
prow/istio-integ-k8s-tests.sh 886bc3c
<886bc3c>
link
<https://k8s-gubernator.appspot.com/build/istio-prow/pr-logs/pull/istio_istio/13486/istio-integ-k8s-tests/7137> /test
istio-integ-k8s-tests
prow/istio-integ-local-tests.sh 95b4fe0
<95b4fe0>
link
<https://k8s-gubernator.appspot.com/build/istio-prow/pr-logs/pull/istio_istio/13486/istio-integ-local-tests/9113> /test
istio-integ-local-tests
Instructions for interacting with me using PR comments are available here
<https://git.k8s.io/community/contributors/guide/pull-requests.md>. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
<https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:>
repository. I understand the commands that are listed here
<https://go.k8s.io/bot-commands>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13486 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AECHYIYJAOO2IZMMLBS2AGLPRX2DXANCNFSM4HHIQNPA>
.
|
/hold until #13175 is merged. |
@incfly: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@nmittler your PR now is merged. Is it ready for us to revive this PR? Or we still need to wait for ollow-up changes on echo/apps component? |
@incfly I'm currently working out a couple of issues with Echo which should probably be fixed first. I'm hoping to have it resolved over the next couple of days. |
@nmittler okay, is there a issue number of pr for me to track? |
This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Adds support for specifying service and workload annotations for Echo deployments. Replaces istio#13486
Adds support for specifying service and workload annotations for Echo deployments. Replaces #13486
Hopefully we can reduce the number of the Istio installation.