Skip to content

Instantly share code, notes, and snippets.

View alpeb's full-sized avatar
😙

Alejandro Pedraza alpeb

😙
View GitHub Profile
diff --git a/controller/proxy-injector/webhook.go b/controller/proxy-injector/webhook.go
index 66683126..85c1756b 100644
--- a/controller/proxy-injector/webhook.go
+++ b/controller/proxy-injector/webhook.go
@@ -153,6 +153,10 @@ func (w *Webhook) inject(request *admissionv1beta1.AdmissionRequest) (*admission
patch.addInitContainer(proxyInit)
}
+ if deployment.Spec.Template.Annotations == nil {
+ deployment.Spec.Template.Annotations = map[string]string{}
@alpeb
alpeb / self-signed-root.diff
Created January 28, 2019 14:33
Diff for self signed root and leaf certs
diff --git a/controller/proxy-injector/server.go b/controller/proxy-injector/server.go
index bf172c21..b9522cdf 100644
--- a/controller/proxy-injector/server.go
+++ b/controller/proxy-injector/server.go
@@ -7,7 +7,6 @@ import (
"io/ioutil"
"net/http"
- pem "github.com/linkerd/linkerd2/pkg/tls"
log "github.com/sirupsen/logrus"
package controllers
import com.micronautics.paypal.PaypalTransaction
import play.api._
import play.api.mvc._
object PayPalController extends Controller {
var live = true
def url =
package controllers
import play.api._
import play.api.mvc._
import org.apache.commons.httpclient.HttpClient
import org.apache.commons.httpclient.methods.GetMethod
import models.Purchase
object Paypal extends Controller {