Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCleanManifestsCommand ¶
rg --files-without-match 'ownerRefer|norman'
- ignore endpoints which have the same name as a service (no matter whether service is filtered or not) - ignore stuff with ownerReference - ignore stuff with "norman" creator - ignore default serviceaccount - for every serviceaccount, check global policy... - for every CRD, check whether CRD exists - for secret, ignore if that's a service account secret
func BuildMariadbCommand ¶
func BuildPostgresCommand ¶
Types ¶
type KubeFile ¶
type KubeFile struct { Parsed ParsedKubernetesManifestParts Path string FullKubeFile map[string]interface{} SkipReasons []string }
type ParsedKubernetesManifestParts ¶
type ParsedKubernetesManifestParts struct { Kind string `yaml:"kind"` ApiVersion string `yaml:"apiVersion"` Metadata struct { Name string `yaml:"name"` Namespace string `yaml:"namespace"` Labels map[string]string `yaml:"labels"` Annotations map[string]string `yaml:"annotations"` OwnerReferences []struct { Kind string `yaml:"kind"` ApiVersion string `yaml:"apiVersion"` Name string `yaml:"name"` } `yaml:"ownerReferences"` } `yaml:"metadata"` // for Kind == Secret Secrets []struct { Name string `yaml:"name"` } `yaml:"secrets"` Type string `yaml:"type"` // for Kind == ClusterRoleBinding RoleRef struct { Kind string `yaml:"kind"` ApiGroup string `yaml:"apiGroup"` Name string `yaml:"name"` } `yaml:"roleRef"` Subjects []struct { Kind string `yaml:"kind"` Name string `yaml:"name"` Namespace string `yaml:"namespace"` } `yaml:"subjects"` }
Click to show internal directories.
Click to hide internal directories.