-
Notifications
You must be signed in to change notification settings - Fork 22
/
certmanager.go
66 lines (64 loc) · 1.73 KB
/
certmanager.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// Copyright 2022 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package resources
// base on doc https://www.ibm.com/docs/en/cpfs?topic=services-configuring-foundational-by-using-custom-resource#cert_resources
const CertManagerConfigCR = `
apiVersion: operator.ibm.com/v1
kind: CertManagerConfig
metadata:
labels:
app.kubernetes.io/instance: ibm-cert-manager-operator
app.kubernetes.io/managed-by: ibm-cert-manager-operator
app.kubernetes.io/name: cert-manager
name: default
spec:
certManagerCAInjector:
resources:
limits:
cpu: 100m
memory: 1000Mi
requests:
cpu: 30m
memory: 500Mi
ephemeral-storage: 256Mi
certManagerController:
resources:
limits:
cpu: 80m
memory: 1010Mi
requests:
cpu: 20m
memory: 230Mi
ephemeral-storage: 510Mi
certManagerWebhook:
resources:
limits:
cpu: 60m
memory: 100Mi
requests:
cpu: 30m
memory: 40Mi
ephemeral-storage: 256Mi
disableHostNetwork: true
enableCertRefresh: true
enableWebhook: true
imageRegistry: icr.io/cpopen/cpfs
license:
accept: false
version: 4.2.4
status:
certManagerConfigStatus: ''
`