Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \

# Depends on generate-groups.sh to install bin/deepcopy-gen
${GOPATH}/bin/deepcopy-gen --input-dirs \
github.com/knative/serving/pkg/controller/revision/config,github.com/knative/serving/pkg/autoscaler,github.com/knative/serving/pkg/logging \
github.com/knative/serving/pkg/controller/revision/config,github.com/knative/serving/pkg/controller/route/config,github.com/knative/serving/pkg/autoscaler,github.com/knative/serving/pkg/logging \
-O zz_generated.deepcopy \
--go-header-file ${SERVING_ROOT}/hack/boilerplate/boilerplate.go.txt

Expand Down
2 changes: 2 additions & 0 deletions pkg/controller/route/config/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

// +k8s:deepcopy-gen=package

// Package config holds the typed objects that define the schemas for
// assorted ConfigMap objects on which the Route controller depends.
package config
72 changes: 72 additions & 0 deletions pkg/controller/route/config/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/controller/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func loggerWithRouteInfo(logger *zap.SugaredLogger, ns string, name string) *zap
func (c *Controller) getDomainConfig() *config.Domain {
c.domainConfigMutex.Lock()
defer c.domainConfigMutex.Unlock()
return c.domainConfig
return c.domainConfig.DeepCopy()
}

func (c *Controller) routeDomain(route *v1alpha1.Route) string {
Expand Down