Skip to content

Commit

Permalink
makefile: add webhook config and dockerfile requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
  • Loading branch information
iamniting committed Jan 15, 2025
1 parent 5f19e3a commit fc1c4e1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ COPY vendor/ vendor/
# Copy the project source
COPY api/ api/
COPY controllers/ controllers/
COPY webhook/ webhook/
COPY pkg/ pkg/
COPY config/ config/
COPY metrics/ metrics/
Expand Down
1 change: 1 addition & 0 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namePrefix: odf-operator-
# endpoint w/o any authn/z, please comment the following line.
patchesStrategicMerge:
- manager_auth_proxy_patch.yaml
- manager_webhook_patch.yaml

# Mount the controller config file for loading manager configurations
# through a ComponentConfig type
Expand Down
1 change: 1 addition & 0 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
resources:
- manager.yaml
- webhook_service.yaml

generatorOptions:
disableNameSuffixHash: true
Expand Down
15 changes: 15 additions & 0 deletions config/manager/webhook_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.openshift.io/serving-cert-secret-name: webhook-server-cert
name: webhook-service
namespace: system
spec:
ports:
- name: https
port: 443
protocol: TCP
targetPort: 9443
selector:
app.kubernetes.io/name: odf-operator

0 comments on commit fc1c4e1

Please sign in to comment.