Documentation ¶
Index ¶
- func CreateRenderedAppRedactSpec(clientset kubernetes.Interface, app apptypes.AppType, sequence int64, ...) error
- func CreateRenderedDefaultRedactSpec(clientset kubernetes.Interface) error
- func DeleteRedact(slug string) error
- func GenerateKotsadmRedactSpec(clientset kubernetes.Interface) error
- func GetAppRedactSpecConfigMapName(appSlug string) string
- func GetAppRedactSpecURI(appSlug string) string
- func GetDefaultRedactSpecURI() string
- func GetKotsadmRedactSpecURI() string
- func GetRedact() (*troubleshootv1beta2.Redactor, error)
- func GetRedactInfo() ([]types.RedactorList, error)
- func GetRedactSpec() (string, string, error)
- func SetRedactSpec(spec string) (string, error)
- type RedactorMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRenderedAppRedactSpec ¶
func CreateRenderedAppRedactSpec(clientset kubernetes.Interface, app apptypes.AppType, sequence int64, kotsKinds *kotsutil.KotsKinds) error
CreateRenderedAppRedactSpec creates a configmap that contains the redaction yaml spec included in the application release
func CreateRenderedDefaultRedactSpec ¶ added in v1.93.1
func CreateRenderedDefaultRedactSpec(clientset kubernetes.Interface) error
CreateRenderedDefaultRedactSpec creates a configmap that contains the default redaction yaml spec for the admin console
func DeleteRedact ¶
func GenerateKotsadmRedactSpec ¶
func GenerateKotsadmRedactSpec(clientset kubernetes.Interface) error
GenerateKotsadmRedactSpec creates a configmap that contains the admin console custom redaction yaml spec generated from "kotsadm-redact" configmap for collecting support bundles. contains the full redact spec type that is supported by troubleshoot.
func GetAppRedactSpecURI ¶
func GetDefaultRedactSpecURI ¶ added in v1.93.1
func GetDefaultRedactSpecURI() string
func GetKotsadmRedactSpecURI ¶
func GetKotsadmRedactSpecURI() string
func GetRedact ¶
func GetRedact() (*troubleshootv1beta2.Redactor, error)
func GetRedactInfo ¶
func GetRedactInfo() ([]types.RedactorList, error)
func GetRedactSpec ¶
GetRedactSpec returns the redaction yaml spec, a pretty error string, and the underlying error
func SetRedactSpec ¶
SetRedactSpec sets the global redact spec to the specified string, and returns a pretty error string + the underlying error
Types ¶
type RedactorMetadata ¶
type RedactorMetadata struct { Metadata types.RedactorList `json:"metadata"` Redact string `json:"redact"` }
func GetRedactBySlug ¶
func GetRedactBySlug(slug string) (*RedactorMetadata, error)
func SetRedactEnabled ¶
func SetRedactEnabled(slug string, enabled bool) (*RedactorMetadata, error)
sets whether an individual redactor is enabled
func SetRedactYaml ¶
func SetRedactYaml(slug, description string, enabled, newRedact bool, yamlBytes []byte) (*RedactorMetadata, error)
updates/creates an individual redact with the provided metadata and yaml