Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NET-6664 Specify cluster scope for MeshGateway CRD #3236

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions charts/consul/templates/crd-meshgateways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ spec:
kind: MeshGateway
listKind: MeshGatewayList
plural: meshgateways
shortNames:
- mesh-gateway
singular: meshgateway
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- description: The sync status of the resource with Consul
Expand Down
2 changes: 1 addition & 1 deletion control-plane/api/mesh/v2beta1/mesh_gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func init() {
// +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=".status.conditions[?(@.type==\"Synced\")].status",description="The sync status of the resource with Consul"
// +kubebuilder:printcolumn:name="Last Synced",type="date",JSONPath=".status.lastSyncedTime",description="The last successful synced time of the resource with Consul"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the resource"
// +kubebuilder:resource:shortName="mesh-gateway"
// +kubebuilder:resource:scope="Cluster"
type MeshGateway struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ spec:
kind: MeshGateway
listKind: MeshGatewayList
plural: meshgateways
shortNames:
- mesh-gateway
singular: meshgateway
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- description: The sync status of the resource with Consul
Expand Down