Skip to content

Commit c9a1f7c

Browse files
Auto: sync API from tigera/calico-private [master] (#260)
Automated sync of API files from `tigera/calico-private` `master` branch into this repo via `make -f Makefile.local update`. Triggered by scheduled workflow.
2 parents 62f68be + 864b724 commit c9a1f7c

6 files changed

Lines changed: 63 additions & 2 deletions

File tree

config/crd/projectcalico.org_kubecontrollersconfigurations.yaml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/projectcalico/v3/kubecontrollersconfig.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-2021 Tigera, Inc. All rights reserved.
1+
// Copyright (c) 2020-2026 Tigera, Inc. All rights reserved.
22

33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -174,7 +174,7 @@ type AutoHostEndpointConfig struct {
174174

175175
// Templates contains definition for creating AutoHostEndpoints
176176
// +listType=atomic
177-
Templates []Template `json:"templates,omitempty" validate:"omitempty"`
177+
Templates []Template `json:"templates,omitempty" validate:"omitempty,dive"`
178178
}
179179

180180
// DefaultHostEndpointMode controls whether a default host endpoint is created for each node.
@@ -204,6 +204,9 @@ type Template struct {
204204
// Labels adds the specified labels to the generated AutoHostEndpoint, labels from node with the same name will be overwritten by values from the template label
205205
Labels map[string]string `json:"labels,omitempty" validate:"omitempty,labels"`
206206

207+
// Annotations adds the specified annotations to the generated AutoHostEndpoint.
208+
Annotations map[string]string `json:"annotations,omitempty"`
209+
207210
// NodeSelector allows the AutoHostEndpoint to be created only for specific nodes
208211
NodeSelector string `json:"nodeSelector,omitempty" validate:"omitempty,selector"`
209212
}

pkg/apis/projectcalico/v3/zz_generated.deepcopy.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration_generated/internal/internal.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration_generated/projectcalico/v3/template.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/openapi/generated.openapi.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)