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

Fix cache race status #95

Draft
wants to merge 62 commits into
base: master
Choose a base branch
from
Draft

Fix cache race status #95

wants to merge 62 commits into from

Conversation

yuval-k
Copy link
Member

@yuval-k yuval-k commented Mar 19, 2020

BOT NOTES:
resolves #104

@yuval-k yuval-k requested a review from ilackarms March 19, 2020 13:40
SocketAddress: &envoy_api_v2_core.SocketAddress{
Address: p.Cache.Name + "." + p.Cache.Namespace + ".svc.cluster.local", // do we need the suffix svc.cluster.local?
PortSpecifier: &envoy_api_v2_core.SocketAddress_PortValue{
PortValue: 9979,
Copy link
Member

Choose a reason for hiding this comment

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

add this to defaults package

}
case WorkloadTypeDaemonSet:
workloads, err := p.KubeClient.AppsV1().DaemonSets(p.Workload.Namespace).List(metav1.ListOptions{
workloads, err := p.KubeClient.AppsV1().Deployments(p.Workload.Namespace).List(metav1.ListOptions{
Copy link
Member

Choose a reason for hiding this comment

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

revert to daemonset

@@ -125,10 +128,25 @@ func (c *CacheImpl) Get(ctx context.Context, digest digest.Digest) (model.Filter
}

func (c *CacheImpl) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
_, file := path.Split(r.URL.Path)
switch {
case len(file) == hex.EncodedLen(crypto.SHA256.Size()):
Copy link
Member

Choose a reason for hiding this comment

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

add comment for gloo backwards-compatibility (and maybe deprecate at some pt)?

_, err := d.kube.AppsV1().DaemonSets(d.namespace).Create(desiredDaemonSet)
// update on already exists err
_, err := d.kube.AppsV1().Deployments(d.namespace).Create(desiredDeployment)
// update don already exists err
Copy link
Member

Choose a reason for hiding this comment

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

don

@solo-changelog-bot
Copy link

Issues linked to changelog:
#104

@yuval-k
Copy link
Member Author

yuval-k commented Sep 22, 2020

this will be flaky untill istio 1.8 is out

@yuval-k yuval-k marked this pull request as draft September 22, 2020 16:57
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

Successfully merging this pull request may close these issues.

POD restarts when applying wasm deploy
2 participants