Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [IAC-2968]: add iacm #828

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/airgap/airgap_input.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,12 @@
code-gitrpc-signed
code-search-signed
busybox

[iacm]:
drone-git
ci-lite-engine
ci-addon
harness_terraform
iac-server-signed
iacm-manager-signed
iac-cloud-cost-api-signed
2 changes: 1 addition & 1 deletion src/airgap/create-airgap-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export DOCKER_DEFAULT_PLATFORM=linux/amd64

# Provide lists of image names
lists=("cdng_images.txt" "ci_images.txt" "platform_images.txt" "ccm_images.txt"
"ce_images.txt" "sto_images.txt" "ff_images.txt" "ssca_images.txt" "dbdevops_images.txt" "code_images.txt")
"ce_images.txt" "sto_images.txt" "ff_images.txt" "ssca_images.txt" "dbdevops_images.txt" "code_images.txt" "iacm_images.txt")

pull_image() {
i="$1"
Expand Down
2 changes: 1 addition & 1 deletion src/airgap/upload_all_bundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ service_account_file=$1
release_number=$2

# Array of files to upload
files=("platform_images.tgz" "cdng_images.tgz" "ccm_images.tgz" "ce_images.tgz" "ff_images.tgz" "ci_images.tgz" "sto_images.tgz" "ssca_images.tgz" "dbdevops_images.tgz" "code_images.tgz")
files=("platform_images.tgz" "cdng_images.tgz" "ccm_images.tgz" "ce_images.tgz" "ff_images.tgz" "ci_images.tgz" "sto_images.tgz" "ssca_images.tgz" "dbdevops_images.tgz" "code_images.tgz" "iacm_images.tgz")

# Create an empty file and upload it to the destination bucket path
touch empty_file
Expand Down
2 changes: 1 addition & 1 deletion src/airgap/validate_airgap.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

MODULE_NAMES=("platform" "ccm" "cdng" "ci" "ce" "sto" "ff" "ssca" "dbdevops" "code")
MODULE_NAMES=("platform" "ccm" "cdng" "ci" "ce" "sto" "ff" "ssca" "dbdevops" "code" "iacm")

abort() {
echo "Error: $1"
Expand Down
4 changes: 4 additions & 0 deletions src/harness/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ dependencies:
name: code
repository: https://harness.github.io/helm-charts
version: 0.24.0
- condition: global.iacm.enabled
name: iacm
repository: https://harness.github.io/helm-charts
version: 0.24.0
description: Helm Chart for deploying Harness.
kubeVersion: '>=1.25.0-0'
name: harness
Expand Down
22 changes: 22 additions & 0 deletions src/harness/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ global:
# -- Enable to install Harness Code services (CODE)
code:
enabled: false
# -- Enable to install Harness Infrastructure As Code Management (IACM)
iacm:
enabled: false
# -- provide overrides to use in-cluster database or configure to use external databases
database:
clickhouse:
Expand Down Expand Up @@ -585,3 +588,22 @@ ff:
waitForInitContainer:
image:
tag: 1.2.0
iacm:
iac-server:
affinity: {}
autoscaling:
enabled: false
nodeSelector: {}
tolerations: []
iacm-manager:
affinity: {}
autoscaling:
enabled: false
nodeSelector: {}
tolerations: []
iac-cloud-cost-api:
affinity: {}
autoscaling:
enabled: false
nodeSelector: {}
tolerations: []
16 changes: 16 additions & 0 deletions src/modules/iacm/chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v2
appVersion: 0.0.79001
dependencies:
- name: iac-server
repository: oci://us-west1-docker.pkg.dev/gcr-prod/harness-helm-artifacts
version: 1.101.0
- name: iacm-manager
repository: oci://us-west1-docker.pkg.dev/gcr-prod/harness-helm-artifacts
version: 1.53.1
- name: iac-cloud-cost-api
repository: oci://us-west1-docker.pkg.dev/gcr-prod/harness-helm-artifacts
version: 1.20.0
description: Helm chart for Harness IACM
name: iacm
type: application
version: 0.24.0