Skip to content

Commit e6fd5cd

Browse files
feat: module has been updated to use image digest SHA instead of an image tag as per best practises. That means the log_analysis_agent_version and cloud_monitoring_agent_version input variables have been removed. It means its not longer supported to pass the version to the module. Instead every module release will be locked into a specific version, and there will be regular module releases with updated versions in them. (#275)
1 parent 923b656 commit e6fd5cd

20 files changed

+48
-58
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ No modules.
136136
| <a name="input_cloud_monitoring_agent_namespace"></a> [cloud\_monitoring\_agent\_namespace](#input\_cloud\_monitoring\_agent\_namespace) | Namespace where to deploy the Cloud Monitoring agent. Default value is 'ibm-observe' | `string` | `"ibm-observe"` | no |
137137
| <a name="input_cloud_monitoring_agent_tags"></a> [cloud\_monitoring\_agent\_tags](#input\_cloud\_monitoring\_agent\_tags) | List of tags to associate to all matrics that the agent collects. NOTE: Use the 'cloud\_monitoring\_add\_cluster\_name' variable to add the cluster name as a tag. | `list(string)` | `[]` | no |
138138
| <a name="input_cloud_monitoring_agent_tolerations"></a> [cloud\_monitoring\_agent\_tolerations](#input\_cloud\_monitoring\_agent\_tolerations) | List of tolerations to apply to Cloud Monitoring agent. | <pre>list(object({<br> key = optional(string)<br> operator = optional(string)<br> value = optional(string)<br> effect = optional(string)<br> tolerationSeconds = optional(number)<br> }))</pre> | <pre>[<br> {<br> "operator": "Exists"<br> },<br> {<br> "effect": "NoSchedule",<br> "key": "node-role.kubernetes.io/master",<br> "operator": "Exists"<br> }<br>]</pre> | no |
139-
| <a name="input_cloud_monitoring_agent_version"></a> [cloud\_monitoring\_agent\_version](#input\_cloud\_monitoring\_agent\_version) | IBM Cloud Monitoring Agent Version. To lookup version run: `ibmcloud cr images --restrict ext/sysdig/agent`. If null, the default value is used. | `string` | `"12.19.0"` | no |
140139
| <a name="input_cloud_monitoring_enabled"></a> [cloud\_monitoring\_enabled](#input\_cloud\_monitoring\_enabled) | Deploy IBM Cloud Monitoring agent | `bool` | `true` | no |
141140
| <a name="input_cloud_monitoring_endpoint_type"></a> [cloud\_monitoring\_endpoint\_type](#input\_cloud\_monitoring\_endpoint\_type) | Specify the IBM Cloud Monitoring instance endpoint type (public or private) to use. Used to construct the ingestion endpoint. | `string` | `"private"` | no |
142141
| <a name="input_cloud_monitoring_instance_region"></a> [cloud\_monitoring\_instance\_region](#input\_cloud\_monitoring\_instance\_region) | The IBM Cloud Monitoring instance region. Used to construct the ingestion endpoint. | `string` | `null` | no |
@@ -152,7 +151,6 @@ No modules.
152151
| <a name="input_log_analysis_agent_namespace"></a> [log\_analysis\_agent\_namespace](#input\_log\_analysis\_agent\_namespace) | Namespace where to deploy the Log Analysis agent. Default value is 'ibm-observe' | `string` | `"ibm-observe"` | no |
153152
| <a name="input_log_analysis_agent_tags"></a> [log\_analysis\_agent\_tags](#input\_log\_analysis\_agent\_tags) | List of tags to associate to all log records that the agent collects so that you can identify the agent's data quicker in the logging UI. NOTE: Use the 'log\_analysis\_add\_cluster\_name' variable to add the cluster name as a tag. | `list(string)` | `[]` | no |
154153
| <a name="input_log_analysis_agent_tolerations"></a> [log\_analysis\_agent\_tolerations](#input\_log\_analysis\_agent\_tolerations) | List of tolerations to apply to Log Analysis agent. | <pre>list(object({<br> key = optional(string)<br> operator = optional(string)<br> value = optional(string)<br> effect = optional(string)<br> tolerationSeconds = optional(number)<br> }))</pre> | <pre>[<br> {<br> "operator": "Exists"<br> }<br>]</pre> | no |
155-
| <a name="input_log_analysis_agent_version"></a> [log\_analysis\_agent\_version](#input\_log\_analysis\_agent\_version) | Version of the agent to deploy. To lookup version run: `ibmcloud cr images --restrict ext/logdna-agent`. If null, the default value is used. | `string` | `"3.9.1-20231225.fb0af936e8df898f"` | no |
156154
| <a name="input_log_analysis_enabled"></a> [log\_analysis\_enabled](#input\_log\_analysis\_enabled) | Deploy IBM Cloud Logging agent | `bool` | `true` | no |
157155
| <a name="input_log_analysis_endpoint_type"></a> [log\_analysis\_endpoint\_type](#input\_log\_analysis\_endpoint\_type) | Specify the IBM Log Analysis instance endpoint type (public or private) to use. Used to construct the ingestion endpoint. | `string` | `"private"` | no |
158156
| <a name="input_log_analysis_ingestion_key"></a> [log\_analysis\_ingestion\_key](#input\_log\_analysis\_ingestion\_key) | Ingestion key for the IBM Cloud Logging agent to communicate with the instance | `string` | `null` | no |

chart/logdna-agent/templates/clusterrole.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ metadata:
55
labels:
66
app.kubernetes.io/name: {{ .Values.metadata.name }}
77
app.kubernetes.io/instance: {{ .Values.metadata.name }}
8-
app.kubernetes.io/version: {{ .Values.image.version }}
8+
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
9+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
910
rules:
1011
- apiGroups: [""]
1112
resources: ["events"]

chart/logdna-agent/templates/clusterrolebinding.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ metadata:
55
labels:
66
app.kubernetes.io/name: "{{ .Values.metadata.name }}"
77
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
8-
app.kubernetes.io/version: {{ .Values.image.version }}
8+
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
9+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
910
roleRef:
1011
apiGroup: rbac.authorization.k8s.io
1112
kind: ClusterRole

chart/logdna-agent/templates/daemonset.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ metadata:
66
labels:
77
app.kubernetes.io/name: "{{ .Values.metadata.name }}"
88
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
9-
app.kubernetes.io/version: {{ .Values.image.version }}
9+
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
10+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
1011
annotations:
1112
{{- range .Values.checkov_skips }}
1213
{{- . | toYaml | nindent 4 -}}
@@ -25,7 +26,7 @@ spec:
2526
app: "{{ .Values.metadata.name }}"
2627
app.kubernetes.io/name: "{{ .Values.metadata.name }}"
2728
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
28-
app.kubernetes.io/version: {{ .Values.image.version }}
29+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
2930
spec:
3031
serviceAccountName: "{{ .Values.metadata.name }}"
3132
priorityClassName: "{{ .Values.metadata.name }}-ds-priority"

chart/logdna-agent/templates/role.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ metadata:
66
labels:
77
app.kubernetes.io/name: "{{ .Values.metadata.name }}"
88
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
9-
app.kubernetes.io/version: {{ .Values.image.version }}
9+
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
10+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
1011
annotations:
1112
{{- range .Values.checkov_skips }}
1213
{{- . | toYaml | nindent 4 -}}

chart/logdna-agent/templates/rolebinding.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ metadata:
66
labels:
77
app.kubernetes.io/name: "{{ .Values.metadata.name }}"
88
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
9-
app.kubernetes.io/version: {{ .Values.image.version }}
9+
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
10+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
1011
annotations:
1112
{{- range .Values.checkov_skips }}
1213
{{- . | toYaml | nindent 4 -}}

chart/logdna-agent/templates/scc.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ metadata:
1010
labels:
1111
app.kubernetes.io/name: "{{ .Values.metadata.name }}"
1212
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
13-
app.kubernetes.io/version: {{ .Values.image.version }}
13+
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
14+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
1415
priority: 9
1516
allowHostDirVolumePlugin: true
1617
allowHostIPC: false

chart/logdna-agent/templates/secret.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ metadata:
88
labels:
99
app.kubernetes.io/name: {{ .Values.metadata.name }}
1010
app.kubernetes.io/instance: {{ .Values.metadata.name }}
11-
app.kubernetes.io/version: {{ .Values.image.version }}
11+
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
12+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
1213
annotations:
1314
{{- range .Values.checkov_skips }}
1415
{{- . | toYaml | nindent 4 -}}

chart/logdna-agent/templates/serviceaccount.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ metadata:
66
labels:
77
app.kubernetes.io/name: "{{ .Values.metadata.name }}"
88
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
9-
app.kubernetes.io/version: {{ .Values.image.version }}
9+
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
10+
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
1011
annotations:
1112
{{- range .Values.checkov_skips }}
1213
{{- . | toYaml | nindent 4 -}}

chart/logdna-agent/values.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ metadata:
33
name: "logdna-agent"
44
image:
55
repository: "ext/logdna-agent"
6-
# renovate: datasource=docker depName=icr.io/ext/logdna-agent versioning=regex:^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)-(?<build>\d{8}).\w+?$
7-
version: "3.9.1-20231225.fb0af936e8df898f"
86
registry: icr.io
97
env:
108
host: "logs.private.us-south.logging.cloud.ibm.com"
@@ -17,7 +15,6 @@ agent:
1715
checkov_skips:
1816
- checkov.io/skip1: CKV_K8S_21 # "The default namespace should not be used" - false positive - the helm namespace is always used, but not picked up by linter
1917
- checkov.io/skip2: CKV_K8S_11 # "CPU limits should be set" - ignoring as chart not owned by us
20-
- checkov.io/skip3: CKV_K8S_43 # Valid issue, tracked at https://github.ibm.com/GoldenEye/issues/issues/6704
2118
- checkov.io/skip4: CKV_K8S_38 # "Ensure that Service Account Tokens are only mounted where necessary" - ignoring as chart not owned by us
2219
- checkov.io/skip5: CKV_K8S_29 # "Apply security context to your pods and containers" - ignoring as chart not owned by us
2320
- checkov.io/skip6: CKV_K8S_25 # "Minimize the admission of containers with added capability" - ignoring as chart not owned by us

0 commit comments

Comments
 (0)