Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mondoo-operator-1.14.1 #823

Merged
merged 1 commit into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.28.1
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.29.0
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v4-alpha

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: 1.14.0
version: 1.14.1
# 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: "1.14.0"
appVersion: "1.14.1"
21 changes: 5 additions & 16 deletions charts/mondoo-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,24 @@ 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:
- operator
- --health-probe-bind-address=:8081
- --metrics-bind-address=:8080
- --leader-elect
- args: {{- toYaml .Values.controllerManager.manager.args | nindent 8 }}
command:
- /mondoo-operator
env:
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ .Values.kubernetesClusterDomain }}
value: {{ quote .Values.kubernetesClusterDomain }}
image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag
| default .Chart.AppVersion }}
imagePullPolicy: IfNotPresent
imagePullPolicy: {{ .Values.controllerManager.manager.imagePullPolicy }}
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -72,13 +66,8 @@ spec:
periodSeconds: 10
resources: {{- toYaml .Values.controllerManager.manager.resources | nindent 10
}}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
securityContext: {{- toYaml .Values.controllerManager.manager.containerSecurityContext
| nindent 10 }}
securityContext:
runAsNonRoot: true
serviceAccountName: {{ include "mondoo-operator.fullname" . }}-controller-manager
Expand Down
18 changes: 2 additions & 16 deletions charts/mondoo-operator/templates/manager-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,5 @@ metadata:
labels:
{{- include "mondoo-operator.labels" . | nindent 4 }}
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
health:
healthProbeBindAddress: {{ .Values.managerConfig.controllerManagerConfigYaml.health.healthProbeBindAddress
| quote }}
kind: ControllerManagerConfig
leaderElection:
leaderElect: {{ .Values.managerConfig.controllerManagerConfigYaml.leaderElection.leaderElect
}}
resourceName: {{ .Values.managerConfig.controllerManagerConfigYaml.leaderElection.resourceName
| quote }}
metrics:
bindAddress: {{ .Values.managerConfig.controllerManagerConfigYaml.metrics.bindAddress
| quote }}
webhook:
port: {{ .Values.managerConfig.controllerManagerConfigYaml.webhook.port }}
controller_manager_config.yaml: {{ .Values.managerConfig.controllerManagerConfigYaml
| toYaml | indent 1 }}
1 change: 0 additions & 1 deletion charts/mondoo-operator/templates/metrics-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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 -}}
25 changes: 20 additions & 5 deletions charts/mondoo-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
controllerManager:
manager:
args:
- operator
- --health-probe-bind-address=:8081
- --metrics-bind-address=:8080
- --leader-elect
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
image:
repository: ghcr.io/mondoohq/mondoo-operator
tag: v1.14.0
tag: v1.14.1
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 200m
Expand All @@ -13,16 +26,18 @@ controllerManager:
replicas: 1
kubernetesClusterDomain: cluster.local
managerConfig:
controllerManagerConfigYaml:
controllerManagerConfigYaml: |-
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
leaderElection:
leaderElect: true
resourceName: 60679458.mondoo.com
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 60679458.mondoo.com
metricsService:
ports:
- name: metrics
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ kind: Kustomization
images:
- name: controller
newName: ghcr.io/mondoohq/mondoo-operator
newTag: v1.14.0
newTag: v1.14.1
2 changes: 1 addition & 1 deletion config/webhook/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ resources:
images:
- name: controller
newName: ghcr.io/mondoohq/mondoo-operator
newTag: v1.14.0
newTag: v1.14.1