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

Rename repo: yt-k8s-operator -> ytsaurus-k8s-operator #316

Merged
merged 1 commit into from
Jul 30, 2024
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ARG BUILD_DATE=UNSET

LABEL org.opencontainers.image.title="YTsaurus Operator for Kubernetes"
LABEL org.opencontainers.image.url="https://ytsaurus.tech"
LABEL org.opencontainers.image.source="https://github.com/ytsaurus/yt-k8s-operator/"
LABEL org.opencontainers.image.source="https://github.com/ytsaurus/ytsaurus-k8s-operator/"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.version="${VERSION}"
LABEL org.opencontainers.image.revision="${REVISION}"
Expand Down
14 changes: 7 additions & 7 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
domain: ytsaurus.tech
layout:
- go.kubebuilder.io/v3
projectName: yt-k8s-operator
repo: github.com/ytsaurus/yt-k8s-operator
projectName: ytsaurus-k8s-operator
repo: github.com/ytsaurus/ytsaurus-k8s-operator
resources:
- api:
crdVersion: v1
Expand All @@ -15,7 +15,7 @@ resources:
domain: ytsaurus.tech
group: cluster
kind: Ytsaurus
path: github.com/ytsaurus/yt-k8s-operator/api/v1
path: github.com/ytsaurus/ytsaurus-k8s-operator/api/v1
version: v1
webhooks:
defaulting: true
Expand All @@ -28,7 +28,7 @@ resources:
domain: ytsaurus.tech
group: cluster
kind: Spyt
path: github.com/ytsaurus/yt-k8s-operator/api/v1
path: github.com/ytsaurus/ytsaurus-k8s-operator/api/v1
version: v1
webhooks:
defaulting: true
Expand All @@ -41,7 +41,7 @@ resources:
domain: ytsaurus.tech
group: cluster
kind: Chyt
path: github.com/ytsaurus/yt-k8s-operator/api/v1
path: github.com/ytsaurus/ytsaurus-k8s-operator/api/v1
version: v1
webhooks:
defaulting: true
Expand All @@ -53,7 +53,7 @@ resources:
domain: ytsaurus.tech
group: cluster
kind: RemoteYtsaurus
path: github.com/ytsaurus/yt-k8s-operator/api/v1
path: github.com/ytsaurus/ytsaurus-k8s-operator/api/v1
version: v1
- api:
crdVersion: v1
Expand All @@ -62,6 +62,6 @@ resources:
domain: ytsaurus.tech
group: cluster
kind: RemoteExecNodes
path: github.com/ytsaurus/yt-k8s-operator/api/v1
path: github.com/ytsaurus/ytsaurus-k8s-operator/api/v1
version: v1
version: "3"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yt-k8s-operator
# ytsaurus-k8s-operator

YTsaurus is a distributed storage and processing platform for big data with support for MapReduce model, a distributed file system and a NoSQL key-value database.

Expand Down Expand Up @@ -26,13 +26,13 @@ kubectl apply -f config/samples/cluster_v1_demo.yaml
2. Build and push your image to the location specified by `IMG`:

```sh
make docker-build docker-push IMG=<some-registry>/yt-k8s-operator:tag
make docker-build docker-push IMG=<some-registry>/ytsaurus-k8s-operator:tag
```

3. Deploy the controller to the cluster with the image specified by `IMG`:

```sh
make deploy IMG=<some-registry>/yt-k8s-operator:tag
make deploy IMG=<some-registry>/ytsaurus-k8s-operator:tag
```

### Uninstall CRDs
Expand Down
2 changes: 1 addition & 1 deletion api/v1/ytsaurus_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook"
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"

"github.com/ytsaurus/yt-k8s-operator/pkg/consts"
"github.com/ytsaurus/ytsaurus-k8s-operator/pkg/consts"
)

// log is for logging in this package.
Expand Down
12 changes: 6 additions & 6 deletions config/certmanager/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
app.kubernetes.io/name: issuer
app.kubernetes.io/instance: selfsigned-issuer
app.kubernetes.io/component: certificate
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: selfsigned-issuer
namespace: system
Expand All @@ -23,8 +23,8 @@ metadata:
app.kubernetes.io/name: certificate
app.kubernetes.io/instance: webhook-cert
app.kubernetes.io/component: certificate
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: webhook-cert # this name should match the one appeared in kustomizeconfig.yaml
namespace: system
Expand All @@ -45,8 +45,8 @@ metadata:
app.kubernetes.io/name: certificate
app.kubernetes.io/instance: metrics-cert
app.kubernetes.io/component: certificate
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: metrics-cert # this name should match the one appeared in kustomizeconfig.yaml
namespace: system
Expand Down
4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Adds namespace to all resources.
namespace: yt-k8s-operator-system
namespace: ytsaurus-k8s-operator-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: yt-k8s-operator-
namePrefix: ytsaurus-k8s-operator-

bases:
- ../crd
Expand Down
4 changes: 2 additions & 2 deletions config/default/webhookcainjection_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
app.kubernetes.io/name: validatingwebhookconfiguration
app.kubernetes.io/instance: validating-webhook-configuration
app.kubernetes.io/component: webhook
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: validating-webhook-configuration
annotations:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/chyt_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: chyt-editor-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: chyt-editor-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/chyt_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: chyt-viewer-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: chyt-viewer-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/remoteytsaurus_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: remoteytsaurus-editor-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: remoteytsaurus-editor-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/remoteytsaurus_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: remoteytsaurus-viewer-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: remoteytsaurus-viewer-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/spyt_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: spyt-editor-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: spyt-editor-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/spyt_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: spyt-viewer-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: spyt-viewer-role
rules:
Expand Down
28 changes: 14 additions & 14 deletions config/samples/cluster_v1_cri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# https://ytsaurus.tech/docs/en/admin-guide/prepare-spec
#
# Automatically generated reference for all supported options:
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#ytsaurusspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#ytsaurusspec
#

apiVersion: cluster.ytsaurus.tech/v1
Expand Down Expand Up @@ -48,13 +48,13 @@ spec:
# tlsPeerAlternativeHostName: ...

ui:
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#uispec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#uispec
instanceCount: 1
serviceType: NodePort


discovery:
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#discoveryspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#discoveryspec
instanceCount: 1

# Make reusable loggers config with yaml anchor.
Expand Down Expand Up @@ -98,7 +98,7 @@ spec:

primaryMasters:
# https://ytsaurus.tech/docs/en/admin-guide/components#master
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#mastersspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#mastersspec
instanceCount: 1

cellTag: 1
Expand Down Expand Up @@ -134,7 +134,7 @@ spec:

httpProxies:
# https://ytsaurus.tech/docs/en/admin-guide/components#proxy
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#httpproxiesspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#httpproxiesspec
- instanceCount: 1

loggers: *loggers
Expand Down Expand Up @@ -165,7 +165,7 @@ spec:

rpcProxies:
# https://ytsaurus.tech/docs/en/admin-guide/components#proxy
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#rpcproxiesspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#rpcproxiesspec
- instanceCount: 1

loggers: *loggers
Expand Down Expand Up @@ -196,7 +196,7 @@ spec:

dataNodes:
# https://ytsaurus.tech/docs/en/admin-guide/components#data-nodes
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#datanodesspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#datanodesspec
# Could be 1, but that is still broken sometimes due to hard-coded replication_factor=2|3.
- instanceCount: 3

Expand Down Expand Up @@ -229,7 +229,7 @@ spec:

execNodes:
# https://ytsaurus.tech/docs/en/admin-guide/components#exec-nodes
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#execnodesspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#execnodesspec
- instanceCount: 1

loggers: *loggers
Expand Down Expand Up @@ -321,7 +321,7 @@ spec:

schedulers:
# https://ytsaurus.tech/docs/en/admin-guide/components#scheduler
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#schedulersspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#schedulersspec
instanceCount: 1

loggers: *loggers
Expand All @@ -342,7 +342,7 @@ spec:

controllerAgents:
# https://ytsaurus.tech/docs/en/admin-guide/components#scheduler
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#controlleragentsspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#controlleragentsspec
instanceCount: 1

loggers: *loggers
Expand All @@ -363,7 +363,7 @@ spec:

tabletNodes:
# https://ytsaurus.tech/docs/en/admin-guide/components#tablet-nodes
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#tabletnodesspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#tabletnodesspec
- instanceCount: 1

loggers: *loggers
Expand All @@ -384,7 +384,7 @@ spec:

yqlAgents:
# https://ytsaurus.tech/docs/en/admin-guide/components#yql-agent
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#yqlagentspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#yqlagentspec
instanceCount: 1

# https://ytsaurus.tech/docs/en/admin-guide/releases#query-tracker
Expand All @@ -408,7 +408,7 @@ spec:

queryTrackers:
# https://ytsaurus.tech/docs/en/admin-guide/components#yql-agent
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#queueagentspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#queueagentspec
instanceCount: 1

# https://ytsaurus.tech/docs/en/admin-guide/releases#query-tracker
Expand All @@ -432,7 +432,7 @@ spec:

strawberry:
# https://ytsaurus.tech/docs/en/admin-guide/chyt
# https://github.com/ytsaurus/yt-k8s-operator/blob/main/docs/api.md#strawberrycontrollerspec
# https://github.com/ytsaurus/ytsaurus-k8s-operator/blob/main/docs/api.md#strawberrycontrollerspec

# https://ytsaurus.tech/docs/en/admin-guide/releases#strawberry
image: ghcr.io/ytsaurus/strawberry:0.0.11
Expand Down
4 changes: 2 additions & 2 deletions config/samples/cluster_v1_spyt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ metadata:
labels:
app.kubernetes.io/name: spyt
app.kubernetes.io/instance: spyt-sample
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
name: myspyt
spec:
ytsaurus:
Expand Down
4 changes: 2 additions & 2 deletions config/webhook/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: service
app.kubernetes.io/instance: webhook-service
app.kubernetes.io/component: webhook
app.kubernetes.io/created-by: yt-k8s-operator
app.kubernetes.io/part-of: yt-k8s-operator
app.kubernetes.io/created-by: ytsaurus-k8s-operator
app.kubernetes.io/part-of: ytsaurus-k8s-operator
app.kubernetes.io/managed-by: kustomize
name: webhook-service
namespace: system
Expand Down
2 changes: 1 addition & 1 deletion controllers/chyt_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

ytv1 "github.com/ytsaurus/yt-k8s-operator/api/v1"
ytv1 "github.com/ytsaurus/ytsaurus-k8s-operator/api/v1"
)

// ChytReconciler reconciles a Chyt object
Expand Down
8 changes: 4 additions & 4 deletions controllers/chyt_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"time"

ytv1 "github.com/ytsaurus/yt-k8s-operator/api/v1"
"github.com/ytsaurus/yt-k8s-operator/pkg/apiproxy"
"github.com/ytsaurus/yt-k8s-operator/pkg/components"
"github.com/ytsaurus/yt-k8s-operator/pkg/ytconfig"
ytv1 "github.com/ytsaurus/ytsaurus-k8s-operator/api/v1"
"github.com/ytsaurus/ytsaurus-k8s-operator/pkg/apiproxy"
"github.com/ytsaurus/ytsaurus-k8s-operator/pkg/components"
"github.com/ytsaurus/ytsaurus-k8s-operator/pkg/ytconfig"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/log"
)
Expand Down
Loading
Loading