Skip to content

Commit

Permalink
release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Jun 24, 2024
1 parent 0cb897f commit 19f5571
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 12 deletions.
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=stable-v1
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.34.2
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.35.0
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v4

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 @@ -16,9 +16,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: 11.2.2
version: 11.3.0
# 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: "11.2.2"
appVersion: "11.3.0"
2 changes: 2 additions & 0 deletions charts/mondoo-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ spec:
replicas: {{ .Values.controllerManager.replicas }}
selector:
matchLabels:
app.kubernetes.io/name: mondoo-operator
{{- include "mondoo-operator.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
app.kubernetes.io/name: mondoo-operator
{{- include "mondoo-operator.selectorLabels" . | nindent 8 }}
annotations:
kubectl.kubernetes.io/default-container: manager
Expand Down
84 changes: 84 additions & 0 deletions charts/mondoo-operator/templates/deployment.yaml-z
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "mondoo-operator.fullname" . }}-controller-manager
labels:
{{- include "mondoo-operator.labels" . | nindent 4 }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "mondoo-operator.fullname" . }}-k8s-resources-scanning
labels:
{{- include "mondoo-operator.labels" . | nindent 4 }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "mondoo-operator.fullname" . }}-webhook
labels:
{{- include "mondoo-operator.labels" . | nindent 4 }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "mondoo-operator.fullname" . }}-controller-manager
labels:
{{- include "mondoo-operator.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.controllerManager.replicas }}
selector:
matchLabels:
app.kubernetes.io/name: mondoo-operator
{{- include "mondoo-operator.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
app.kubernetes.io/name: mondoo-operator
{{- include "mondoo-operator.selectorLabels" . | nindent 8 }}
annotations:
kubectl.kubernetes.io/default-container: manager
spec:
containers:
- args: {{- toYaml .Values.controllerManager.manager.args | nindent 8 }}
command:
- /mondoo-operator
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ quote .Values.kubernetesClusterDomain }}
image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag
| default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.controllerManager.manager.imagePullPolicy }}
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
name: manager
ports:
- containerPort: 8080
name: metrics
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
resources: {{- toYaml .Values.controllerManager.manager.resources | nindent 10
}}
securityContext: {{- toYaml .Values.controllerManager.manager.containerSecurityContext
| nindent 10 }}
securityContext:
runAsNonRoot: true
serviceAccountName: {{ include "mondoo-operator.fullname" . }}-controller-manager
terminationGracePeriodSeconds: 10
13 changes: 7 additions & 6 deletions charts/mondoo-operator/templates/manager-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,24 @@ rules:
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
Expand Down
1 change: 1 addition & 0 deletions charts/mondoo-operator/templates/metrics-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
spec:
type: {{ .Values.metricsService.type }}
selector:
app.kubernetes.io/name: mondoo-operator
{{- include "mondoo-operator.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.metricsService.ports | toYaml | nindent 2 -}}
13 changes: 13 additions & 0 deletions charts/mondoo-operator/templates/metrics-service.yaml-z
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "mondoo-operator.fullname" . }}-controller-manager-metrics-service
labels:
{{- include "mondoo-operator.labels" . | nindent 4 }}
spec:
type: {{ .Values.metricsService.type }}
selector:
app.kubernetes.io/name: mondoo-operator
{{- include "mondoo-operator.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.metricsService.ports | toYaml | nindent 2 -}}
2 changes: 1 addition & 1 deletion charts/mondoo-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ controllerManager:
readOnlyRootFilesystem: true
image:
repository: ghcr.io/mondoohq/mondoo-operator
tag: v11.2.2
tag: v11.3.0
imagePullPolicy: IfNotPresent
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ kind: Kustomization
images:
- name: controller
newName: ghcr.io/mondoohq/mondoo-operator
newTag: v11.2.2
newTag: v11.3.0
2 changes: 1 addition & 1 deletion config/webhook/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resources:
images:
- name: controller
newName: ghcr.io/mondoohq/mondoo-operator
newTag: v11.2.2
newTag: v11.3.0

patchesStrategicMerge:
- webhook_patch.yaml

0 comments on commit 19f5571

Please sign in to comment.