Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
*/

package v1
package v1beta1

import (
"k8s.io/apimachinery/pkg/api/meta"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
*/

package v1
package v1beta1

import (
"k8s.io/apimachinery/pkg/api/meta"
Expand Down
6 changes: 3 additions & 3 deletions apis/v1/commons.go → apis/placement/v1beta1/commons.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
*/

package v1
package v1beta1

import (
v1 "k8s.io/api/core/v1"
Expand All @@ -14,9 +14,9 @@ type ClusterState string

const (
// Unprefixed labels/annotations are reserved for end-users
// we will add a fleet.azure.com to designate these labels/annotations as official fleet labels/annotations.
// we will add a placement.karavel.io to designate these labels/annotations as official fleet labels/annotations.
// See https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#label-selector-and-annotation-conventions
fleetPrefix = "fleet.azure.com/"
fleetPrefix = "placement.karavel.io/"

// CRPTrackingLabel is the label that points to the cluster resource policy that creates a resource binding.
CRPTrackingLabel = fleetPrefix + "parentCRP"
Expand Down
4 changes: 2 additions & 2 deletions apis/v1/doc.go → apis/placement/v1beta1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Licensed under the MIT license.

// +kubebuilder:object:generate=true
// +k8s:deepcopy-gen=package,register
// +groupName=fleet.azure.com
package v1
// +groupName=placement.karavel.io
package v1beta1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Licensed under the MIT license.
*/

// +kubebuilder:object:generate=true
// +groupName=fleet.azure.com
package v1
// +groupName=placement.karavel.io
package v1beta1

import (
"k8s.io/apimachinery/pkg/runtime/schema"
Expand All @@ -14,7 +14,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "fleet.azure.com", Version: "v1"}
GroupVersion = schema.GroupVersion{Group: "placement.karavel.io", Version: "v1alpha1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
*/

package v1
package v1beta1

import (
"k8s.io/apimachinery/pkg/api/meta"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
*/

package v1
package v1beta1

import (
rbacv1 "k8s.io/api/rbac/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
*/

package v1
package v1beta1

import (
"k8s.io/apimachinery/pkg/api/meta"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
*/

package v1
package v1beta1

import (
"k8s.io/apimachinery/pkg/api/meta"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion apis/v1alpha1/clusterresourceplacement_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
// +genclient:nonNamespaced
// +kubebuilder:object:root=true
// +kubebuilder:resource:scope="Cluster",shortName=crp,categories={fleet-workload}
// +kubebuilder:storageversion
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:JSONPath=`.metadata.generation`,name="Gen",type=string
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Scheduled")].status`,name="Scheduled",type=string
Expand Down
1 change: 0 additions & 1 deletion apis/v1alpha1/internalmembercluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
)

// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:resource:scope=Namespaced,categories={fleet},shortName=imc
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
Expand Down
1 change: 0 additions & 1 deletion apis/v1alpha1/membercluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
)

// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:resource:scope=Cluster,categories={fleet},shortName=mc
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Joined")].status`,name="Joined",type=string
Expand Down
Loading