File tree 5 files changed +47
-13
lines changed
rust/operator-binary/src/backend
tests/templates/kuttl/kerberos
5 files changed +47
-13
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,7 @@ All notable changes to this project will be documented in this file.
12
12
### Added
13
13
14
14
- Made RSA key length configurable for certificates issued by cert-manager ([ #528 ] ).
15
-
16
- ### Changed
17
-
18
- - Append a dot (` . ` ) to the default cluster domain to reduce DNS requests ([ #543 ] ).
15
+ - Kerberos principal backends now also provision principals for IP address, not just DNS hostnames ([ #552 ] ).
19
16
20
17
### Fixed
21
18
@@ -26,8 +23,8 @@ All notable changes to this project will be documented in this file.
26
23
27
24
[ #528 ] : https://github.com/stackabletech/secret-operator/pull/528
28
25
[ #536 ] : https://github.com/stackabletech/secret-operator/pull/536
29
- [ #543 ] : https://github.com/stackabletech/secret-operator/pull/543
30
26
[ #548 ] : https://github.com/stackabletech/secret-operator/pull/548
27
+ [ #552 ] : https://github.com/stackabletech/secret-operator/pull/552
31
28
32
29
## [ 24.11.0] - 2024-11-18
33
30
Original file line number Diff line number Diff line change @@ -208,13 +208,18 @@ cluster.local = {realm_name}
208
208
scope : scope. clone ( ) ,
209
209
} ) ?
210
210
{
211
- if let Address :: Dns ( hostname) = addr {
212
- pod_principals. push (
213
- format ! ( "{service_name}/{hostname}" )
214
- . try_into ( )
215
- . context ( PodPrincipalSnafu ) ?,
216
- ) ;
217
- }
211
+ pod_principals. push (
212
+ match addr {
213
+ Address :: Dns ( hostname) => {
214
+ format ! ( "{service_name}/{hostname}" )
215
+ }
216
+ Address :: Ip ( ip) => {
217
+ format ! ( "{service_name}/{ip}" )
218
+ }
219
+ }
220
+ . try_into ( )
221
+ . context ( PodPrincipalSnafu ) ?,
222
+ ) ;
218
223
}
219
224
}
220
225
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ apiVersion: kuttl.dev/v1beta1
3
3
kind: TestStep
4
4
commands:
5
5
- script: envsubst '$NAMESPACE' < secretclass.yaml | kubectl apply -f -
6
+ - script: envsubst '$NAMESPACE' < listenerclass.yaml | kubectl apply -f -
6
7
---
7
8
apiVersion: apps/v1
8
9
kind: StatefulSet
Original file line number Diff line number Diff line change 21
21
klist -k /stackable/krb/keytab -teKC
22
22
echo kiniting node
23
23
kinit -kt /stackable/krb/keytab -p HTTP/$NODE_NAME
24
+ echo kiniting node ip
25
+ NODE_IP="$(cat /stackable/listener/nodeport-ip/default-address/address)"
26
+ echo node ip is "$NODE_IP"
27
+ kinit -kt /stackable/krb/keytab -p "HTTP/$NODE_IP"
24
28
echo kiniting service
25
29
kinit -kt /stackable/krb/keytab -p HTTP/krb5-client.$NAMESPACE.svc.cluster.local
26
30
echo kiniting pod
@@ -39,21 +43,39 @@ spec:
39
43
volumeMounts:
40
44
- mountPath: /stackable/krb
41
45
name: kerberos
46
+ - mountPath: /stackable/listener/nodeport-ip
47
+ name: listener-nodeport-ip
48
+ ports:
49
+ - name: dummy
50
+ containerPort: 9999
42
51
volumes:
43
52
- name: kerberos
44
53
ephemeral:
45
54
volumeClaimTemplate:
46
55
metadata:
47
56
annotations:
48
57
secrets.stackable.tech/class: kerberos-$NAMESPACE
49
- secrets.stackable.tech/scope: node,pod
58
+ secrets.stackable.tech/scope: node,pod,listener-volume=listener-nodeport-ip
50
59
spec:
51
60
storageClassName: secrets.stackable.tech
52
61
accessModes:
53
62
- ReadWriteOnce
54
63
resources:
55
64
requests:
56
65
storage: "1"
66
+ - name: listener-nodeport-ip
67
+ ephemeral:
68
+ volumeClaimTemplate:
69
+ metadata:
70
+ annotations:
71
+ listeners.stackable.tech/listener-class: nodeport-ip-$NAMESPACE
72
+ spec:
73
+ storageClassName: listeners.stackable.tech
74
+ accessModes:
75
+ - ReadWriteOnce
76
+ resources:
77
+ requests:
78
+ storage: "1"
57
79
restartPolicy: Never
58
80
terminationGracePeriodSeconds: 0
59
81
subdomain: krb5-client
Original file line number Diff line number Diff line change
1
+ # $NAMESPACE will be replaced with the namespace of the test case.
2
+ ---
3
+ apiVersion : listeners.stackable.tech/v1alpha1
4
+ kind : ListenerClass
5
+ metadata :
6
+ name : nodeport-ip-$NAMESPACE
7
+ spec :
8
+ serviceType : NodePort
9
+ preferredAddressType : IP
You can’t perform that action at this time.
0 commit comments