-
Notifications
You must be signed in to change notification settings - Fork 110
/
Copy pathconst.go
103 lines (93 loc) · 4.27 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
package rbac
// Consts used to setup Rbac config
// API Groups
const (
CoreAPIGroup = ""
ExtensionsAPIGroup = "extensions"
OpenShiftQuotaAPIGroup = "quota.openshift.io"
RbacAPIGroup = "rbac.authorization.k8s.io"
AutoscalingAPIGroup = "autoscaling"
CertificatesAPIGroup = "certificates.k8s.io"
StorageAPIGroup = "storage.k8s.io"
CoordinationAPIGroup = "coordination.k8s.io"
DatadogAPIGroup = "datadoghq.com"
AdmissionAPIGroup = "admissionregistration.k8s.io"
AppsAPIGroup = "apps"
BatchAPIGroup = "batch"
PolicyAPIGroup = "policy"
NetworkingAPIGroup = "networking.k8s.io"
AutoscalingK8sIoAPIGroup = "autoscaling.k8s.io"
AuthorizationAPIGroup = "authorization.k8s.io"
ExternalMetricsAPIGroup = "external.metrics.k8s.io"
RegistrationAPIGroup = "apiregistration.k8s.io"
APIExtensionsAPIGroup = "apiextensions.k8s.io"
// Resources
APIServicesResource = "apiservices"
CustomResourceDefinitionsResource = "customresourcedefinitions"
ServicesResource = "services"
EventsResource = "events"
EndpointsResource = "endpoints"
PodsResource = "pods"
NodesResource = "nodes"
ComponentStatusesResource = "componentstatuses"
CertificatesSigningRequestsResource = "certificatesigningrequests"
ConfigMapsResource = "configmaps"
ResourceQuotasResource = "resourcequotas"
ReplicationControllersResource = "replicationcontrollers"
LimitRangesResource = "limitranges"
PersistentVolumeClaimsResource = "persistentvolumeclaims"
PersistentVolumesResource = "persistentvolumes"
LeasesResource = "leases"
ClusterResourceQuotasResource = "clusterresourcequotas"
NodeMetricsResource = "nodes/metrics"
NodeSpecResource = "nodes/spec"
NodeProxyResource = "nodes/proxy"
NodeStats = "nodes/stats"
HorizontalPodAutoscalersRecource = "horizontalpodautoscalers"
DatadogMetricsResource = "datadogmetrics"
DatadogMetricsStatusResource = "datadogmetrics/status"
WpaResource = "watermarkpodautoscalers"
MutatingConfigResource = "mutatingwebhookconfigurations"
ValidatingConfigResource = "validatingwebhookconfigurations"
SecretsResource = "secrets"
PodDisruptionBudgetsResource = "poddisruptionbudgets"
ReplicasetsResource = "replicasets"
DeploymentsResource = "deployments"
StatefulsetsResource = "statefulsets"
DaemonsetsResource = "daemonsets"
JobsResource = "jobs"
CronjobsResource = "cronjobs"
StorageClassesResource = "storageclasses"
VolumeAttachments = "volumeattachments"
ExtendedDaemonSetReplicaSetResource = "extendeddaemonsetreplicasets"
ServiceAccountResource = "serviceaccounts"
NamespaceResource = "namespaces"
PodSecurityPolicyResource = "podsecuritypolicies"
ClusterRoleBindingResource = "clusterrolebindings"
RoleBindingResource = "rolebindings"
NetworkPolicyResource = "networkpolicies"
IngressesResource = "ingresses"
VPAResource = "verticalpodautoscalers"
SubjectAccessReviewResource = "subjectaccessreviews"
ClusterRoleResource = "clusterroles"
RoleResource = "roles"
// Non resource URLs
VersionURL = "/version"
HealthzURL = "/healthz"
MetricsURL = "/metrics"
// Verbs
GetVerb = "get"
ListVerb = "list"
WatchVerb = "watch"
UpdateVerb = "update"
CreateVerb = "create"
DeleteVerb = "delete"
// Rbac resource kinds
ClusterRoleKind = "ClusterRole"
RoleKind = "Role"
ServiceAccountKind = "ServiceAccount"
)