Skip to content

Commit

Permalink
removed already enabled apis
Browse files Browse the repository at this point in the history
  • Loading branch information
alkar committed Oct 19, 2017
1 parent fd026ea commit 77ac23b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions master.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,14 @@ data "template_file" "kube-apiserver" {
oidc_issuer_url = "${var.oidc_issuer_url}"
oidc_client_id = "${var.oidc_client_id}"

runtime_config = "${join(",", list(
"extensions/v1beta1=true",
"extensions/v1beta1/deployments=true",
"extensions/v1beta1/daemonsets=true",
"extensions/v1beta1/networkpolicies=true",
"extensions/v1beta1/thirdpartyresources=true",
"rbac.authorization.k8s.io/v1=true",
"batch/v2alpha1=true",
))}"
/*
* for the list of APIs & resources enabled by default, please see near the
* bottom of the file:
* https://github.com/kubernetes/kubernetes/blob/<ref>/pkg/master/master.go
*
*/

runtime_config = "${join(",", list())}"
}
}

Expand Down
2 changes: 1 addition & 1 deletion resources/kube-apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- --client-ca-file=/etc/kubernetes/ssl/ca.pem
- --service-account-key-file=/etc/kubernetes/ssl/signing-key.pem
- --service-account-lookup=true
- --runtime-config=${runtime_config}
${runtime_config == "" ? "" : "- --runtime-config=${runtime_config}"}
${cloud_provider == "" ? "" : "- --cloud-provider=${cloud_provider}"}
- --oidc-issuer-url=${oidc_issuer_url}
- --oidc-username-claim=email
Expand Down

0 comments on commit 77ac23b

Please sign in to comment.