Skip to content

Commit

Permalink
0.0.11 (#167)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hartmann <[email protected]>
  • Loading branch information
chris-rock authored Mar 12, 2022
1 parent f102581 commit 4516627
Show file tree
Hide file tree
Showing 10 changed files with 251 additions and 117 deletions.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The following steps need to be followed to release helm chart.

1. Update `Chart.yaml` in the `charts/mondoo-operator` repository with the latest appVersion.
2. Update `Chart.yaml` in the `charts/mondoo-operator` repository with the corresponding version.
3. Run `CHART_NAME=charts/mondoo-operator make helm`

### Helm Chart Release Workflow

Expand Down
2 changes: 1 addition & 1 deletion bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=mondoo-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.16.0+git
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.18.0+git
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3

Expand Down
4 changes: 2 additions & 2 deletions charts/mondoo-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.3
version: 0.1.4
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.10"
appVersion: "0.0.11"
8 changes: 7 additions & 1 deletion charts/mondoo-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ metadata:
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "mondoo-operator.fullname" . }}-nodes
labels:
{{- include "mondoo-operator.labels" . | nindent 4 }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "mondoo-operator.fullname" . }}-workload
labels:
Expand Down Expand Up @@ -53,7 +60,6 @@ spec:
- /manager
image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag
| default .Chart.AppVersion }}
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthz
Expand Down
37 changes: 37 additions & 0 deletions charts/mondoo-operator/templates/manager-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ rules:
- get
- list
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- validatingwebhookconfigurations
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
Expand All @@ -37,6 +49,19 @@ rules:
- patch
- update
- watch
- apiGroups:
- cert-manager.io
resources:
- certificates
- issuers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -69,6 +94,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- k8s.mondoo.com
resources:
Expand Down
90 changes: 89 additions & 1 deletion charts/mondoo-operator/templates/mondooauditconfig-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,105 @@ spec:
properties:
enable:
type: boolean
image:
properties:
name:
type: string
tag:
type: string
type: object
inventory:
type: string
resources:
description: ResourceRequirements describes the compute resource
requirements.
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, otherwise
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
type: object
webhooks:
properties:
certificateConfig:
description: CertificateConfig allows defining which certificate
system to use. Leaving it as the empty string will mean the user
will be responsible for creating the Secret with the TLS data,
and inserting the CA data into the ValidatingWebhookConfigurations
as well.
properties:
injectionStyle:
enum:
- ""
- cert-manager
- openshift
type: string
type: object
enable:
type: boolean
required:
- enable
type: object
workloads:
properties:
enable:
type: boolean
image:
properties:
name:
type: string
tag:
type: string
type: object
inventory:
type: string
resources:
description: ResourceRequirements describes the compute resource
requirements.
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, otherwise
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
serviceAccount:
description: Replicas int32 `json:"replicas,omitempty"`
type: string
type: object
required:
Expand Down
2 changes: 1 addition & 1 deletion charts/mondoo-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ controllerManager:
manager:
image:
repository: ghcr.io/mondoohq/mondoo-operator
tag: v0.0.10
tag: v0.0.11
resources:
limits:
cpu: 200m
Expand Down
14 changes: 7 additions & 7 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
resources:
- manager.yaml
- manager.yaml

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- files:
- controller_manager_config.yaml
name: manager-config
- files:
- controller_manager_config.yaml
name: manager-config
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: ghcr.io/mondoohq/mondoo-operator
newTag: v0.0.10
- name: controller
newName: ghcr.io/mondoohq/mondoo-operator
newTag: v0.0.11
Loading

0 comments on commit 4516627

Please sign in to comment.