Skip to content

Commit 43ae6af

Browse files
author
Jim Ryan
authored
Chore/ensure telemetry generation up to date (#6280)
* remove data.avdl from pre commit trailing whitespace * add telemetry schema check to ci.yml * add gofumpt * add go/bin to path so gofumpt can be called in makefile * add go bin to path in make telemetry step
1 parent 63cd0a8 commit 43ae6af

File tree

3 files changed

+46
-38
lines changed

3 files changed

+46
-38
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ jobs:
180180
make update-codegen && git diff --name-only --exit-code pkg/**
181181
cd ../../.. && mv github.com/nginxinc/kubernetes-ingress kubernetes-ingress/kubernetes-ingress
182182
183+
- name: Install gofumpt
184+
run: go install mvdan.cc/gofumpt@latest
185+
186+
- name: Check if telemetry schema changed
187+
run: |
188+
export PATH=$PATH:$(go env GOPATH)/bin
189+
make telemetry-schema && git diff --name-only --exit-code internal/telemetry
190+
183191
unit-tests:
184192
name: Unit Tests
185193
runs-on: ubuntu-22.04

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
rev: v4.6.0
77
hooks:
88
- id: trailing-whitespace
9-
exclude: '(\.md|\.snap)$'
9+
exclude: '(\.md|\.snap|\.avdl)$'
1010
- id: end-of-file-fixer
1111
exclude: docs/layouts/shortcodes/nic-.*.html
1212
- id: check-yaml

internal/telemetry/data.avdl

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,115 +8,115 @@
88
/** The time our edge ingested the event */
99
long ingestTime;
1010

11-
11+
1212
/** ProjectName is the name of the project. */
1313
string? ProjectName = null;
14-
14+
1515
/** ProjectVersion is the version of the project. */
1616
string? ProjectVersion = null;
17-
17+
1818
/** ProjectArchitecture is the architecture of the project. For example, "amd64". */
1919
string? ProjectArchitecture = null;
20-
20+
2121
/** ClusterID is the unique id of the Kubernetes cluster where the project is installed.
2222
It is the UID of the `kube-system` Namespace. */
2323
string? ClusterID = null;
24-
24+
2525
/** ClusterVersion is the Kubernetes version of the cluster. */
2626
string? ClusterVersion = null;
27-
27+
2828
/** ClusterPlatform is the Kubernetes platform of the cluster. */
2929
string? ClusterPlatform = null;
30-
30+
3131
/** InstallationID is the unique id of the project installation in the cluster. */
3232
string? InstallationID = null;
33-
33+
3434
/** ClusterNodeCount is the number of nodes in the cluster. */
3535
long? ClusterNodeCount = null;
36-
36+
3737
/** VirtualServers is the number of VirtualServer resources managed by the Ingress Controller. */
3838
long? VirtualServers = null;
39-
39+
4040
/** VirtualServerRoutes is the number of VirtualServerRoute resources managed by the Ingress Controller. */
4141
long? VirtualServerRoutes = null;
42-
42+
4343
/** TransportServers is the number of TransportServer resources managed by the Ingress Controller. */
4444
long? TransportServers = null;
45-
45+
4646
/** Replicas is the number of NIC replicas. */
4747
long? Replicas = null;
48-
48+
4949
/** Secrets is the number of Secret resources managed by the Ingress Controller. */
5050
long? Secrets = null;
51-
51+
5252
/** ClusterIPServices is the number of ClusterIP services managed by NGINX Ingress Controller. */
5353
long? ClusterIPServices = null;
54-
54+
5555
/** NodePortServices is the number of NodePort services managed by NGINX Ingress Controller. */
5656
long? NodePortServices = null;
57-
57+
5858
/** LoadBalancerServices is the number of LoadBalancer services managed by NGINX Ingress Controller. */
5959
long? LoadBalancerServices = null;
60-
60+
6161
/** ExternalNameServices is the number of ExternalName services managed by NGINX Ingress Controller. */
6262
long? ExternalNameServices = null;
63-
63+
6464
/** RegularIngressCount is the number of Regular Ingress resources managed by NGINX Ingress Controller. */
6565
long? RegularIngressCount = null;
66-
66+
6767
/** MasterIngressCount is the number of Regular Ingress resources managed by NGINX Ingress Controller. */
6868
long? MasterIngressCount = null;
69-
69+
7070
/** MinionIngressCount is the number of Regular Ingress resources managed by NGINX Ingress Controller. */
7171
long? MinionIngressCount = null;
72-
72+
7373
/** IngressClasses is the number of Ingress Classes. */
7474
long? IngressClasses = null;
75-
75+
7676
/** AccessControlPolicies is the number of AccessControl policies managed by NGINX Ingress Controller */
7777
long? AccessControlPolicies = null;
78-
78+
7979
/** RateLimitPolicies is the number of RateLimit policies managed by NGINX Ingress Controller */
8080
long? RateLimitPolicies = null;
81-
81+
8282
/** APIKeyPolicies is the number of APIKey policies managed by NGINX Ingress Controller */
8383
long? APIKeyPolicies = null;
84-
84+
8585
/** JWTAuthPolicies is the number of JWTAuth policies managed by NGINX Ingress Controller */
8686
long? JWTAuthPolicies = null;
87-
87+
8888
/** BasicAuthPolicies is the number of BasicAuth policies managed by NGINX Ingress Controller */
8989
long? BasicAuthPolicies = null;
90-
90+
9191
/** IngressMTLSPolicies is the number of IngressMTLS policies managed by NGINX Ingress Controller */
9292
long? IngressMTLSPolicies = null;
93-
93+
9494
/** EgressMTLSPolicies is the number of EgressMTLS policies managed by NGINX Ingress Controller */
9595
long? EgressMTLSPolicies = null;
96-
96+
9797
/** OIDCPolicies is the number of OIDC policies managed by NGINX Ingress Controller */
9898
long? OIDCPolicies = null;
99-
99+
100100
/** WAFPolicies is the number of WAF policies managed by NGINX Ingress Controller */
101101
long? WAFPolicies = null;
102-
102+
103103
/** GlobalConfiguration indicates if a GlobalConfiguration resource is used. */
104104
boolean? GlobalConfiguration = null;
105-
105+
106106
/** IngressAnnotations is the list of annotations resources managed by NGINX Ingress Controller */
107107
union {null, array<string>} IngressAnnotations = null;
108-
108+
109109
/** AppProtectVersion represents the version of AppProtect. */
110110
string? AppProtectVersion = null;
111-
111+
112112
/** IsPlus represents whether NGINX is Plus or OSS */
113113
boolean? IsPlus = null;
114-
114+
115115
/** InstallationFlags is the list of command line arguments configured for NGINX Ingress Controller */
116116
union {null, array<string>} InstallationFlags = null;
117-
117+
118118
/** BuildOS represents the base operating system image */
119119
string? BuildOS = null;
120-
120+
121121
}
122122
}

0 commit comments

Comments
 (0)