Skip to content

Commit

Permalink
Merge pull request #33 from devops-ia/fix/annotations-pod-deployment
Browse files Browse the repository at this point in the history
fix: pod and deployment annotations
  • Loading branch information
ialejandro authored Aug 26, 2024
2 parents 54a0250 + 0f81045 commit ab310e3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
32 changes: 32 additions & 0 deletions charts/opencti/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,38 @@ env:

testConnection: false

connectors:
- name: alienvault
enabled: true
replicas: 1
image: {}
deploymentAnnotations:
ci: "true"
podAnnotations:
ci: "true"
env:
CONNECTOR_CONFIDENCE_LEVEL: ""
CONNECTOR_ID: ""
CONNECTOR_UPDATE_EXISTING_DATA: ""
CONNECTOR_LOG_LEVEL: ""
ALIENVAULT_BASE_URL: ""
ALIENVAULT_API_KEY: ""
ALIENVAULT_TLP: ""
ALIENVAULT_CREATE_OBSERVABLES: ""
ALIENVAULT_CREATE_INDICATORS: ""
ALIENVAULT_PULSE_START_TIMESTAMP: ""
ALIENVAULT_REPORT_TYPE: ""
ALIENVAULT_REPORT_STATUS: ""
ALIENVAULT_GUESS_MALWARE: ""
ALIENVAULT_GUESS_CVE: ""
ALIENVAULT_EXCLUDED_PULSE_INDICATOR_TYPES: ""
ALIENVAULT_ENABLE_RELATIONSHIPS: ""
ALIENVAULT_ENABLE_ATTACK_PATTERNS_INDICATES: ""
ALIENVAULT_INTERVAL_SEC: ""
CONNECTOR_NAME: "AlienVault"
CONNECTOR_SCOPE: "alienvault"
CONNECTOR_TYPE: EXTERNAL_IMPORT

serviceMonitor:
enabled: false

Expand Down
6 changes: 5 additions & 1 deletion charts/opencti/templates/connector/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $connectorName }}-connector-{{ include "opencti.fullname" $ }}
{{- with .deploymentAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
opencti.connector: {{ $connectorName }}
{{- include "opencti.labels" $ | nindent 4 }}
Expand All @@ -22,7 +26,7 @@ spec:
metadata:
{{- with .podAnnotations }}
annotations:
{{- toYaml $ | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
opencti.connector: {{ $connectorName }}
Expand Down
2 changes: 2 additions & 0 deletions charts/opencti/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ connectors: []
# # Plain vars
# # foo: bar
# # my_env: my_value
# # -- Deployment annotations
# deploymentAnnotations: {}
# # -- Pod annotations
# podAnnotations: {}
# # -- Secrets from variables
Expand Down

0 comments on commit ab310e3

Please sign in to comment.