Skip to content

Add support for Protobuf Enums into Operator CRDs#32469

Merged
tigrato merged 3 commits intomasterfrom
tigrato/crds-emnums
Sep 26, 2023
Merged

Add support for Protobuf Enums into Operator CRDs#32469
tigrato merged 3 commits intomasterfrom
tigrato/crds-emnums

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Sep 25, 2023

This PR marks the Teleport enum fields as integer or string values. The integer option is to ensure we are backwards compatibile with previously installed CRDs.

Users can now represent their roles in Kubernetes custom resources and refer enum fields as strings while their protobuf wire type is int32.

Fixes #29686

This PR marks the Teleport enum fields as integer or string values. The
integer option is to ensure we are backwards compatibile with
previously installed CRDs.

Users can now represent their roles in Kubernetes custom resources and
refer enum fields as strings while their protobuf wire type is int32.

Fixes #29686
@tigrato tigrato force-pushed the tigrato/crds-emnums branch from e535665 to fd0d45f Compare September 25, 2023 15:33
@tigrato tigrato added this pull request to the merge queue Sep 26, 2023
Merged via the queue into master with commit 9a556d8 Sep 26, 2023
@tigrato tigrato deleted the tigrato/crds-emnums branch September 26, 2023 14:03
@public-teleport-github-review-bot
Copy link
Copy Markdown

@tigrato See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Create PR
branch/v14 Create PR

tigrato added a commit that referenced this pull request Sep 26, 2023
* Add support for Protobuf Enums into Operator CRDs

This PR marks the Teleport enum fields as integer or string values. The
integer option is to ensure we are backwards compatibile with
previously installed CRDs.

Users can now represent their roles in Kubernetes custom resources and
refer enum fields as strings while their protobuf wire type is int32.

Fixes #29686

* add tests

* fix unit test
github-merge-queue Bot pushed a commit that referenced this pull request Sep 26, 2023
* Add support for Protobuf Enums into Operator CRDs (#32469)

* Add support for Protobuf Enums into Operator CRDs

This PR marks the Teleport enum fields as integer or string values. The
integer option is to ensure we are backwards compatibile with
previously installed CRDs.

Users can now represent their roles in Kubernetes custom resources and
refer enum fields as strings while their protobuf wire type is int32.

Fixes #29686

* add tests

* fix unit test

* fix conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Teleport Operator CRD "TeleportRole.resources.teleport.dev" - enums are set as "int32"

4 participants