-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally configure nodes to use NTP instead of systemd-timesyncd (#142
) * Modify makefile's `generate` Target to allow for crd code-gen Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * Introduce os-coreos config API type Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * Use new os-coreos config API in controller and add ntp config into node reconcile step Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * Modify os-coreos chart to allow to mount the new config API custom resource Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * modify os-coreos test Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * make tidy Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * fix ntpd service name Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * fix chart Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * add validation for ExtensionConfig Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * add simple test-case for enabled ntpd.service Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * improve description in config API Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * remove left-over println Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * fix: add config API validation to controller start-up Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * move Validate function and make run not part of options struct Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * use filepath.Separator instead of hardcoded rune Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * update type for gardener 1.108 Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * PR review: use codegen.sh from gardener Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * PR review: refactor helm-chart Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * PR review: modify generate target; build docs Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * PR review: rename healthOptions to heartbeatOptions; move Validate() function to bottom of file for clarity Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * PR review: create Complete() func for options; move heartbatCtrlOptions into Options Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * PR review: refactor API; add validation and tests Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * PR review: refactor actuator.go reflect changes in API; improve-tests Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * regen controller-registration Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * update DOCS Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * PR review: remove duplicate VGOPATH target in Makefile Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * use coreos.name instead of coreos.fullname for chart Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> * add checksum to secret so the Deployment automatically restarts on config change Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud> --------- Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
- Loading branch information
Showing
31 changed files
with
924 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
charts/gardener-extension-os-coreos/templates/poddisruptionbudget.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: gardener-extension-os-coreos | ||
name: {{ include "coreos.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: gardener-extension-os-coreos | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- include "coreos.labels" . | nindent 4 }} | ||
spec: | ||
maxUnavailable: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: gardener-extension-os-coreos | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- include "coreos.selectorLabels" . | nindent 6}} | ||
{{- if semverCompare ">= 1.26-0" .Capabilities.KubeVersion.Version }} | ||
unhealthyPodEvictionPolicy: AlwaysAllow | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
charts/gardener-extension-os-coreos/templates/secret-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "coreos.name" . }}-config | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "coreos.labels" . | nindent 4 }} | ||
type: Opaque | ||
stringData: | ||
config.yaml: | | ||
{{- .Values.config | toYaml | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
charts/gardener-extension-os-coreos/templates/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: gardener-extension-os-coreos | ||
name: {{ include "coreos.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: gardener-extension-os-coreos | ||
helm.sh/chart: gardener-extension-os-coreos | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- include "coreos.labels" . | nindent 4 }} | ||
automountServiceAccountToken: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ image: | |
|
||
resources: {} | ||
|
||
config: {} | ||
|
||
vpa: | ||
enabled: true | ||
resourcePolicy: | ||
|
Oops, something went wrong.