Skip to content

Commit

Permalink
Add fixes in node and etcd TCs
Browse files Browse the repository at this point in the history
  • Loading branch information
deebhatia authored and safiyat committed Nov 6, 2024
1 parent 1ae58e3 commit ff650d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions cfg/rh-1.6/etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ groups:
- flag: "file"
compare:
op: regex
value: '\/etc\/kubernetes\/static-pod-certs\/secrets\/etcd-all-serving\/etcd-serving-.*\.(?:crt|key)'
# some systems have certs in directory '/etc/kubernetes/static-pod-certs/secrets/etcd-all-certs'
value: \/etc\/kubernetes\/static-pod-certs\/secrets\/etcd-all-(?:serving|certs)\/etcd-serving-.*\.(?:crt|key)
remediation: |
OpenShift does not use the etcd-certfile or etcd-keyfile flags.
Certificates for etcd are managed by the etcd cluster operator.
Expand Down Expand Up @@ -103,7 +104,8 @@ groups:
- flag: "file"
compare:
op: regex
value: '\/etc\/kubernetes\/static-pod-certs\/secrets\/etcd-all-peer\/etcd-peer-.*\.(?:crt|key)'
# some systems have certs in directory '/etc/kubernetes/static-pod-certs/secrets/etcd-all-certs'
value: '\/etc\/kubernetes\/static-pod-certs\/secrets\/etcd-all-(?:peer|certs)\/etcd-peer-.*\.(?:crt|key)'
remediation: |
None. This configuration is managed by the etcd operator.
scored: false
Expand Down
7 changes: 3 additions & 4 deletions cfg/rh-1.6/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,14 @@ groups:
echo RotateKubeletServerCertificate=$(oc get --raw /api/v1/nodes/$NODE_NAME/proxy/configz | jq '.kubeletconfig.featureGates.RotateKubeletServerCertificate' 2> /dev/null)
# Verify the rotateCertificates argument is set to true
echo rotateCertificates=$(oc get --raw /api/v1/nodes/$NODE_NAME/proxy/configz | jq -r '.kubeletconfig.rotateCertificates' 2> /dev/null)
use_multiple_values: true
tests:
bin_op: or
bin_op: and
test_items:
- flag: rotateCertificates
- flag: RotateKubeletServerCertificate
compare:
op: eq
value: true
- flag: RotateKubeletServerCertificate
- flag: rotateCertificates
compare:
op: eq
value: true
Expand Down

0 comments on commit ff650d0

Please sign in to comment.