Files
truecharts/charts/stable/netdata/values.yaml
Stavros Kois 702a0c3aba chore(ci): Improved lint speed (#8809)
**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

TODO: Switch to scripted checks (To replace ct-list's tasks):
- [x] Helm Lint
- [x] Version Checking
- [x] Run the lint inside the devcontainer (so it have the below tools
available)
- [x] YAML Schema check on Chart.yaml
- [ ] Maintener check on Chart.yaml (Moved to another PR in the future)
- [x] YAML Lint on Chart.yaml
- [x] YAML Lint on values.yaml
- [x] Sort output of lint results (failed on the bottom)
- [x] Combine verify deps in the lint job, since the verification runs
inside the fetch dep (which runs on lint job too)
- [x] Remove one of the 2 "get changed" functions (one based on tags
other on commit)
After that, move linting to single step 


https://github.com/helm/chart-testing/blob/main/pkg/tool/linter.go
https://github.com/helm/chart-testing/blob/main/pkg/tool/account.go

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [x] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [x] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [x] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [x] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
2023-05-23 10:26:41 +02:00

195 lines
4.8 KiB
YAML

image:
repository: tccr.io/truecharts/netdata
tag: 1.38.1@sha256:884fc2c9d237ad3b8df8fca30c6c8a55999da37b3619d3cb61a24253bb2901f1
pullPolicy: IfNotPresent
# -- The service account the pods will use to interact with the Kubernetes API
serviceAccount:
main:
enabled: true
primary: true
configmap:
configs:
enabled: true
data:
netdata-conf: |-
[global]
memory mode = dbengine
dbengine multihost disk space = 4096
page cache size = 64
go-d-conf: |-
modules:
k8s_state: yes
go-d-k8s-state-conf: |-
jobs:
- name: k8s_state
update_every: 1
rbac:
main:
enabled: true
primary: true
rules:
- apiGroups:
- ""
resources:
- "pods"
- "nodes"
- "nodes/metrics"
# - "services" # used by agent service discovery
# - "configmaps" # used by agent service discovery
# - "secrets" # used by agent service discovery
verbs:
- "get"
- "list"
- "watch"
- apiGroups:
- ""
resources:
- "namespaces"
verbs:
- "get"
service:
main:
ports:
main:
port: 19999
targetPort: 19999
persistence:
config:
enabled: true
mountPath: "/etc/netdata"
targetSelectAll: true
lib:
enabled: true
mountPath: "/var/lib/netdata"
cache:
enabled: true
mountPath: "/var/cache/netdata"
passwd:
enabled: true
type: hostPath
hostPath: "/etc/passwd"
mountPath: "/host/etc/passwd"
readOnly: true
group:
enabled: true
type: hostPath
hostPath: "/etc/group"
mountPath: "/host/etc/group"
readOnly: true
proc:
enabled: true
type: hostPath
hostPath: "/proc"
mountPath: "/host/proc"
readOnly: true
dev:
enabled: true
type: hostPath
hostPath: "/dev"
mountPath: "/host/dev"
readOnly: true
sys:
enabled: true
type: hostPath
hostPath: "/sys"
mountPath: "/host/sys"
readOnly: true
os:
enabled: true
type: hostPath
hostPath: "/etc/os-release"
mountPath: "/host/etc/os-release"
readOnly: true
netdata-configs:
enabled: true
mountPath: "/etc/netdata/truecharts-defaults/.netdata.conf"
subPath: "netdata-conf"
type: configmap
objectName: configs
targetSelectAll: true
go-d-configs:
enabled: true
mountPath: "/etc/netdata/truecharts-defaults/.go.d.conf"
subPath: "go-d-conf"
type: configmap
objectName: configs
targetSelectAll: true
go-d-k8s-state-configs:
enabled: true
mountPath: "/etc/netdata/truecharts-defaults/go.d/.k8s_state.conf"
subPath: "go-d-k8s-state-conf"
type: configmap
objectName: configs
targetSelectAll: true
portal:
open:
enabled: true
securityContext:
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
capabilities:
add:
- SYS_PTRACE
runAsUser: 0
runAsGroup: 0
fsGroup: 201
workload:
main:
podSpec:
initContainers:
create-config:
enabled: true
imageSelector: image
type: init
command:
- /bin/bash
- -c
args:
- |-
copy_config () {
local confSource="$1"
local confTarget="$2"
local dirTarget
dirTarget="$(dirname "${confTarget}")"
if [ ! -f "$confTarget" ]; then
if [ ! -d "${dirTarget}" ]; then
mkdir -p "$dirTarget"
fi;
cp "$confSource" "$confTarget"
echo "Content of $(basename "${confTarget}")"
cat "$confTarget"
else
echo "Config $confTarget exists, skipping..."
fi;
}
export -f copy_config
copy_config "/etc/netdata/truecharts-defaults/.netdata.conf" "/etc/netdata/netdata.conf"
copy_config "/etc/netdata/truecharts-defaults/.go.d.conf" "/etc/netdata/go.d.conf"
copy_config "/etc/netdata/truecharts-defaults/go.d/.k8s_state.conf" "/etc/netdata/go.d/k8s_state.conf"
containers:
main:
probes:
liveness:
path: "/api/v1/info"
readiness:
path: "/api/v1/info"
startup:
path: "/api/v1/info"
env:
MY_NODE_NAME:
fieldRef:
fieldPath: spec.nodeName
MY_POD_NAMESPACE:
fieldRef:
fieldPath: metadata.namespace
MY_POD_NAME:
fieldRef:
fieldPath: metadata.name
NETDATA_CLAIM_URL: ""
NETDATA_CLAIM_TOKEN: ""
NETDATA_CLAIM_ROOMS: ""