-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(chart): Add cert-manager chart
- #3
- Loading branch information
Showing
13 changed files
with
6,612 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
env: | ||
LB_IP_ADDRESS_POOL: 10.0.0.1/32 | ||
NS_IP: 10.0.0.1 | ||
CUSTOM_DOMAIN: localhost | ||
CUSTOM_DOMAIN: cloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
44 changes: 22 additions & 22 deletions
44
chart/manifest/0004-harbor.k8s.yaml → chart/manifest/0005-harbor.k8s.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ChartLoader, HelmLoader, HelmProps } from '@package/cdk8s-loader' | ||
import { PartialRecursive, scope } from '@package/common' | ||
import { CertManagerHelmParam } from '../helm-values' | ||
import { LoadingChart } from '../types' | ||
|
||
const helmChartName = 'jetstack/cert-manager' | ||
|
||
export const certManagerChart: LoadingChart<{ | ||
helmProps: Omit<HelmProps<PartialRecursive<CertManagerHelmParam>>, 'chart' | 'repo'> | ||
}> = (id, props) => { | ||
const { chartProps, helmProps } = props | ||
const chartLoader = new ChartLoader(id, chartProps) | ||
|
||
const namespace = chartProps.namespace ?? 'default' | ||
|
||
const scopeHelmProps = scope<HelmProps<CertManagerHelmParam>>({ | ||
chart: helmChartName, | ||
namespace | ||
}).merge(helmProps as any) | ||
|
||
return chartLoader.addHelm(() => new HelmLoader(`${id}-helm`, scopeHelmProps.get())) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
261 changes: 261 additions & 0 deletions
261
chart/src/helm-values/jetstack/cert-manager/default-values.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,261 @@ | ||
{ | ||
"global": { | ||
"imagePullSecrets": [], | ||
"commonLabels": {}, | ||
"priorityClassName": "", | ||
"rbac": { | ||
"create": true, | ||
"aggregateClusterRoles": true | ||
}, | ||
"podSecurityPolicy": { | ||
"enabled": false, | ||
"useAppArmor": true | ||
}, | ||
"logLevel": 2, | ||
"leaderElection": { | ||
"namespace": "kube-system" | ||
} | ||
}, | ||
"installCRDs": false, | ||
"replicaCount": 1, | ||
"strategy": {}, | ||
"featureGates": "", | ||
"image": { | ||
"repository": "quay.io/jetstack/cert-manager-controller", | ||
"pullPolicy": "IfNotPresent" | ||
}, | ||
"clusterResourceNamespace": "", | ||
"namespace": "", | ||
"serviceAccount": { | ||
"create": true, | ||
"automountServiceAccountToken": true | ||
}, | ||
"extraArgs": [], | ||
"extraEnv": [], | ||
"resources": {}, | ||
"securityContext": { | ||
"runAsNonRoot": true, | ||
"seccompProfile": { | ||
"type": "RuntimeDefault" | ||
} | ||
}, | ||
"containerSecurityContext": { | ||
"allowPrivilegeEscalation": false, | ||
"capabilities": { | ||
"drop": [ | ||
"ALL" | ||
] | ||
} | ||
}, | ||
"volumes": [], | ||
"volumeMounts": [], | ||
"podLabels": {}, | ||
"nodeSelector": { | ||
"kubernetes.io/os": "linux" | ||
}, | ||
"ingressShim": {}, | ||
"prometheus": { | ||
"enabled": true, | ||
"servicemonitor": { | ||
"enabled": false, | ||
"prometheusInstance": "default", | ||
"targetPort": 9402, | ||
"path": "/metrics", | ||
"interval": "60s", | ||
"scrapeTimeout": "30s", | ||
"labels": {}, | ||
"annotations": {}, | ||
"honorLabels": false | ||
} | ||
}, | ||
"affinity": {}, | ||
"tolerations": [], | ||
"topologySpreadConstraints": [], | ||
"webhook": { | ||
"replicaCount": 1, | ||
"timeoutSeconds": 10, | ||
"config": null, | ||
"strategy": {}, | ||
"securityContext": { | ||
"runAsNonRoot": true, | ||
"seccompProfile": { | ||
"type": "RuntimeDefault" | ||
} | ||
}, | ||
"containerSecurityContext": { | ||
"allowPrivilegeEscalation": false, | ||
"capabilities": { | ||
"drop": [ | ||
"ALL" | ||
] | ||
} | ||
}, | ||
"extraArgs": [], | ||
"resources": {}, | ||
"livenessProbe": { | ||
"failureThreshold": 3, | ||
"initialDelaySeconds": 60, | ||
"periodSeconds": 10, | ||
"successThreshold": 1, | ||
"timeoutSeconds": 1 | ||
}, | ||
"readinessProbe": { | ||
"failureThreshold": 3, | ||
"initialDelaySeconds": 5, | ||
"periodSeconds": 5, | ||
"successThreshold": 1, | ||
"timeoutSeconds": 1 | ||
}, | ||
"nodeSelector": { | ||
"kubernetes.io/os": "linux" | ||
}, | ||
"affinity": {}, | ||
"tolerations": [], | ||
"topologySpreadConstraints": [], | ||
"podLabels": {}, | ||
"serviceLabels": {}, | ||
"image": { | ||
"repository": "quay.io/jetstack/cert-manager-webhook", | ||
"pullPolicy": "IfNotPresent" | ||
}, | ||
"serviceAccount": { | ||
"create": true, | ||
"automountServiceAccountToken": true | ||
}, | ||
"securePort": 10250, | ||
"hostNetwork": false, | ||
"serviceType": "ClusterIP", | ||
"url": {}, | ||
"networkPolicy": { | ||
"enabled": false, | ||
"ingress": [ | ||
{ | ||
"from": [ | ||
{ | ||
"ipBlock": { | ||
"cidr": "0.0.0.0/0" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"egress": [ | ||
{ | ||
"ports": [ | ||
{ | ||
"port": 80, | ||
"protocol": "TCP" | ||
}, | ||
{ | ||
"port": 443, | ||
"protocol": "TCP" | ||
}, | ||
{ | ||
"port": 53, | ||
"protocol": "TCP" | ||
}, | ||
{ | ||
"port": 53, | ||
"protocol": "UDP" | ||
} | ||
], | ||
"to": [ | ||
{ | ||
"ipBlock": { | ||
"cidr": "0.0.0.0/0" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"cainjector": { | ||
"enabled": true, | ||
"replicaCount": 1, | ||
"strategy": {}, | ||
"securityContext": { | ||
"runAsNonRoot": true, | ||
"seccompProfile": { | ||
"type": "RuntimeDefault" | ||
} | ||
}, | ||
"containerSecurityContext": { | ||
"allowPrivilegeEscalation": false, | ||
"capabilities": { | ||
"drop": [ | ||
"ALL" | ||
] | ||
} | ||
}, | ||
"extraArgs": [], | ||
"resources": {}, | ||
"nodeSelector": { | ||
"kubernetes.io/os": "linux" | ||
}, | ||
"affinity": {}, | ||
"tolerations": [], | ||
"topologySpreadConstraints": [], | ||
"podLabels": {}, | ||
"image": { | ||
"repository": "quay.io/jetstack/cert-manager-cainjector", | ||
"pullPolicy": "IfNotPresent" | ||
}, | ||
"serviceAccount": { | ||
"create": true, | ||
"automountServiceAccountToken": true | ||
} | ||
}, | ||
"startupapicheck": { | ||
"enabled": true, | ||
"securityContext": { | ||
"runAsNonRoot": true, | ||
"seccompProfile": { | ||
"type": "RuntimeDefault" | ||
} | ||
}, | ||
"containerSecurityContext": { | ||
"allowPrivilegeEscalation": false, | ||
"capabilities": { | ||
"drop": [ | ||
"ALL" | ||
] | ||
} | ||
}, | ||
"timeout": "1m", | ||
"backoffLimit": 4, | ||
"jobAnnotations": { | ||
"helm.sh/hook": "post-install", | ||
"helm.sh/hook-weight": "1", | ||
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded" | ||
}, | ||
"extraArgs": [], | ||
"resources": {}, | ||
"nodeSelector": { | ||
"kubernetes.io/os": "linux" | ||
}, | ||
"affinity": {}, | ||
"tolerations": [], | ||
"podLabels": {}, | ||
"image": { | ||
"repository": "quay.io/jetstack/cert-manager-ctl", | ||
"pullPolicy": "IfNotPresent" | ||
}, | ||
"rbac": { | ||
"annotations": { | ||
"helm.sh/hook": "post-install", | ||
"helm.sh/hook-weight": "-5", | ||
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded" | ||
} | ||
}, | ||
"serviceAccount": { | ||
"create": true, | ||
"annotations": { | ||
"helm.sh/hook": "post-install", | ||
"helm.sh/hook-weight": "-5", | ||
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded" | ||
}, | ||
"automountServiceAccountToken": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as fs from 'fs' | ||
import * as path from 'path' | ||
import { CertManagerHelmParam } from './types' | ||
|
||
export * from './types' | ||
const defaultValues: CertManagerHelmParam = JSON.parse( | ||
fs.readFileSync(path.resolve(__dirname, 'default-values.json')).toString() | ||
) | ||
export default defaultValues |
Oops, something went wrong.