Skip to content

Commit

Permalink
Add chart-testing to ci workflow
Browse files Browse the repository at this point in the history
This adds some example values, especially the helm values affecting
blocks, like `debug` often create problems.
  • Loading branch information
manno committed Jul 18, 2024
1 parent 6f39f02 commit fbb309f
Show file tree
Hide file tree
Showing 9 changed files with 275 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

-
name: Set up chart-testing
uses: helm/[email protected]
with:
version: v3.3.0
-
name: Run chart-testing (lint)
run: ct lint --all --validate-maintainers=false charts/
-
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 2 additions & 0 deletions charts/fleet-agent/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
apiServerURL: "https://localhost"
apiServerCA: "abc"
4 changes: 2 additions & 2 deletions charts/fleet-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ agentTLSMode: "system-store"
token: ""

# Labels to add to the cluster upon registration only. They are not added after the fact.
#labels:
# foo: bar
# labels:
# foo: bar

# The client ID of the cluster to associate with
clientID: ""
Expand Down
64 changes: 64 additions & 0 deletions charts/fleet/ci/debug-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
bootstrap:
enabled: true

global:
cattle:
systemDefaultRegistry: "ghcr.io"

nodeSelector:
kubernetes.io/os: os2

tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
operator: "Equal"
value: "true"
effect: NoSchedule

priorityClassName: "prio1"

gitops:
enabled: true

metrics:
enabled: true

debug: true
debugLevel: 4
propagateDebugSettingsToAgents: true

cpuPprof:
period: "60s"
volumeConfiguration:
hostPath:
path: /tmp/pprof
type: DirectoryOrCreate

migrations:
clusterRegistrationCleanup: true

leaderElection:
leaseDuration: 30s
retryPeriod: 10s
renewDeadline: 25s

controller:
reconciler:
workers:
gitrepo: "1"
bundle: "1"
bundledeployment: "1"

extraEnv:
- name: EXPERIMENTAL_OCI_STORAGE
value: "true"

shards:
- id: shard0
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-0
- id: shard1
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-1
- id: shard2
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-2
Empty file.
64 changes: 64 additions & 0 deletions charts/fleet/ci/nobootstrap-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
bootstrap:
enabled: false

global:
cattle:
systemDefaultRegistry: "ghcr.io"

nodeSelector:
kubernetes.io/os: mac

tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
operator: "Equal"
value: "true"
effect: NoSchedule

priorityClassName: "prio1"

gitops:
enabled: true

metrics:
enabled: true

debug: false
debugLevel: 4
propagateDebugSettingsToAgents: true

cpuPprof:
period: "60s"
volumeConfiguration:
hostPath:
path: /tmp/pprof
type: DirectoryOrCreate

migrations:
clusterRegistrationCleanup: true

leaderElection:
leaseDuration: 30s
retryPeriod: 10s
renewDeadline: 25s

controller:
reconciler:
workers:
gitrepo: "1"
bundle: "1"
bundledeployment: "1"

extraEnv:
- name: EXPERIMENTAL_OCI_STORAGE
value: "true"

shards:
- id: shard0
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-0
- id: shard1
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-1
- id: shard2
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-2
64 changes: 64 additions & 0 deletions charts/fleet/ci/nodebug-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
bootstrap:
enabled: true

global:
cattle:
systemDefaultRegistry: "ghcr.io"

nodeSelector:
kubernetes.io/os: plan9

tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
operator: "Equal"
value: "true"
effect: NoSchedule

priorityClassName: "prio1"

gitops:
enabled: true

metrics:
enabled: true

debug: false
debugLevel: 4
propagateDebugSettingsToAgents: true

cpuPprof:
period: "60s"
volumeConfiguration:
hostPath:
path: /tmp/pprof
type: DirectoryOrCreate

migrations:
clusterRegistrationCleanup: true

leaderElection:
leaseDuration: 30s
retryPeriod: 10s
renewDeadline: 25s

controller:
reconciler:
workers:
gitrepo: "1"
bundle: "1"
bundledeployment: "1"

extraEnv:
- name: EXPERIMENTAL_OCI_STORAGE
value: "true"

shards:
- id: shard0
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-0
- id: shard1
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-1
- id: shard2
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-2
64 changes: 64 additions & 0 deletions charts/fleet/ci/nogitops-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
bootstrap:
enabled: true

global:
cattle:
systemDefaultRegistry: "ghcr.io"

nodeSelector:
kubernetes.io/os: winxp

tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
operator: "Equal"
value: "true"
effect: NoSchedule

priorityClassName: "prio1"

gitops:
enabled: false

metrics:
enabled: true

debug: false
debugLevel: 4
propagateDebugSettingsToAgents: true

cpuPprof:
period: "60s"
volumeConfiguration:
hostPath:
path: /tmp/pprof
type: DirectoryOrCreate

migrations:
clusterRegistrationCleanup: true

leaderElection:
leaseDuration: 30s
retryPeriod: 10s
renewDeadline: 25s

controller:
reconciler:
workers:
gitrepo: "1"
bundle: "1"
bundledeployment: "1"

extraEnv:
- name: EXPERIMENTAL_OCI_STORAGE
value: "true"

shards:
- id: shard0
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-0
- id: shard1
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-1
- id: shard2
nodeSelector:
kubernetes.io/hostname: k3d-upstream-server-2
12 changes: 6 additions & 6 deletions charts/fleet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ propagateDebugSettingsToAgents: true

## Optional CPU pprof configuration. Profiles are collected continuously and saved every period
## Any valid volume configuration can be provided, the example below uses hostPath
#cpuPprof:
# period: "60s"
# volumeConfiguration:
# hostPath:
# path: /tmp/pprof
# type: DirectoryOrCreate
# cpuPprof:
# period: "60s"
# volumeConfiguration:
# hostPath:
# path: /tmp/pprof
# type: DirectoryOrCreate

migrations:
clusterRegistrationCleanup: true
Expand Down

0 comments on commit fbb309f

Please sign in to comment.