diff --git a/charts/logan/templates/discovery-cronjob.yaml b/charts/logan/templates/discovery-cronjob.yaml index ccd595f..acf7fea 100644 --- a/charts/logan/templates/discovery-cronjob.yaml +++ b/charts/logan/templates/discovery-cronjob.yaml @@ -70,6 +70,21 @@ spec: {{- required "{{ .Values.oci.path -}}/{{ .Values.oci.file }} is required" .Values.oci.path }} {{- end }} {{- end }} + {{- /* rms stack parameters */}} + {{- if .Values.k8sDiscovery.infra.tenancy_ocid }} + - --tenancy_ocid + - {{ .Values.k8sDiscovery.infra.tenancy_ocid }} + {{- end }} + {{- if .Values.k8sDiscovery.infra.rms_template_base64_encoded }} + - --rms_template_base64_encoded + - {{ .Values.k8sDiscovery.infra.rms_template_base64_encoded }} + {{- end }} + {{- if eq .Values.k8sDiscovery.infra.enable_service_log true }} + - --enable_service_log + {{- end }} + {{- if eq .Values.k8sDiscovery.infra.probe_all_compartments true }} + - --probe_all_compartments + {{- end }} {{- /* optional discovery job configuration */}} {{- if and .Values.ociLAClusterEntityID $resourceNamePrefix }} - --oci_la_cluster_entity_id diff --git a/charts/logan/values.yaml b/charts/logan/values.yaml index bda49f7..34dc90e 100644 --- a/charts/logan/values.yaml +++ b/charts/logan/values.yaml @@ -716,6 +716,15 @@ k8sDiscovery: collect_warning_events_only: false # backoffLimit: Specify the number of retries before considering a Job as failed backoffLimit: 2 + # infra: defines inputs for k8s infrastructure discovery and rms stack (service log creation and collection) + infra: + tenancy_ocid: + # rms_template_base64_encoded: Base64 encoded zip file of rms template + rms_template_base64_encoded: + # enable_service_log: Flag to enable or disable the creation of a stack for service log collection + enable_service_log: false + # probe_all_compartments: Flag that determines whether to iterate through all compartments or only the cluster compartment while discovering node pools + probe_all_compartments: true # kubernetes: kubernetes cluster related inputs for kubernetes disocvery job kubeClientOptions: # kubernetes_url: Kubernetes API server URL.