INNER CODE UNIT · Go

Example_auditorSubset

Shopify/kubeaudit · example_test.go:115

func Example_auditorSubset() {
	// A sample Kubernetes manifest file
	manifest := `
apiVersion: apps/v1
kind: Deployment
metadata:
  name: myAuditor 
  spec:
    template:
      spec:
        containers:
        - name: myContainer
`

	// Initialize the auditors you want to use
	auditor, err := kubeaudit.New([]kubeaudit.Auditable{
		apparmor.New(),
		image.New(image.Config{Image: "myimage:mytag"}),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…