Skip to content

Commit 7048719

Browse files
committed
new submit for code rebasing
1 parent e853cf9 commit 7048719

37 files changed

+1752
-830
lines changed

common-protos/istio.io/extensions/istio_feature.pb.go

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

common-protos/istio.io/extensions/istio_feature.pb.html

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Copyright 2019 Istio Authors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package istio.extensions;
18+
19+
option go_package="istio.io/api/istio.io/extensions";
20+
21+
import "google/protobuf/descriptor.proto";
22+
23+
// Values applied at the field level
24+
extend google.protobuf.FieldOptions {
25+
IstioFeature feature = 1300;
26+
}
27+
28+
enum FeatureStatus {
29+
ALPHA = 0;
30+
BETA = 1;
31+
STABLE = 2;
32+
EXPERIMENTAL = 3;
33+
}
34+
35+
// These options should be used during schema definition, applying them to some of the fields in protobuf
36+
// Below are 1 related repo and 1 PR for this repo:
37+
// Repo: https://github.com/istio/enhancements
38+
// Repo PR: https://github.com/istio/enhancements/pull/88
39+
message IstioFeature {
40+
// label the feature's status, available status values may be alpha, beta and stable
41+
// there would be experimental in future.
42+
optional FeatureStatus status = 1;
43+
// id means the feature id which can be mapped here: https://github.com/istio/enhancements/blob/master/features.yaml
44+
// it should be contained in id section of features under this yaml file.
45+
optional string id = 2;
46+
}

common-protos/istio.io/extensions/istio_feature_deepcopy.gen.go

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

common-protos/istio.io/extensions/istio_feature_json.gen.go

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

gen.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ buf generate --template buf.gen-noncrd.yaml \
4141
buf generate --template buf.gen-golang.yaml \
4242
--path envoy
4343

44+
# Add field option extension for istio feature label
45+
buf generate --path istio.io/extensions/istio_feature.proto
46+
4447
# Custom hacks to post-process some outputs
4548
go run ./operator/fixup_structs/main.go -f operator/v1alpha1/operator.pb.go
4649
go run ./operator/fixup_structs/main.go -f mesh/v1alpha1/config.pb.go

0 commit comments

Comments
 (0)