Merge pull request #83064 from liggitt/propagate-context

Propagate context to remote authorize/authenticate webhook calls
This commit is contained in:
Kubernetes Prow Robot
2019-09-25 09:32:01 -07:00
committed by GitHub
61 changed files with 270 additions and 93 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package framework
import (
"context"
"flag"
"net"
"net/http"
@@ -69,7 +70,7 @@ type Config struct {
// alwaysAllow always allows an action
type alwaysAllow struct{}
func (alwaysAllow) Authorize(requestAttributes authorizer.Attributes) (authorizer.Decision, string, error) {
func (alwaysAllow) Authorize(ctx context.Context, requestAttributes authorizer.Attributes) (authorizer.Decision, string, error) {
return authorizer.DecisionAllow, "always allow", nil
}