Skip to content

Commit 1f72354

Browse files
committed
feat: change MachineAccount CRD scope from Namespaced to Cluster
1 parent 6f02eac commit 1f72354

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/crd/bases/iam/iam.miloapis.com_machineaccounts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
listKind: MachineAccountList
1313
plural: machineaccounts
1414
singular: machineaccount
15-
scope: Namespaced
15+
scope: Cluster
1616
versions:
1717
- additionalPrinterColumns:
1818
- jsonPath: .status.email

pkg/apis/iam/v1alpha1/machineaccount_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
// +kubebuilder:printcolumn:name="Access Token Type",type="string",JSONPath=".spec.accessTokenType"
1616
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
1717
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
18-
// +kubebuilder:resource:scope=Namespaced
18+
// +kubebuilder:resource:scope=Cluster
1919
type MachineAccount struct {
2020
metav1.TypeMeta `json:",inline"`
2121
metav1.ObjectMeta `json:"metadata,omitempty"`

0 commit comments

Comments
 (0)