ezadmis-httpcat

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 6 Imported by: 0

README

ezadmis-httpcat

The tool ezadmis-httpcat simply prints the Admission review request.

Installation

Assuming we are installing to namespace autoops

  1. complete RBAC Initialization for ezadmis-install
  2. deploy YAML resources
apiVersion: v1
kind: ConfigMap
metadata:
  name: install-ezadmis-httpcat-cfg
  namespace: autoops
data:
  config.json: |
    {
      "name": "ezadmis-httpcat",
      "namespace": "autoops",
      "mutating": false,
      "admissionRules": [
        {
          "apiGroups": ["*"],
          "apiVersions": ["*"],
          "resources": ["*"],
          "operations": ["*"]
        }
      ],
      "sideEffect": "None",
      "failurePolicy": "Ignore",
      "image": "guoyk/ezadmis-httpcat"
    }
---
# Job
apiVersion: batch/v1
kind: Job
metadata:
  name: install-ezadmis-httpcat
  namespace: autoops
spec:
  template:
    spec:
      serviceAccountName: ezadmis-install
      automountServiceAccountToken: true
      containers:
        - name: install-ezadmis-httpcat
          image: guoyk/ezadmis-install
          imagePullPolicy: Always
          args:
            - /ezadmis-install
            - -conf
            - /config.json
          volumeMounts:
            - name: vol-cfg
              mountPath: /config.json
              subPath: config.json
      volumes:
        - name: vol-cfg
          configMap:
            name: install-ezadmis-httpcat-cfg
      restartPolicy: OnFailure

Donation

View https://guoyk.xyz/donation

Credits

Guo Y.K., MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL