Skip to content

Commit

Permalink
Merge pull request #11 from StrongMonkey/add-v1beta1
Browse files Browse the repository at this point in the history
Add v1beta1 to admissionReview for 1.16 compatibility
  • Loading branch information
StrongMonkey authored Oct 16, 2020
2 parents 25ffe2f + 7c77c33 commit e3995eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/admission/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func listenAndServe(ctx context.Context, cfg *rest.Config, handler http.Handler)
},
FailurePolicy: &failPolicyIgnore,
SideEffects: &sideEffect,
AdmissionReviewVersions: []string{"v1"},
AdmissionReviewVersions: []string{"v1", "v1beta1"},
},
{
Name: "rancherauth.cattle.io",
Expand Down Expand Up @@ -164,7 +164,7 @@ func listenAndServe(ctx context.Context, cfg *rest.Config, handler http.Handler)
},
FailurePolicy: &failPolicyFail,
SideEffects: &sideEffect,
AdmissionReviewVersions: []string{"v1"},
AdmissionReviewVersions: []string{"v1", "v1beta1"},
},
},
})
Expand Down

0 comments on commit e3995eb

Please sign in to comment.