Skip to content

Commit

Permalink
MGMT-16517: Add Env Var to podman and SaaS templates
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalChun committed Jan 30, 2024
1 parent 12a19ce commit 6c5a61f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/assisted-service.yaml
Expand Up @@ -44,6 +44,8 @@ spec:
value: "ai-kafka-0.ai-kafka-headless.assisted-installer.svc.cluster.local:9092"
- name: KAFKA_EVENT_STREAM_TOPIC
value: "events-stream"
- name: DEPLOYMENT_TYPE
value: "SaaS"
- name: DB_HOST
valueFrom:
secretKeyRef:
Expand Down
1 change: 1 addition & 0 deletions deploy/podman/configmap-disconnected.yml
Expand Up @@ -12,6 +12,7 @@ data:
DB_PORT: "5432"
DB_USER: admin
DEPLOY_TARGET: onprem
DEPLOYMENT_TYPE: "Podman"
DISK_ENCRYPTION_SUPPORT: "true"
DUMMY_IGNITION: "false"
ENABLE_SINGLE_NODE_DNSMASQ: "true"
Expand Down
1 change: 1 addition & 0 deletions deploy/podman/configmap.yml
Expand Up @@ -12,6 +12,7 @@ data:
DB_PORT: "5432"
DB_USER: admin
DEPLOY_TARGET: onprem
DEPLOYMENT_TYPE: "Podman"
DISK_ENCRYPTION_SUPPORT: "true"
DUMMY_IGNITION: "false"
ENABLE_SINGLE_NODE_DNSMASQ: "true"
Expand Down
1 change: 1 addition & 0 deletions deploy/podman/configmap_tls.yml
Expand Up @@ -16,6 +16,7 @@ data:
DB_PORT: "5432"
DB_USER: admin
DEPLOY_TARGET: onprem
DEPLOYMENT_TYPE: "Podman"
DISK_ENCRYPTION_SUPPORT: "true"
DUMMY_IGNITION: "false"
ENABLE_SINGLE_NODE_DNSMASQ: "true"
Expand Down
1 change: 1 addition & 0 deletions internal/uploader/events_uploader.go
Expand Up @@ -180,6 +180,7 @@ func metadataFile(tw *tar.Writer, clusterID *strfmt.UUID, config Config) {
metadata := versions.GetModelVersions(config.Versions)
metadata["deployment-type"] = config.DeploymentType
metadata["deployment-version"] = config.DeploymentVersion
metadata["git-ref"] = config.AssistedServiceVersion

if metadataJson, err := json.Marshal(metadata); err == nil {
addFile(tw, metadataJson, fmt.Sprintf("%s/metadata.json", *clusterID)) //nolint:errcheck // errors adding this file shouldn't prevent the data from being sent
Expand Down
1 change: 1 addition & 0 deletions internal/uploader/events_uploader_test.go
Expand Up @@ -667,6 +667,7 @@ func checkMetadataFile(metadataFile *testFile, cfg Config) {
expectedMetadata := versions.GetModelVersions(cfg.Versions)
expectedMetadata["deployment-type"] = cfg.DeploymentType
expectedMetadata["deployment-version"] = cfg.DeploymentVersion
expectedMetadata["git-ref"] = cfg.AssistedServiceVersion
Expect(metadataContents).To(BeEquivalentTo(expectedMetadata))
}
}
4 changes: 4 additions & 0 deletions openshift/template.yaml
Expand Up @@ -195,6 +195,8 @@ parameters:
- name: ENABLE_DATA_COLLECTION
value: "false"
required: false
- name: DEPLOYMENT_TYPE
value: "SaaS"
- name: INSTALLER_CACHE_CAPACITY
value: "6442450944"
required: false
Expand Down Expand Up @@ -457,6 +459,8 @@ objects:
value: ${ENABLE_REJECT_UNKNOWN_FIELDS}
- name: ENABLE_DATA_COLLECTION
value: ${ENABLE_DATA_COLLECTION}
- name: DEPLOYMENT_TYPE
value: ${DEPLOYMENT_TYPE}
- name: INSTALLER_CACHE_CAPACITY
value: ${INSTALLER_CACHE_CAPACITY}
- name: ENABLE_OKD_SUPPORT
Expand Down

0 comments on commit 6c5a61f

Please sign in to comment.