How to generate client-go for a newly added CRD

Open
#3,603 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
go
Domain
documentation

Research direction

Start from the provided protobuf definition and its CRD and Go code-generation tags. Trace the repository's existing generation workflow for comparable CRDs, then document the commands or entry points needed to produce client-go for ServiceMetadata. Done means a newcomer can reproduce the generated client-go output for the newly added CRD.

Written by the indexing model from the issue text.

Description

syntax = "proto3";

package istio.networking.v1alpha3;

option go_package = "istio.io/api/networking/v1alpha3";

import "google/protobuf/struct.proto";

//
//
//
message ServiceMetadata {
repeated SubsetMetadata subset_metadata = 1;
}

message SubsetMetadata {
string id = 1;
map<string, string> selector = 2;
string protocol = 3;
map<string, google.protobuf.Struct> filter_metadata = 4;
string delete_mark_version = 5;
}

message DubboRPCMetadata {
string protocol = 1;
repeated DubboInterface interfaces = 2;
}

message DubboInterface {
string name = 1;
string version = 2;
string group = 3;
repeated string methods = 4;
bool generic = 5;
}

Dominant language
Go
Stars
523
Forks
623
Avg merge
5d 20h
Merged PRs (30d)
4

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from istio/api

All issues in istio/api

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.