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

Change domain to k0rdent.mirantis.com #878

Merged
merged 1 commit into from
Jan 13, 2025
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
50 changes: 25 additions & 25 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is used to track the info used to scaffold your project
# and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: hmc.mirantis.com
domain: k0rdent.mirantis.com
layout:
- go.kubebuilder.io/v4
projectName: hmc
Expand All @@ -12,24 +12,24 @@ resources:
crdVersion: v1
namespaced: true
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: ClusterDeployment
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: Management
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: Release
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
Expand All @@ -40,76 +40,76 @@ resources:
crdVersion: v1
namespaced: true
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: ClusterTemplate
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: ProviderTemplate
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: ServiceTemplate
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: AccessManagement
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: ClusterTemplateChain
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: ServiceTemplateChain
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: Credential
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: MultiClusterService
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: hmc.mirantis.com
group: hmc.mirantis.com
domain: k0rdent.mirantis.com
group: k0rdent.mirantis.com
kind: Backup
path: github.com/K0rdent/kcm/api/v1alpha1
version: v1alpha1
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ By default, the Hybrid Container Cloud is being deployed with the following
configuration:

```yaml
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: Management
metadata:
name: hmc
Expand Down Expand Up @@ -139,7 +139,7 @@ additional notes on Hosted control plane in 2A Docs, see
> For details, see [Dryrun](#dry-run).

```yaml
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterDeployment
metadata:
name: <cluster-name>
Expand Down Expand Up @@ -190,7 +190,7 @@ corresponding `Template` status) and automatically marked as `dryRun`.
Here is an example of the `ClusterDeployment` object with default configuration:

```yaml
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterDeployment
metadata:
name: <cluster-name>
Expand Down Expand Up @@ -229,7 +229,7 @@ flag to proceed with the deployment.
Here is an example of a `ClusterDeployment` object that passed the validation:

```yaml
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterDeployment
metadata:
name: aws-standalone
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/backup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
const (
// Name to label most of the HMC-related components.
// Mostly utilized by the backup feature.
GenericComponentLabelName = "hmc.mirantis.com/component"
GenericComponentLabelName = "k0rdent.mirantis.com/component"
// Component label value for the HMC-related components.
GenericComponentLabelValueHMC = "hmc"
)
Expand Down
6 changes: 3 additions & 3 deletions api/v1alpha1/clusterdeployment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import (
)

const (
BlockingFinalizer = "hmc.mirantis.com/cleanup"
ClusterDeploymentFinalizer = "hmc.mirantis.com/cluster-deployment"
BlockingFinalizer = "k0rdent.mirantis.com/cleanup"
ClusterDeploymentFinalizer = "k0rdent.mirantis.com/cluster-deployment"

FluxHelmChartNameKey = "helm.toolkit.fluxcd.io/name"
FluxHelmChartNamespaceKey = "helm.toolkit.fluxcd.io/namespace"

HMCManagedLabelKey = "hmc.mirantis.com/managed"
HMCManagedLabelKey = "k0rdent.mirantis.com/managed"
HMCManagedLabelValue = "true"

ClusterNameLabelKey = "cluster.x-k8s.io/cluster-name"
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/clustertemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
// Denotes the clustertemplate resource Kind.
ClusterTemplateKind = "ClusterTemplate"
// ChartAnnotationKubernetesVersion is an annotation containing the Kubernetes exact version in the SemVer format associated with a ClusterTemplate.
ChartAnnotationKubernetesVersion = "hmc.mirantis.com/k8s-version"
ChartAnnotationKubernetesVersion = "k0rdent.mirantis.com/k8s-version"
)

// ClusterTemplateSpec defines the desired state of ClusterTemplate
Expand Down
6 changes: 3 additions & 3 deletions api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package v1alpha1 contains API Schema definitions for the hmc.mirantis.com v1alpha1 API group
// Package v1alpha1 contains API Schema definitions for the k0rdent.mirantis.com v1alpha1 API group
// +kubebuilder:object:generate=true
// +groupName=hmc.mirantis.com
// +groupName=k0rdent.mirantis.com
package v1alpha1

import (
Expand All @@ -24,7 +24,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "hmc.mirantis.com", Version: "v1alpha1"}
GroupVersion = schema.GroupVersion{Group: "k0rdent.mirantis.com", Version: "v1alpha1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/management_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (

ManagementKind = "Management"
ManagementName = "hmc"
ManagementFinalizer = "hmc.mirantis.com/management"
ManagementFinalizer = "k0rdent.mirantis.com/management"
)

// ManagementSpec defines the desired state of Management
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/multiclusterservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

const (
// MultiClusterServiceFinalizer is finalizer applied to MultiClusterService objects.
MultiClusterServiceFinalizer = "hmc.mirantis.com/multicluster-service"
MultiClusterServiceFinalizer = "k0rdent.mirantis.com/multicluster-service"
// MultiClusterServiceKind is the string representation of a MultiClusterServiceKind.
MultiClusterServiceKind = "MultiClusterService"

Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/servicetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
// Denotes the servicetemplate resource Kind.
ServiceTemplateKind = "ServiceTemplate"
// ChartAnnotationKubernetesConstraint is an annotation containing the Kubernetes constrained version in the SemVer format associated with a ServiceTemplate.
ChartAnnotationKubernetesConstraint = "hmc.mirantis.com/k8s-version-constraint"
ChartAnnotationKubernetesConstraint = "k0rdent.mirantis.com/k8s-version-constraint"
)

// ServiceTemplateSpec defines the desired state of ServiceTemplate
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func main() {
},
HealthProbeBindAddress: probeAddr,
LeaderElection: true,
LeaderElectionID: "31c555b4.hmc.mirantis.com",
LeaderElectionID: "31c555b4.k0rdent.mirantis.com",
// LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
// when the Manager ends. This requires the binary to immediately end when the
// Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
Expand Down
4 changes: 2 additions & 2 deletions config/dev/adopted-clusterdeployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterDeployment
metadata:
name: adopted-dev
Expand All @@ -13,4 +13,4 @@ spec:
namespace: kyverno
- template: ingress-nginx-4-11-0
name: ingress-nginx
namespace: ingress-nginx
namespace: ingress-nginx
4 changes: 2 additions & 2 deletions config/dev/adopted-credentials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: ${NAMESPACE}
type: Opaque
---
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: Credential
metadata:
name: adopted-cluster-cred
Expand All @@ -18,4 +18,4 @@ spec:
apiVersion: v1
kind: Secret
name: adopted-cluster-kubeconf
namespace: ${NAMESPACE}
namespace: ${NAMESPACE}
2 changes: 1 addition & 1 deletion config/dev/aks-clusterdeployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterDeployment
metadata:
name: azure-aks-dev
Expand Down
2 changes: 1 addition & 1 deletion config/dev/aks-credentials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stringData:
AZURE_TENANT_ID: "${AZURE_TENANT_ID}"
type: Opaque
---
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: Credential
metadata:
name: azure-aks-credential
Expand Down
2 changes: 1 addition & 1 deletion config/dev/aws-cloud-nuke.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# Usage:
# - 'CLUSTER_NAME=foo make dev-aws-nuke' will nuke resources affiliated with an AWS cluster named 'foo'
# Check cluster names with 'kubectl get clusterdeployment.hmc.mirantis.com -n hmc-system'
# Check cluster names with 'kubectl get clusterdeployment.k0rdent.mirantis.com -n hmc-system'

ACM:
include:
Expand Down
4 changes: 2 additions & 2 deletions config/dev/aws-clusterdeployment.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterDeployment
metadata:
name: aws-dev
namespace: ${NAMESPACE}
labels:
hmc.mirantis.com/component: hmc
k0rdent.mirantis.com/component: hmc
spec:
template: aws-standalone-cp-0-0-4
credential: aws-cluster-identity-cred
Expand Down
8 changes: 4 additions & 4 deletions config/dev/aws-credentials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: aws-cluster-identity
namespace: ${NAMESPACE}
labels:
hmc.mirantis.com/component: hmc
k0rdent.mirantis.com/component: hmc
spec:
secretRef: aws-cluster-identity-secret
allowedNamespaces:
Expand All @@ -18,20 +18,20 @@ metadata:
name: aws-cluster-identity-secret
namespace: ${NAMESPACE}
labels:
hmc.mirantis.com/component: hmc
k0rdent.mirantis.com/component: hmc
type: Opaque
stringData:
AccessKeyID: ${AWS_ACCESS_KEY_ID}
SecretAccessKey: ${AWS_SECRET_ACCESS_KEY}
SessionToken: ${AWS_SESSION_TOKEN}
---
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: Credential
metadata:
name: aws-cluster-identity-cred
namespace: ${NAMESPACE}
labels:
hmc.mirantis.com/component: hmc
k0rdent.mirantis.com/component: hmc
spec:
description: AWS credentials
identityRef:
Expand Down
2 changes: 1 addition & 1 deletion config/dev/azure-cloud-nuke.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Usage:
# 'CLUSTER_NAME=foo AZURE_REGION=westus3 AZURE_TENANT_ID=12345 make dev-azure-nuke'
#
# Check cluster names with 'kubectl get clusterdeployment.hmc.mirantis.com -n hmc-system'
# Check cluster names with 'kubectl get clusterdeployment.k0rdent.mirantis.com -n hmc-system'

regions:
- global
Expand Down
4 changes: 2 additions & 2 deletions config/dev/azure-clusterdeployment.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: hmc.mirantis.com/v1alpha1
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterDeployment
metadata:
name: azure-dev
namespace: ${NAMESPACE}
labels:
hmc.mirantis.com/component: hmc
k0rdent.mirantis.com/component: hmc
spec:
template: azure-standalone-cp-0-0-4
credential: azure-cluster-identity-cred
Expand Down
Loading
Loading