Skip to content

Commit

Permalink
feat(kind): add option to enable ResourceQuota
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Oct 2, 2023
1 parent e4365eb commit 64cab8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kind/config/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ OIDC_ISSUER_URL=${OIDC_ISSUER_URL:-""}
# Expose 80 and 443 ports on master node
INGRESS_READY=${INGRESS_READY:-1}

# Enables ResourceQuota admission controller by default
# https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/
ADMISSION_PLUGINS=${ADMISSION_PLUGINS:-NodeRestriction,ResourceQuota}

#----------------------------------------
# Generate kind config
#----------------------------------------
Expand Down Expand Up @@ -60,6 +64,7 @@ cat <<EOF
kind: ClusterConfiguration
apiServer:
extraArgs:
enable-admission-plugins: $ADMISSION_PLUGINS
oidc-issuer-url: $OIDC_ISSUER_URL
oidc-client-id: kubernetes
oidc-groups-claim: groups
Expand Down

0 comments on commit 64cab8e

Please sign in to comment.