Skip to content

Commit

Permalink
Merge pull request #88 from stakater/update-service
Browse files Browse the repository at this point in the history
Update Service
  • Loading branch information
abdulhaseeb2 authored May 13, 2022
2 parents 0f3775f + 60bd68f commit d3fe226
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~

.PHONY: uninstall
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/crd | sh kubectl delete --ignore-not-found=$(ignore-not-found) -f -
$(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) -f -

.PHONY: deploy
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
Expand All @@ -145,7 +145,7 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in

.PHONY: undeploy
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/default | sh kubectl delete --ignore-not-found=$(ignore-not-found) -f -
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -

ifndef ignore-not-found
ignore-not-found = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: jira-service-desk-operator-webhook-service
spec:
ports:
- port: 0
- port: 443
protocol: TCP
targetPort: 9443
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ spec:
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
name: kube-rbac-proxy
ports:
- containerPort: 0
- containerPort: 8443
name: https
protocol: TCP
resources:
Expand Down Expand Up @@ -273,6 +273,7 @@ spec:
webhookdefinitions:
- admissionReviewVersions:
- v1
containerPort: 443
deploymentName: jira-service-desk-operator-controller-manager
failurePolicy: Fail
generateName: mcustomer.kb.io
Expand All @@ -287,10 +288,12 @@ spec:
resources:
- customers
sideEffects: None
targetPort: 9443
type: MutatingAdmissionWebhook
webhookPath: /mutate-jiraservicedesk-stakater-com-v1alpha1-customer
- admissionReviewVersions:
- v1
containerPort: 443
deploymentName: jira-service-desk-operator-controller-manager
failurePolicy: Fail
generateName: mproject.kb.io
Expand All @@ -305,10 +308,12 @@ spec:
resources:
- projects
sideEffects: None
targetPort: 9443
type: MutatingAdmissionWebhook
webhookPath: /mutate-jiraservicedesk-stakater-com-v1alpha1-project
- admissionReviewVersions:
- v1
containerPort: 443
deploymentName: jira-service-desk-operator-controller-manager
failurePolicy: Fail
generateName: vcustomer.kb.io
Expand All @@ -323,10 +328,12 @@ spec:
resources:
- customers
sideEffects: None
targetPort: 9443
type: ValidatingAdmissionWebhook
webhookPath: /validate-jiraservicedesk-stakater-com-v1alpha1-customer
- admissionReviewVersions:
- v1
containerPort: 443
deploymentName: jira-service-desk-operator-controller-manager
failurePolicy: Fail
generateName: vproject.kb.io
Expand All @@ -341,5 +348,6 @@ spec:
resources:
- projects
sideEffects: None
targetPort: 9443
type: ValidatingAdmissionWebhook
webhookPath: /validate-jiraservicedesk-stakater-com-v1alpha1-project
3 changes: 2 additions & 1 deletion charts/jira-service-desk-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ spec:
name: kube-rbac-proxy
ports:
- protocol: TCP
containerPort: 8443
name: https
- args:
- --health-probe-bind-address=:8081
Expand Down Expand Up @@ -74,7 +75,7 @@ spec:
ports:
- containerPort: 9443
name: webhook-server
protocol: TCP
port: 443
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
1 change: 1 addition & 0 deletions charts/jira-service-desk-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ webhook:

service:
type: ClusterIP
port: 443
protocol: TCP

# Monitoring Configuration
Expand Down
3 changes: 2 additions & 1 deletion config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ spec:
- "--logtostderr=true"
- "--v=0"
ports:
- protocol: TCP
- containerPort: 8443
protocol: TCP
name: https
- name: manager
args:
Expand Down
3 changes: 2 additions & 1 deletion config/webhook/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ metadata:
namespace: system
spec:
ports:
- protocol: TCP
- port: 443
protocol: TCP
targetPort: 9443
selector:
control-plane: controller-manager

0 comments on commit d3fe226

Please sign in to comment.