Azure / aks-app-routing-operator

Kubernetes operator that implements AKS Application Routing
https://learn.microsoft.com/en-us/azure/aks/app-routing
MIT License
31 stars 23 forks source link

apply crds on operator startup #122

Closed OliverMKing closed 11 months ago

OliverMKing commented 11 months ago

Description

Applies the crds on operator startup, crashes the operator if it can't do that.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Unit and manually. Will be e2e tested with future additions since tests will rely on crds which will rely on the definition being in the cluster.

Checklist:

coveralls commented 11 months ago

Pull Request Test Coverage Report for Build 6711524321


Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/config/config.go 9 11 81.82%
pkg/controller/crd.go 28 33 84.85%
pkg/controller/controller.go 2 14 14.29%
<!-- Total: 39 58 67.24% -->
Files with Coverage Reduction New Missed Lines %
pkg/controller/controller.go 40 30.0%
<!-- Total: 40 -->
Totals Coverage Status
Change from base Build 6710311844: -2.1%
Covered Lines: 2131
Relevant Lines: 2533

💛 - Coveralls