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 #837

Open
wants to merge 7 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 @@ -163,3 +163,12 @@
code-gitrpc-signed
code-search-signed
busybox

[iacm]:
drone-git
ci-lite-engine
ci-addon
harness_terraform
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dwarren-dev where do we get this image from ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And are all of these images available on docker and our gcr ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i see its not in the harness org does that matter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed its available in docker and gcr

iac-server-signed
iacm-manager-signed
iac-cloud-pricing-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 @@ -43,6 +43,10 @@ dependencies:
name: code
repository: https://harness.github.io/helm-charts
version: 0.25.0
- condition: global.iacm.enabled
name: iacm
repository: https://harness.github.io/helm-charts
version: 0.25.0
description: Helm Chart for deploying Harness.
kubeVersion: '>=1.25.0-0'
name: harness
Expand Down
33 changes: 33 additions & 0 deletions src/harness/override-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,36 @@ sto:
requests:
cpu: 256m
memory: 1.5Gi
iacm:
iacm-manager:
autoscaling:
enabled: false
java:
memory: "512m"
replicaCount: 1
resources:
limits:
memory: 1280Mi
requests:
cpu: 256m
memory: 1280Mi
iac-server:
autoscaling:
enabled: false
replicaCount: 1
resources:
limits:
memory: 256Mi
requests:
cpu: 128m
memory: 256Mi
iac-cloud-pricing-api:
autoscaling:
enabled: false
replicaCount: 1
resources:
limits:
memory: 256Mi
requests:
cpu: 128m
memory: 256Mi
38 changes: 38 additions & 0 deletions src/harness/override-large.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -436,3 +436,41 @@ sto:
requests:
cpu: 256m
memory: 1.5Gi
iacm:
iacm-manager:
autoscaling:
enabled: true
minReplicas: 4
maxReplicas: 6
targetCPU: 80
targetMemory: 80
java:
memory: "2048m"
replicaCount: 4
resources:
limits:
memory: 3Gi
requests:
cpu: 2
memory: 3Gi
iac-server:
autoscaling:
enabled: false
replicaCount: 2
resources:
limits:
memory: 256Mi
requests:
cpu: 128m
memory: 256Mi
iac-cloud-pricing-api:
autoscaling:
enabled: false
replicaCount: 2
resources:
limits:
memory: 256Mi
requests:
cpu: 128m
memory: 256Mi

37 changes: 37 additions & 0 deletions src/harness/override-medium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,3 +435,40 @@ sto:
requests:
cpu: 256m
memory: 1.5Gi
iacm:
iacm-manager:
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 4
targetCPU: 80
targetMemory: 80
java:
memory: "2048m"
replicaCount: 3
resources:
limits:
memory: 3Gi
requests:
cpu: 2
memory: 3Gi
iac-server:
autoscaling:
enabled: false
replicaCount: 2
resources:
limits:
memory: 256Mi
requests:
cpu: 128m
memory: 256Mi
iac-cloud-pricing-api:
autoscaling:
enabled: false
replicaCount: 2
resources:
limits:
memory: 256Mi
requests:
cpu: 128m
memory: 256Mi
32 changes: 32 additions & 0 deletions src/harness/override-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -785,3 +785,35 @@ sto:
requests:
cpu: 1
memory: 3072Mi
iacm:
iacm-manager:
autoscaling:
enabled: true
minReplicas: 2
java:
memory: "4096m"
resources:
limits:
memory: 6192Mi
requests:
cpu: 1
memory: 6192Mi
iac-server:
autoscaling:
enabled: true
minReplicas: 2
resources:
limits:
memory: 500Mi
requests:
cpu: 500m
memory: 500Mi
iac-cloud-pricing-api:
autoscaling:
enabled: true
minReplicas: 2
resources:
limits:
memory: 500Mi
requests:
cpu: 500m
37 changes: 37 additions & 0 deletions src/harness/override-small.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,3 +435,40 @@ sto:
requests:
cpu: 256m
memory: 1.5Gi
iacm:
iacm-manager:
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 2
targetCPU: 80
targetMemory: 80
java:
memory: "2048m"
replicaCount: 2
resources:
limits:
memory: 3Gi
requests:
cpu: 2
memory: 3Gi
iac-server:
autoscaling:
enabled: false
replicaCount: 1
resources:
limits:
memory: 256Mi
requests:
cpu: 128m
memory: 256Mi
iac-cloud-pricing-api:
autoscaling:
enabled: false
replicaCount: 1
resources:
limits:
memory: 256Mi
requests:
cpu: 128m
memory: 256Mi
25 changes: 25 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 @@ -582,3 +585,25 @@ ff:
waitForInitContainer:
image:
tag: 1.2.0
iacm:
iac-server:
config:
ENABLE_SMP: "true"
FF_ENABLED: "false"
affinity: {}
autoscaling:
enabled: false
nodeSelector: {}
tolerations: []
iacm-manager:
affinity: {}
autoscaling:
enabled: false
nodeSelector: {}
tolerations: []
iac-cloud-pricing-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: 0.1.0
- name: iacm-manager
repository: oci://us-west1-docker.pkg.dev/gcr-prod/harness-helm-artifacts
version: 0.1.0
- name: iac-cloud-pricing-api
repository: oci://us-west1-docker.pkg.dev/gcr-prod/harness-helm-artifacts
version: 0.1.0
description: Helm chart for Harness IACM
name: iacm
type: application
version: 0.24.0