mirror of
				https://github.com/fluxcd/flux2.git
				synced 2025-10-31 00:06:55 +08:00 
			
		
		
		
	
		
			
				
	
	
	
		
			1.3 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.3 KiB
		
	
	
	
	
	
	
	
gotk create alert
Create or update a Alert resource
Synopsis
The create alert command generates a Alert resource.
gotk create alert [name] [flags]
Examples
  # Create an Alert for kustomization events
  gotk create alert \
  --event-severity info \
  --event-source Kustomization/gotk-system \
  --provider-ref slack \
  gotk-system
Options
      --event-severity string      severity of events to send alerts for
      --event-source stringArray   sources that should generate alerts (<kind>/<name>)
  -h, --help                       help for alert
      --provider-ref string        reference to provider
Options inherited from parent commands
      --export              export in YAML format to stdout
      --interval duration   source sync interval (default 1m0s)
      --kubeconfig string   path to the kubeconfig file (default "~/.kube/config")
      --label strings       set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
  -n, --namespace string    the namespace scope for this operation (default "gotk-system")
      --timeout duration    timeout for this operation (default 5m0s)
      --verbose             print generated objects
SEE ALSO
- gotk create - Create or update sources and resources
