Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gatewayclass controller #3

Merged
merged 2 commits into from
Nov 9, 2021
Merged

Gatewayclass controller #3

merged 2 commits into from
Nov 9, 2021

Conversation

pleshakov
Copy link
Contributor

@pleshakov pleshakov commented Nov 8, 2021

Adds a Controller for GatewayClass resource. This is a PoC, to be discussed

gkubectl logs nginx-gateway-5d4f4c7db7-h5cdc -c nginx-gateway
{"level":"info","ts":1636415100.3172226,"caller":"gateway/main.go:46","msg":"Starting NGINX Gateway","version":"0.0.1","commit":"177960476d204f8f1908448e112b668bde741ad2","date":"2021-11-08T23:43:06Z"}
{"level":"info","ts":1636415100.3616116,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":8080"}
{"level":"info","ts":1636415100.3667648,"caller":"gateway/main.go:79","msg":"Starting manager"}
{"level":"info","ts":1636415100.3714108,"msg":"starting metrics server","path":"/metrics"}
{"level":"info","ts":1636415100.3717198,"logger":"controller.gatewayclass","msg":"Starting EventSource","reconciler group":"gateway.networking.k8s.io","reconciler kind":"GatewayClass","source":"kind source: /, Kind="}
{"level":"info","ts":1636415100.3718565,"logger":"controller.gatewayclass","msg":"Starting Controller","reconciler group":"gateway.networking.k8s.io","reconciler kind":"GatewayClass"}
{"level":"info","ts":1636415100.4728386,"logger":"controller.gatewayclass","msg":"Starting workers","reconciler group":"gateway.networking.k8s.io","reconciler kind":"GatewayClass","worker count":1}
{"level":"info","ts":1636415100.4732518,"caller":"implementation/gatewayclass.go:25","msg":"Processing GatewayClass resource","name":"nginx"}
{"level":"error","ts":1636415125.7124593,"caller":"implementation/gatewayclass.go:29","msg":"GatewayClass resource was removed","name":"nginx","stacktrace":"github.com/nginxinc/nginx-gateway-kubernetes/internal/implementation.(*gatewayClassImplementation).Remove\n\tgith
ub.com/nginxinc/nginx-gateway-kubernetes/internal/implementation/gatewayclass.go:29\ngithub.com/nginxinc/nginx-gateway-kubernetes/internal/sdk.(*gatewayClassReconciler).Reconcile\n\tgithub.com/nginxinc/nginx-gateway-kubernetes/internal/sdk/gatewayclass_controller.go:53\
nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.10.2/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/cont
roller-runtime@v0.10.2/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.10.2/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime
/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.10.2/pkg/internal/controller/controller.go:227"}

cmd/gateway/main.go Outdated Show resolved Hide resolved
cmd/gateway/main.go Outdated Show resolved Hide resolved
cmd/gateway/main.go Outdated Show resolved Hide resolved
internal/sdk/gatewayclass_controller.go Outdated Show resolved Hide resolved
@pleshakov pleshakov merged commit 4cbd4aa into main Nov 9, 2021
@pleshakov pleshakov deleted the gatewayclass-controller branch November 9, 2021 20:16
@pammecrandall pammecrandall added the enhancement New feature or request label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants