Skip to content

Commit 6a2c2e7

Browse files
committed
fix: deployment specs
1 parent 614332c commit 6a2c2e7

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

config/certmanager/certificate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ spec:
1818
# $(SERVICE_NAME) will be substituted by kustomize
1919
# $(SERVICE_NAMESPACE) will be substituted on deployment
2020
dnsNames:
21-
- $(SERVICE_NAME).${SERVICE_NAMESPACE}.svc
22-
- $(SERVICE_NAME).${SERVICE_NAMESPACE}.svc.cluster.local
21+
- $(SERVICE_NAME).default.svc
22+
- $(SERVICE_NAME).default.svc.cluster.local
2323
# for local testing.
2424
- localhost
2525
issuerRef:

config/default/extension.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
spec:
1919
containers:
2020
- command:
21-
- /manager
21+
- /usr/local/bin/capi-runtime-extensions
2222
image: controller:latest
2323
name: extension
2424
terminationGracePeriodSeconds: 10

config/default/extension_config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2023 D2iQ, Inc. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: runtime.cluster.x-k8s.io/v1alpha1
5+
kind: ExtensionConfig
6+
metadata:
7+
annotations:
8+
runtime.cluster.x-k8s.io/inject-ca-from-secret: default/test-extension-webhook-service-cert
9+
name: test-extension
10+
spec:
11+
clientConfig:
12+
service:
13+
name: test-extension-webhook-service
14+
namespace: default
15+
port: 443

config/default/extension_image_patch.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ spec:
99
template:
1010
spec:
1111
containers:
12-
# FIXME replace with d2iq image
13-
- image: dkoshkin/capi-runtime-extensions:latest
12+
- image: ghcr.io/d2iq-labs/capi-runtime-extensions:v0.1.0-dev
1413
name: extension

config/default/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ resources:
99
- role.yaml
1010
- rolebinding.yaml
1111
- service_account.yaml
12+
- extension_config.yaml
1213

1314
bases:
1415
- ../certmanager

config/default/rolebinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ roleRef:
1212
subjects:
1313
- kind: ServiceAccount
1414
name: test-extension
15-
namespace: ${SERVICE_NAMESPACE}
15+
namespace: default

0 commit comments

Comments
 (0)