Skip to content

[pkg.protos] Enum support for proto facade generation - #1167

Merged
manugarg merged 2 commits into
mainfrom
protofacade_enum
Nov 2, 2025
Merged

manugarg merged 2 commits into
mainfrom
protofacade_enum

Conversation

@manugarg

Copy link
Copy Markdown
Contributor
  • Add enum support to our proto facade generation tool
  • Using this new support expose alerting protobuf as well

Example usage:

package xcloudprober

import (
	"github.com/cloudprober/cloudprober/pkg/protos/alerting"
	"google.golang.org/protobuf/proto"
)

func NewAlertConf() []*alerting.AlertConf {
	return []*alerting.AlertConf{
		{
			Name:     "test-alert",
			Severity: alerting.AlertConf_CRITICAL,
			Notify: &alerting.NotifyConfig{
				Email: &alerting.Email{
					From:       "[email protected]",
					SmtpServer: "smtp.example.com",
					To:         []string{"[email protected]"},
				},
			},
		},
	}
}

@manugarg manugarg changed the title [pkg.protos] Add enum support to proto facade generation and expose alerting protos [pkg.protos] Enum support to proto facade generation and expose alerting protos Oct 31, 2025
@manugarg manugarg changed the title [pkg.protos] Enum support to proto facade generation and expose alerting protos [pkg.protos] Enum support for proto facade generation and alerting protos Oct 31, 2025
@manugarg manugarg changed the title [pkg.protos] Enum support for proto facade generation and alerting protos [pkg.protos] Enum support for proto facade generation Oct 31, 2025
@manugarg manugarg added this to the v0.14.2 milestone Oct 31, 2025
@manugarg
manugarg merged commit a4356ce into main Nov 2, 2025
@manugarg
manugarg deleted the protofacade_enum branch November 2, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant