From f5d1a107fd8d762524ed4daf1c23f38e3f0e71e1 Mon Sep 17 00:00:00 2001 From: Juan Jose Jaramillo Date: Fri, 10 May 2024 10:53:40 -0700 Subject: [PATCH] feat: Initial Helm chart --- charts/k8s-agents-operator/Chart.yaml | 14 ++++++- charts/k8s-agents-operator/README.md.gotmpl | 42 +++++++++++++++++++++ charts/k8s-agents-operator/values.yaml | 4 +- 3 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 charts/k8s-agents-operator/README.md.gotmpl diff --git a/charts/k8s-agents-operator/Chart.yaml b/charts/k8s-agents-operator/Chart.yaml index b77a14b9..9c52be15 100644 --- a/charts/k8s-agents-operator/Chart.yaml +++ b/charts/k8s-agents-operator/Chart.yaml @@ -2,5 +2,15 @@ apiVersion: v2 name: k8s-agents-operator description: A Helm chart for the Kubernetes Agents Operator type: application -version: '0.1.0' -appVersion: '0.1.0' +version: '0.0.0' +appVersion: '0.0.0' +home: https://github.com/newrelic/k8s-agents-operator/blob/main/charts/k8s-agents-operator/README.md +sources: + - https://github.com/newrelic/k8s-agents-operator +maintainers: + - name: juanjjaramillo + url: https://github.com/juanjjaramillo + - name: csongnr + url: https://github.com/csongnr + - name: dbudziwojskiNR + url: https://github.com/dbudziwojskiNR diff --git a/charts/k8s-agents-operator/README.md.gotmpl b/charts/k8s-agents-operator/README.md.gotmpl new file mode 100644 index 00000000..ccb2ce1d --- /dev/null +++ b/charts/k8s-agents-operator/README.md.gotmpl @@ -0,0 +1,42 @@ +{{ template "chart.header" . }} + +{{ template "chart.deprecationWarning" . }} + +{{ template "chart.badgesSection" . }} + +{{ template "chart.description" . }} + +{{ template "chart.homepageLine" . }} + +## Prerequisites + +[Helm](https://helm.sh) must be installed to use the charts. Please refer to Helm's [documentation](https://helm.sh/docs) to get started. + +Add the repository: +```shell +helm repo add k8s-agents-operator https://newrelic.github.io/k8s-agents-operator +``` + +If you had already added this repo earlier, retrieve the latest versions of the packages: +```shell +helm repo update +``` + +## Available Chart Releases + +To see the available charts: +```shell +helm search repo k8s-agents-operator +``` + +If you want to see a list of all available charts and releases, check [index.yaml](https://newrelic.github.io/k8s-agents-operator/index.yaml). + +{{ template "chart.sourcesSection" . }} + +{{ template "chart.requirementsSection" . }} + +{{ template "chart.valuesSection" . }} + +{{ template "chart.maintainersSection" . }} + +{{ template "helm-docs.versionFooter" . }} diff --git a/charts/k8s-agents-operator/values.yaml b/charts/k8s-agents-operator/values.yaml index bef169f5..5b717de5 100644 --- a/charts/k8s-agents-operator/values.yaml +++ b/charts/k8s-agents-operator/values.yaml @@ -26,8 +26,8 @@ controllerManager: memory: 64Mi serviceAccount: create: true + # -- Source: https://docs.openshift.com/container-platform/4.10/operators/operator_sdk/osdk-leader-election.html # -- Enable leader election mechanism for protecting against split brain if multiple operator pods/replicas are started - # -- See more at https://docs.openshift.com/container-platform/4.10/operators/operator_sdk/osdk-leader-election.html leaderElection: enabled: true @@ -48,8 +48,8 @@ webhookService: targetPort: 9443 type: ClusterIP +# -- Source: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ # -- SecurityContext holds pod-level security attributes and common container settings -# -- ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ securityContext: runAsGroup: 65532 runAsNonRoot: true