Skip to content

Commit e1662a5

Browse files
Custom Domain Input; OKE Status check; Optional Custom input before helm install (#98)
Custom Domain Input; OKE Status check; Optional Custom input before helm install
1 parent da250d7 commit e1662a5

25 files changed

+285
-45
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 2024-11-20
4+
### Added
5+
- Support for new OCI Regions which are not yet supported through OCI Ruby SDK by default.
6+
- Status check for OKE lifecycle state to be active before installing helm chart, when installed using RMS.
7+
- An option to apply a static delay before installing helm chart, when installed using RMS.
8+
39
## 2024-11-05
410
### Added
511
- Support of extraEnv for Management Agent

charts/logan/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: v2
55
name: oci-onm-logan
66
description: Charts for sending Kubernetes platform logs, compute logs, and Kubernetes Objects information to OCI Logging Analytics.
77
type: application
8-
version: 3.5.1
8+
version: 3.5.2
99
appVersion: "3.0.0"
1010

1111
dependencies:

charts/logan/templates/discovery-cronjob.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,18 @@ spec:
7171
{{- end }}
7272
{{- end }}
7373
{{- /* optional discovery job configuration */}}
74-
{{- if and .Values.ociLAClusterEntityID $resourceNamePrefix }}
74+
{{- if .Values.ociLAClusterEntityID }}
7575
- --oci_la_cluster_entity_id
7676
- {{ .Values.ociLAClusterEntityID }}
77+
{{- end }}
78+
{{- if $resourceNamePrefix }}
7779
- --kubernetes_resourcename_prefix
7880
- {{ $resourceNamePrefix }}
7981
{{- end }}
82+
{{- if .Values.ociDomain }}
83+
- --oci_domain
84+
- {{ .Values.ociDomain }}
85+
{{- end }}
8086
{{- if .Values.k8sDiscovery.objects.discoveryMode }}
8187
- --discovery
8288
- {{ .Values.k8sDiscovery.objects.discoveryMode }}

charts/logan/templates/ekscp-logs-configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ data:
290290
config_file_location {{ $.Values.oci.path }}/{{ $.Values.oci.file }}
291291
profile_name "{{ $.Values.fluentd.ociLoggingAnalyticsOutputPlugin.profile_name }}"
292292
{{- end }}
293+
{{- if $.Values.ociDomain }}
294+
oci_domain "{{ $.Values.ociDomain }}"
295+
{{- end }}
293296
plugin_log_location "{{ $.Values.fluentd.baseDir }}"
294297
plugin_log_level "{{ $.Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_level }}"
295298
plugin_log_file_size "{{ $.Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_file_size }}"

charts/logan/templates/logs-configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ data:
609609
config_file_location {{ $.Values.oci.path }}/{{ $.Values.oci.file }}
610610
profile_name "{{ $.Values.fluentd.ociLoggingAnalyticsOutputPlugin.profile_name }}"
611611
{{- end }}
612+
{{- if $.Values.ociDomain }}
613+
oci_domain "{{ $.Values.ociDomain }}"
614+
{{- end }}
612615
plugin_log_location "{{ $.Values.fluentd.baseDir }}"
613616
plugin_log_level "{{ $.Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_level }}"
614617
plugin_log_file_size "{{ $.Values.fluentd.ociLoggingAnalyticsOutputPlugin.plugin_log_file_size }}"

charts/logan/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ runtime: cri
3535
# -- Allowed values: InstancePrincipal, config
3636
authtype: InstancePrincipal
3737

38+
# This parameter is required only for realms where the OCI Ruby SDK is not supported.
39+
# Format: <oci-region>.oci.<oci_domain>
40+
# Example: us-ashburn-1.oci.oraclecloud.com
41+
ociDomain:
42+
3843
# -- Kubernetes Namespace for deploying monitoring resources deployed by this chart.
3944
namespace: "{{ .Values.global.namespace }}"
4045

@@ -48,7 +53,7 @@ image:
4853
# Image pull secrets for. Secret must be in the namespace defined by namespace
4954
imagePullSecrets:
5055
# -- Replace this value with actual docker image url
51-
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.5.1
56+
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.5.2
5257
# -- Image pull policy
5358
imagePullPolicy: Always
5459

charts/oci-onm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies:
3232
repository: "file://../common"
3333
condition: oci-onm-common.enabled
3434
- name: oci-onm-logan
35-
version: "3.5.1"
35+
version: "3.5.2"
3636
repository: "file://../logan"
3737
condition: oci-onm-logan.enabled
3838
- name: oci-onm-mgmt-agent

charts/oci-onm/values.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ oci-onm-logan:
3131
kubernetesClusterID: "{{ .Values.global.kubernetesClusterID }}"
3232
kubernetesClusterName: "{{ .Values.global.kubernetesClusterName }}"
3333
image:
34-
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.5.1
34+
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.5.2
3535
# Go to OCI Logging Analytics Administration, click Service Details, and note the namespace value.
3636
ociLANamespace:
3737
# OCI Logging Analytics Default Log Group OCID
3838
ociLALogGroupID:
3939
# OCI Logging Analytics Entity OCID representing the target cluster
4040
ociLAClusterEntityID:
41+
# This parameter is required only for realms where the OCI Ruby SDK is not supported.
42+
# Format: <oci-region>.oci.<oci_domain>
43+
# Example: us-ashburn-1.oci.oraclecloud.com
44+
ociDomain:
4145

4246
oci-onm-mgmt-agent:
4347
oci-onm-common:

terraform/modules/helm/helm-inputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ variable "livelab_service_account" {
109109
default = ""
110110
}
111111

112+
####
113+
## OCI Client Config
114+
####
115+
116+
# OCI domain
117+
variable "oci_domain" {
118+
type = string
119+
default = null
120+
}
121+
112122
####
113123
## Others
114124
####

terraform/modules/helm/helm-outputs.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ locals {
55
cmd_1_helm_repo_add = "helm repo add oci-onm https://oracle-quickstart.github.io/oci-kubernetes-monitoring"
66
cmd_2_helm_repo_update = "helm repo update"
77

8-
cmd_3_helm_install = join(" ", [
8+
cmd_3_layer_0 = join(" ", [
99
"helm install oci-kubernetes-monitoring oci-onm/oci-onm",
1010
"--set global.namespace=${var.kubernetes_namespace}",
1111
"--set global.kubernetesClusterID=${var.kubernetes_cluster_id}",
@@ -16,6 +16,10 @@ locals {
1616
"--set oci-onm-mgmt-agent.deployMetricServer=${var.opt_deploy_metric_server}",
1717
"--set oci-onm-mgmt-agent.mgmtagent.installKeyFileContent=${var.mgmt_agent_install_key_content}"
1818
])
19+
20+
cmd_3_layer_1 = var.oci_domain == null ? local.cmd_3_layer_0 : "${local.cmd_3_layer_0} --set oci-onm-logan.ociDomain=${var.oci_domain}"
21+
22+
cmd_3_helm_install = local.cmd_3_layer_1
1923
}
2024

2125
# Helm release artifacts for local testing and validation.

0 commit comments

Comments
 (0)