Skip to content

Commit df25765

Browse files
label node
Signed-off-by: Rakshit Gondwal <[email protected]>
1 parent 8809635 commit df25765

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cis-operator.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ test:
4848
uses: test/daemon-check-output
4949
with:
5050
setup: |
51+
# grab the node name
52+
NODE=$(kubectl get nodes --no-headers \
53+
-o custom-columns=NAME:.metadata.name | head -n1)
54+
# we'll have to label the node so that the operator recognizes our cluster as an aks cluster
55+
# kwok is not recognized as a provider, https://github.com/rancher/kubernetes-provider-detector/tree/master/providers
56+
kubectl label node "$NODE" kubernetes.azure.com/cluster=""
5157
kubectl apply -f https://raw.githubusercontent.com/rancher/cis-operator/refs/heads/main/crds/clusterscan.yaml
5258
kubectl apply -f https://raw.githubusercontent.com/rancher/cis-operator/refs/heads/main/crds/clusterscanbenchmark.yaml
5359
kubectl apply -f https://raw.githubusercontent.com/rancher/cis-operator/refs/heads/main/crds/clusterscanprofile.yaml

0 commit comments

Comments
 (0)