Skip to content
View wangcanfengxs's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report wangcanfengxs

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. decode k8s secret decode k8s secret
    1
    #!/bin/bash
    2
     
    3
    # Usage: NAMESPACE=... SECRET_NAME=... ./decode_k8s_secret.sh
    4
    
                  
    5
    if [ -z "$NAMESPACE" ]; then
  2. json value base64 json value base64
    1
    jq 'with_entries({key:.key, value: (.value|@base64) })'
  3. 采集Deployment下所有容器的日志 采集Deployment下所有容器的日志
    1
    #!/bin/bash
    2
    
                  
    3
    NAMESPACE=$1
    4
    DEPLOYMENT=$2
    5
    
                  
  4. Transfer multi keyvaluepairs to json... Transfer multi keyvaluepairs to json object
    1
    #!/bin/bash
    2
    
                  
    3
    result="[]"
    4
    while IFS="=" read -r k v; do
    5
      entry=$(jq --arg key "$k" --arg value "$v" -n '[{