Skip to content

Commit

Permalink
Re-generate manifests with operator-sdk v1.18
Browse files Browse the repository at this point in the history
A few changes were required to generate the bundle with v1.18.0:

- "control-plane" label on the deployment
- Main container must be named "manager"
  • Loading branch information
adambkaplan committed Oct 30, 2023
1 parent d2be782 commit d1a17c4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 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=shipwright-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.17.0+git
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3

Expand Down
12 changes: 9 additions & 3 deletions bundle/manifests/shipwright-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
certified: "false"
containerImage: ko://github.com/shipwright-io/operator
description: Shipwright is a framework for building container images on Kubernetes.
operators.operatorframework.io/builder: operator-sdk-v1.16.0+git
operators.operatorframework.io/builder: operator-sdk-v1.17.0+git
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/shipwright-io/operator
support: The Shipwright Contributors
Expand Down Expand Up @@ -759,13 +759,15 @@ spec:
selector:
matchLabels:
app: shipwright-operator
control-plane: controller-manager
strategy: {}
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: operator
kubectl.kubernetes.io/default-container: manager
labels:
app: shipwright-operator
control-plane: controller-manager
spec:
containers:
- args:
Expand All @@ -789,6 +791,10 @@ spec:
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
- --leader-elect
name: operator
resources: {}
- args:
- --leader-elect
env:
- name: USE_MANAGED_WEBHOOK_CERTS
Expand All @@ -800,7 +806,7 @@ spec:
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
name: operator
name: manager
readinessProbe:
httpGet:
path: /readyz
Expand Down
2 changes: 1 addition & 1 deletion bundle/metadata/annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ annotations:
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: shipwright-operator
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.metrics.builder: operator-sdk-v1.16.0+git
operators.operatorframework.io.metrics.builder: operator-sdk-v1.17.0+git
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3

Expand Down
7 changes: 5 additions & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ metadata:
namespace: system
labels:
app: shipwright-operator
control-plane: controller-manager
spec:
selector:
matchLabels:
app: shipwright-operator
control-plane: controller-manager
replicas: 1
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: operator
kubectl.kubernetes.io/default-container: manager
labels:
app: shipwright-operator
control-plane: controller-manager
spec:
securityContext:
runAsNonRoot: true
Expand All @@ -33,7 +36,7 @@ spec:
- name: USE_MANAGED_WEBHOOK_CERTS
value: "true"
image: ko://github.com/shipwright-io/operator
name: operator
name: manager
securityContext:
allowPrivilegeEscalation: false
livenessProbe:
Expand Down

0 comments on commit d1a17c4

Please sign in to comment.