Skip to content

Commit

Permalink
update kots helm to be able to download from local registry (#551)
Browse files Browse the repository at this point in the history
* add local registry config

* fix imagePullSecret name reference

* fix image pull secret

* update router repository for airgap mode

* update cdn-invalidator-sub repository for local registry

* update local registry condition

* fix invalidator repository

* Delete not needed extra image

* Delete not needed changes

* Add needed additional image

* Add replicated sdk in airgap bundle and disable postgres

* Add imagePullSecret for Replicated SDK

---------

Co-authored-by: Moisés Calzado <[email protected]>
  • Loading branch information
alvarorm22 and moicalcob authored Jun 14, 2024
1 parent 4be50c1 commit 4a88879
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/kots-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
- deployment/carto-workspace-subscriber
- deployment/carto-workspace-www
minKotsVersion: 1.107.4
additionalImages:
- gcr.io/carto-onprem-artifacts/tenant-requirements-checker:2024.4.17-rc.7
---
apiVersion: app.k8s.io/v1beta1
kind: Application
Expand Down
20 changes: 20 additions & 0 deletions manifests/kots-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ spec:
chart:
name: carto
chartVersion: 1.110.1
builder:
replicated:
enabled: true
internalPostgresql:
enabled: false

values:
replicated:
enabled: true
platformDistribution: '{{repl ConfigOption "platformDistribution" }}'
images:
replicated-sdk: '{{repl LocalImageName "docker.io/replicated/replicated-sdk:v1.0.0-beta.21" }}'

# License
## Carto Secrets
Expand Down Expand Up @@ -561,3 +569,15 @@ spec:
tenantRequirementsChecker: *customSecurityContext
internalPostgresql: *customSecurityContext
upgradeCheck: *customSecurityContext

# Airgap mode AND Local Registry
- when: '{{repl and (IsAirgap) (HasLocalRegistry) }}'
recursiveMerge: true
values:
global:
imageRegistry: '{{repl LocalRegistryAddress }}'
imagePullSecrets:
- '{{repl ImagePullSecretName }}'
replicated:
imagePullSecrets:
- '{{repl ImagePullSecretName }}'

0 comments on commit 4a88879

Please sign in to comment.