Skip to content

Commit

Permalink
NET-6664 Specify cluster scope for MeshGateway CRD (#3236)
Browse files Browse the repository at this point in the history
Specify cluster scope for MeshGateway CRD
  • Loading branch information
nathancoleman authored Nov 21, 2023
1 parent bf12fb9 commit 6446f42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
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

0 comments on commit 6446f42

Please sign in to comment.