Skip to content

Commit

Permalink
Merge pull request #4 from matt-mazzucato/fwport-from-23.5
Browse files Browse the repository at this point in the history
Forward port changes from 23.5
  • Loading branch information
matt-mazzucato authored Aug 5, 2024
2 parents 371622f + 9166233 commit 4b58267
Show file tree
Hide file tree
Showing 7 changed files with 7,193 additions and 1,802 deletions.
6 changes: 3 additions & 3 deletions charts/astarte-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v2
name: astarte-operator
description: A Helm chart for Kubernetes
description: The Astarte Kubernetes Operator Helm Chart.
type: application

version: 1.0.5
appVersion: 1.0.4
version: "23.5.2"
appVersion: "23.5.2"
kubeVersion: ">= 1.19.0-0"

home: https://github.com/astarte-platform/astarte-kubernetes-operator
Expand Down
36 changes: 36 additions & 0 deletions charts/astarte-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# astarte-operator

[astarte-operator](https://github.com/astarte-platform/astarte-kubernetes-operator) Astarte Kubernetes Operator.

![Version: 23.5.2](https://img.shields.io/badge/Version-23.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 23.5.2](https://img.shields.io/badge/AppVersion-23.5.2-informational?style=flat-square)

This chart bootstraps an Astarte Operator deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.

See the [Astarte Documentation](https://docs.astarte-platform.org/) for more information about the Astarte platform.

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| drf | [email protected] | |

## Source Code

* <https://github.com/astarte-platform/astarte-kubernetes-operator>

## Requirements

Kubernetes: `>= 1.19.0-0`

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"astarte/astarte-kubernetes-operator"` | |
| image.tag | string | `"23.5.2"` | Overrides the image tag whose default is the chart appVersion. |
| installCRDs | bool | `true` | Whether or not to install Astarte CRDs. |
| replicaCount | int | `1` | The number of Astarte Operator replicas in your cluster. |
| resources | object | `{"limits":{"cpu":"100m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}` | Resources to assign to each Astarte Operator instance. |

This document was generated from sources using [helm-docs](https://github.com/norwoodj/helm-docs).
8,862 changes: 7,086 additions & 1,776 deletions charts/astarte-operator/templates/crds.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions charts/astarte-operator/templates/manager.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: controller-manager
name: '{{ .Release.Name }}-controller-manager'
Expand Down
46 changes: 43 additions & 3 deletions charts/astarte-operator/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ rules:
- deployments/finalizers
verbs:
- update
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- get
- list
- watch
- apiGroups:
- batch
resources:
Expand All @@ -153,9 +161,7 @@ rules:
resources:
- configmaps
- endpoints
- events
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
Expand All @@ -182,6 +188,29 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- get
- list
- patch
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- ingress.astarte-platform.org
resources:
Expand Down Expand Up @@ -218,7 +247,7 @@ rules:
- apiGroups:
- networking.k8s.io
resources:
- '*'
- ingresses
verbs:
- create
- delete
Expand All @@ -240,6 +269,16 @@ rules:
- patch
- update
- watch
- apiGroups:
- scheduling.k8s.io
resources:
- priorityclasses
verbs:
- create
- delete
- get
- list
- watch
- apiGroups:
- voyager.appscode.com
resources:
Expand Down Expand Up @@ -332,6 +371,7 @@ spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
36 changes: 18 additions & 18 deletions charts/astarte-operator/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,59 +40,59 @@ metadata:
name: '{{ .Release.Name }}-mutating-webhook-configuration'
webhooks:
- admissionReviewVersions:
- v1beta1
- v1
clientConfig:
service:
name: '{{ .Release.Name }}-webhook-service'
namespace: '{{ .Release.Namespace }}'
path: /mutate-api-astarte-platform-org-v1alpha1-astarte
path: /mutate-api-astarte-platform-org-v1alpha2-astarte
failurePolicy: Fail
name: mastarte.kb.io
rules:
- apiGroups:
- api.astarte-platform.org
apiVersions:
- v1alpha1
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- astartes
sideEffects: None
- admissionReviewVersions:
- v1beta1
- v1
clientConfig:
service:
name: '{{ .Release.Name }}-webhook-service'
namespace: '{{ .Release.Namespace }}'
path: /mutate-api-astarte-platform-org-v1alpha1-astartevoyageringress
path: /mutate-api-astarte-platform-org-v1alpha2-astartevoyageringress
failurePolicy: Fail
name: mastartevoyageringress.kb.io
rules:
- apiGroups:
- api.astarte-platform.org
apiVersions:
- v1alpha1
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- astartevoyageringresses
sideEffects: None
- admissionReviewVersions:
- v1beta1
- v1
clientConfig:
service:
name: '{{ .Release.Name }}-webhook-service'
namespace: '{{ .Release.Namespace }}'
path: /mutate-api-astarte-platform-org-v1alpha1-flow
path: /mutate-api-astarte-platform-org-v1alpha2-flow
failurePolicy: Fail
name: mflow.kb.io
rules:
- apiGroups:
- api.astarte-platform.org
apiVersions:
- v1alpha1
- v1alpha2
operations:
- CREATE
- UPDATE
Expand Down Expand Up @@ -128,59 +128,59 @@ metadata:
name: '{{ .Release.Name }}-validating-webhook-configuration'
webhooks:
- admissionReviewVersions:
- v1beta1
- v1
clientConfig:
service:
name: '{{ .Release.Name }}-webhook-service'
namespace: '{{ .Release.Namespace }}'
path: /validate-api-astarte-platform-org-v1alpha1-astarte
path: /validate-api-astarte-platform-org-v1alpha2-astarte
failurePolicy: Fail
name: vastarte.kb.io
rules:
- apiGroups:
- api.astarte-platform.org
apiVersions:
- v1alpha1
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- astartes
sideEffects: None
- admissionReviewVersions:
- v1beta1
- v1
clientConfig:
service:
name: '{{ .Release.Name }}-webhook-service'
namespace: '{{ .Release.Namespace }}'
path: /validate-api-astarte-platform-org-v1alpha1-astartevoyageringress
path: /validate-api-astarte-platform-org-v1alpha2-astartevoyageringress
failurePolicy: Fail
name: vastartevoyageringress.kb.io
rules:
- apiGroups:
- api.astarte-platform.org
apiVersions:
- v1alpha1
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- astartevoyageringresses
sideEffects: None
- admissionReviewVersions:
- v1beta1
- v1
clientConfig:
service:
name: '{{ .Release.Name }}-webhook-service'
namespace: '{{ .Release.Namespace }}'
path: /validate-api-astarte-platform-org-v1alpha1-flow
path: /validate-api-astarte-platform-org-v1alpha2-flow
failurePolicy: Fail
name: vflow.kb.io
rules:
- apiGroups:
- api.astarte-platform.org
apiVersions:
- v1alpha1
- v1alpha2
operations:
- CREATE
- UPDATE
Expand Down
7 changes: 5 additions & 2 deletions charts/astarte-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# -- The number of Astarte Operator replicas in your cluster.
replicaCount: 1

# -- Whether or not to install Astarte CRDs.
installCRDs: true

image:
repository: astarte/astarte-kubernetes-operator
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "1.0.4"
# -- Overrides the image tag whose default is the chart appVersion.
tag: "23.5.2"

# -- Resources to assign to each Astarte Operator instance.
resources:
limits:
cpu: 100m
Expand Down

0 comments on commit 4b58267

Please sign in to comment.