Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CertificateIssuerInputTypes = Snapshot{ schema.GroupVersion{ Group: "certificates." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "IssuedCertificate", "CertificateRequest", }, } CertificateAgentInputTypes = Snapshot{ schema.GroupVersion{ Group: "certificates." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "IssuedCertificate", "CertificateRequest", "PodBounceDirective", }, corev1.SchemeGroupVersion: { "Secret", "Pod", }, } CertificateAgentOutputTypes = OutputSnapshot{ Name: "certagent", Snapshot: Snapshot{ schema.GroupVersion{ Group: "certificates." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "CertificateRequest", }, corev1.SchemeGroupVersion: { "Secret", }, }, } )
View Source
var ( DiscoveryRemoteInputTypes = Snapshot{ corev1.SchemeGroupVersion: { "Pod", "Service", "ConfigMap", "Node", }, appsv1.SchemeGroupVersion: { "Deployment", "ReplicaSet", "DaemonSet", "StatefulSet", }, appmeshv1beta2.GroupVersion: { "Mesh", }, } DiscoveryLocalInputTypes = Snapshot{ schema.GroupVersion{ Group: "settings." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "Settings", }, } DiscoveryOutputTypes = OutputSnapshot{ Name: "discovery", Snapshot: Snapshot{ schema.GroupVersion{ Group: "discovery." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "Mesh", "Workload", "TrafficTarget", }, }, } )
View Source
var ( NetworkingInputTypes = Snapshot{ schema.GroupVersion{ Group: "discovery." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "Mesh", "Workload", "TrafficTarget", }, schema.GroupVersion{ Group: "networking." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "TrafficPolicy", "AccessPolicy", "VirtualMesh", "FailoverService", }, schema.GroupVersion{ Group: "settings." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "Settings", }, skv1alpha1.SchemeGroupVersion: { "KubernetesCluster", }, corev1.SchemeGroupVersion: { "Secret", }, } IstioNetworkingOutputTypes = OutputSnapshot{ Name: "istio", Snapshot: Snapshot{ istionetworkingv1alpha3.SchemeGroupVersion: { "DestinationRule", "VirtualService", "EnvoyFilter", "ServiceEntry", "Gateway", }, istiosecurityv1beta1.SchemeGroupVersion: { "AuthorizationPolicy", }, schema.GroupVersion{ Group: "certificates." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha2", }: { "IssuedCertificate", "PodBounceDirective", }, schema.GroupVersion{ Group: "xds.agent.enterprise." + constants.GlooMeshApiGroupSuffix, Version: "v1alpha1", }: { "XdsConfig", }, corev1.SchemeGroupVersion: { "ConfigMap", }, }, } LocalNetworkingOutputTypes = OutputSnapshot{ Name: "local", Snapshot: Snapshot{ corev1.SchemeGroupVersion: { "Secret", }, }, } SmiNetworkingOutputTypes = OutputSnapshot{ Name: "smi", Snapshot: Snapshot{ smislpitv1alpha2.SchemeGroupVersion: { "TrafficSplit", }, smiaccessv1alpha2.SchemeGroupVersion: { "TrafficTarget", }, smispecsv1alpha3.SchemeGroupVersion: { "HTTPRouteGroup", }, }, } AppMeshNetworkingOutputTypes = OutputSnapshot{ Name: "appmesh", Snapshot: Snapshot{ appmeshv1beta2.GroupVersion: { "VirtualNode", "VirtualRouter", "Route", "VirtualService", }, }, } )
View Source
var ( ClusterWatcherInputTypes = Snapshot{ corev1.SchemeGroupVersion: { "Secret", }, skv1alpha1.SchemeGroupVersion: { "KubernetesCluster", }, } )
Functions ¶
This section is empty.
Types ¶
type OutputSnapshot ¶
type Snapshot ¶
type Snapshot map[schema.GroupVersion][]string
a Snapshot is a group of individual resources from one or more GroupVersions
func (Snapshot) RbacPoliciesUpdateStatus ¶
func (s Snapshot) RbacPoliciesUpdateStatus() []rbacv1.PolicyRule
get the rbac policies needed to update the snapshot statuses
func (Snapshot) RbacPoliciesWatch ¶
func (s Snapshot) RbacPoliciesWatch() []rbacv1.PolicyRule
get the rbac policies needed to watch the snapshot
func (Snapshot) RbacPoliciesWrite ¶
func (s Snapshot) RbacPoliciesWrite() []rbacv1.PolicyRule
get the rbac policies needed to write the snapshot
Click to show internal directories.
Click to hide internal directories.