Skip to content

Commit

Permalink
Fix deprecated markers across codebase
Browse files Browse the repository at this point in the history
Signed-off-by: killianmuldoon <[email protected]>
  • Loading branch information
killianmuldoon committed Sep 26, 2023
1 parent c92270a commit f5998a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions controllers/vspherecluster_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ import (

// legacyIdentityFinalizer is deprecated and should be used only while upgrading the cluster
// from v1alpha3(v.0.7).
//
// Deprecated: legacyIdentityFinalizer will be removed in a future release.
const legacyIdentityFinalizer string = "identity/infrastructure.cluster.x-k8s.io"

type clusterReconciler struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/services/network/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
SystemNamespace = "kube-system"

// legacyDefaultNetworkLabel was the label used for default networks.
// This is deprecated and is introduced only for smoother transitions.
// This will be released in a future release.
//
// Deprecated: legacyDefaultNetworkLabel will be removed in a future release.
legacyDefaultNetworkLabel = "capw.vmware.com/is-default-network"
)
2 changes: 2 additions & 0 deletions pkg/services/vmoperator/control_plane_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const (
// legacyClusterSelectorKey and legacyNodeSelectorKey are added for backward compatibility.
// These will be removed in the future release.
// Please refer to the issue above for deprecation process.
//
// Deprecated: legacyClusterSelectorKey will be removed in a future release.
legacyClusterSelectorKey = "capw.vmware.com/cluster.name"
legacyNodeSelectorKey = "capw.vmware.com/cluster.role"
)
Expand Down

0 comments on commit f5998a9

Please sign in to comment.