INNER CODE UNIT · Go

Example_config

Shopify/kubeaudit · example_test.go:151

func Example_config() {
	configFile := "config/config.yaml"
	// A sample Kubernetes manifest file
	manifest := `
apiVersion: apps/v1
kind: Deployment
metadata:
  name: myAuditor 
  spec:
    template:
      spec:
        containers:
        - name: myContainer
`

	// Open the configuration file
	reader, err := os.Open(configFile)
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…