Skip to content

Commit

Permalink
feat: generate chart with manually manage webhook cert (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
narasux authored Jan 17, 2023
1 parent af1bd5a commit 2db1916
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 96 deletions.
7 changes: 5 additions & 2 deletions operator/config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ resources:
patchesStrategicMerge:
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
# patches here are for enabling the conversion webhook for each CRD
- patches/webhook_in_bkapps.yaml
# NOTE: conversion webhook work for convert k8s resource to another version,such as v1alpha1 -> v2beta2
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#customresourceconversion-v1-apiextensions-k8s-io
#- patches/webhook_in_bkapps.yaml
#- patches/webhook_in_domaingroupmappings.yaml
#- patches/webhook_in_projectconfigs.yaml
#+kubebuilder:scaffold:crdkustomizewebhookpatch

# [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix.
# patches here are for enabling the CA injection for each CRD
- patches/cainjection_in_bkapps.yaml
# NOTE: ca inject here is only work for conversion webhook,not affect the working of the Validating & Mutating webhook
#- patches/cainjection_in_bkapps.yaml
#- patches/cainjection_in_domaingroupmappings.yaml
#- patches/cainjection_in_projectconfigs.yaml
#+kubebuilder:scaffold:crdkustomizecainjectionpatch
Expand Down
2 changes: 1 addition & 1 deletion operator/config/manager/controller_manager_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ leaderElection:
# after the manager stops then its usage might be unsafe.
# leaderElectionReleaseOnCancel: true
platformConfig:
bkAppCode: ""
bkAppCode: "bk_paas3"
bkAppSecret: ""
bkAPIGatewayURL: ""
sentryDSN: ""
Expand Down
4 changes: 2 additions & 2 deletions operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
cpu: 2
memory: 2Gi
requests:
cpu: 50m
memory: 128Mi
cpu: 250m
memory: 512Mi
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
Loading

0 comments on commit 2db1916

Please sign in to comment.