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

Infrastructure discovery; Service log creation and collection #96

Open
wants to merge 1 commit 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
15 changes: 15 additions & 0 deletions charts/logan/templates/discovery-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions charts/logan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down