-
Notifications
You must be signed in to change notification settings - Fork 40
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
base: master
Are you sure you want to change the base?
Conversation
pkg/deploy/istio/istio_provider.go
Outdated
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, |
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.
add this to defaults
package
pkg/deploy/istio/istio_provider.go
Outdated
} | ||
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{ |
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.
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()): |
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.
add comment for gloo backwards-compatibility (and maybe deprecate at some pt)?
pkg/cache/deploy.go
Outdated
_, 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 |
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.
don
Issues linked to changelog: |
this will be flaky untill istio 1.8 is out |
BOT NOTES:
resolves #104