codebase-operator

by sergk

Helm chartv2.38.0-SNAPSHOT.5App 2.38.0-SNAPSHOT.5Apache-2.0Verified publisher

A Helm chart for KubeRocketCI Codebase Operator

About this chart

codebase-operator

A Helm chart for KubeRocketCI Codebase Operator

Homepage: https://docs.kuberocketci.io/

Maintainers

NameEmailUrl
epmd-edp[email protected]https://solutionshub.epam.com/solution/kuberocketci
sergkhttps://github.com/SergK

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
annotationsobject{}
branchStaleCheckIntervalstring"24h"How often the operator verifies that codebase branches still exist in git, marking missing ones with the Stale condition and the app.edp.epam.com/stale label. Accepts Go duration strings (e.g. 24h, 30m); "0" disables the check.
caCerts.enabledboolfalseMount additional CA certificates from an existing secret, e.g. for integrations behind a self-signed or private CA.
caCerts.secretstring"custom-ca-certificates"Name of an existing secret with CA certificates. Each key must hold a PEM-encoded certificate (a key may also hold a bundle of concatenated certificates); key names are arbitrary. Example: kubectl create secret generic custom-ca-certificates --from-file=ca.crt=my-root-ca.pem
enableWebhooksbooltrueEnable webhook and cert-manager certificate resources. Webhooks require cert-manager to be installed in the cluster.
envs[0].namestring"RECONCILATION_PERIOD"
envs[0].valuestring"360"
envs[1]object{"name":"CODEBASE_BRANCH_MAX_CONCURRENT_RECONCILES","value":"3"}Maximum number of parallel reconciliation codebasebranches
global.gatewayApiobject{"gatewayName":"main-gateway","gatewayNamespace":"envoy-gateway-system"}Gateway API parent Gateway that EventListener HTTPRoutes attach to (used when ingressController=envoy)
global.gatewayApi.gatewayNamestring"main-gateway"Name of the parent Gateway resource
global.gatewayApi.gatewayNamespacestring"envoy-gateway-system"Namespace of the parent Gateway resource
global.platformstring"kubernetes"platform type that can be "kubernetes" or "openshift"
image.registrystring""KubeRocketCI codebase-operator Docker image registry.
image.repositorystring"epamedp/codebase-operator"KubeRocketCI codebase-operator Docker image name. The released image can be found on Dockerhub
image.tagstringnilKubeRocketCI codebase-operator Docker image tag. The released image can be found on Dockerhub
imagePullPolicystring"IfNotPresent"
imagePullSecretslist[]Optional array of imagePullSecrets containing private registry credentials # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry
ingressControllerstring"nginx"Ingress controller for the GitServer EventListener webhook: "nginx" (Ingress) or "envoy" (Gateway API HTTPRoute)
jira.apiUrlstring"https://jiraeu-api.example.com"API URL for development
jira.credentialNamestring"ci-jira"Name of secret with credentials to Jira server
jira.integrationboolfalseFlag to enable/disable Jira integration
jira.namestring"jira"JiraServer CR name
jira.quickLinkobject{"enabled":true}Enable creation of QuickLink for Jira
jira.rootUrlstring"https://jiraeu.example.com"URL to Jira server
knownHosts.entriesstring"" (no self-hosted servers pinned)Host keys for self-hosted git servers, in known_hosts format, one per line. Obtain them with ssh-keyscan -t rsa,ecdsa,ed25519 -p <port> <host> and verify the fingerprints out-of-band before trusting them. Servers on a port other than 22 must use the bracket form, e.g. [git.example.com]:2222 ssh-ed25519 AAAA....
knownHosts.includeDefaultProvidersbooltrueInclude the shipped host keys for github.com, gitlab.com, bitbucket.org and ssh.bitbucket.org. Disable only if you pin these hosts yourself through entries.
namestring"codebase-operator"component name
nodeSelectorobject{}
podLabelsobject{}Labels to be added to the pod
podSecurityContextobject{"runAsNonRoot":true}Pod Security Context Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
resources.limits.memorystring"1Gi"
resources.requests.cpustring"50m"
resources.requests.memorystring"256Mi"
securityContextobject{"allowPrivilegeEscalation":false}Container Security Context Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
telemetryEnabledbooltrueFlag to enable/disable telemetry
tolerationslist[]

Deploy codebase-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has codebase-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcodebase-operator is pinned at v2.38.0-SNAPSHOT.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply