Skip to content

Commit

Permalink
chore(scheduler): Rename lfc-scheduler to scheduler (#91)
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Ranjan Singh <rajivperfect007@gmail.com>
Signed-off-by: Thomas Schuetz <thomas.schuetz@dynatrace.com>
  • Loading branch information
iamrajiv authored and Thomas Schuetz committed Oct 4, 2022
1 parent ca14215 commit bfa37ae
Show file tree
Hide file tree
Showing 29 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ env:
SHOULD_RUN_FUNCTIONS_RUNTIME_SVC: "false"

LFC_SCHEDULER_SVC_ARTIFACT_PREFIX: "LFC_SCHEDULER_SVC"
LFC_SCHEDULER_SVC_ARTIFACT: "lfc-scheduler"
LFC_SCHEDULER_SVC_FOLDER: "lfc-scheduler/"
LFC_SCHEDULER_SVC_ARTIFACT: "scheduler"
LFC_SCHEDULER_SVC_FOLDER: "scheduler/"

OPERATOR_SVC_ARTIFACT_PREFIX: "OPERATOR_SVC"
OPERATOR_SVC_ARTIFACT: "keptn-lifecycle-operator"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: |
cd functions-runtime
make build-and-push-image TAG=${{ needs.release-please.outputs.tag_name }}
cd ../lfc-scheduler
cd ../scheduler
go mod tidy
make build-and-push-image TAG=${{ needs.release-please.outputs.tag_name }}
make release-manifests TAG=${{ needs.release-please.outputs.tag_name }}
Expand All @@ -55,7 +55,7 @@ jobs:
make build-and-push-image TAG=${{ needs.release-please.outputs.tag_name }}
make controller-gen release-manifests TAG=${{ needs.release-please.outputs.tag_name }}
cd ..
cat lfc-scheduler/config/rendered/release.yaml operator/config/rendered/release.yaml > manifest.yaml
cat scheduler/config/rendered/release.yaml operator/config/rendered/release.yaml > manifest.yaml
- name: Attach release assets
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ The [GitHub CLI](https://cli.github.com/) can be used to download the manifests
gh run list --repo keptn-sandbox/lifecycle-controller # find the id of a run
gh run download 3152895000 --repo keptn-sandbox/lifecycle-controller # download the artifacts
kubectl apply -f ./keptn-lifecycle-operator-manifest/release.yaml # install the operator
kubectl apply -f ./lfc-scheduler-manifest/release.yaml # install the scheduler
kubectl apply -f ./scheduler-manifest/release.yaml # install the scheduler
```

Instead, if you want to build and deploy the operator into your cluster directly from the code, you can type:
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lfc-scheduler/Dockerfile → scheduler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FROM golang:1.18.0 as builder
ARG ARCH
ARG RELEASE_VERSION

WORKDIR /lfc-scheduler
WORKDIR /scheduler

COPY go.mod go.sum Makefile ./

Expand All @@ -35,7 +35,7 @@ LABEL org.opencontainers.image.source="https://github.com/keptn-sandbox/lifecycl
org.opencontainers.image.vendor="Keptn" \
org.opencontainers.image.licenses="Apache-2.0"

COPY --from=builder /lfc-scheduler/bin/kube-scheduler /bin/kube-scheduler
COPY --from=builder /scheduler/bin/kube-scheduler /bin/kube-scheduler
USER 65532:65532

WORKDIR /bin
Expand Down
2 changes: 1 addition & 1 deletion lfc-scheduler/Makefile → scheduler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ LOCAL_CONTROLLER_IMAGE=controller:latest
# into.
RELEASE_REGISTRY?=ghcr.io/keptn-sandbox
RELEASE_VERSION?=$(shell date +%Y%m%d%s)-v0.24.3#$(shell git describe --tags --match "v*")
RELEASE_IMAGE:=lfc-scheduler:$(TAG)
RELEASE_IMAGE:=scheduler:$(TAG)
RELEASE_CONTROLLER_IMAGE:=controller:$(RELEASE_VERSION)

# VERSION is the scheduler's version
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package main

import (
"github.com/keptn-sandbox/lifecycle-controller/lfc-scheduler/pkg/klcpermit"
"github.com/keptn-sandbox/lifecycle-controller/scheduler/pkg/klcpermit"
"k8s.io/apimachinery/pkg/util/rand"
"k8s.io/component-base/cli"
"k8s.io/kubernetes/cmd/kube-scheduler/app"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lfc-scheduler/go.mod → scheduler/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/keptn-sandbox/lifecycle-controller/lfc-scheduler
module github.com/keptn-sandbox/lifecycle-controller/scheduler

go 1.18

Expand Down Expand Up @@ -111,7 +111,7 @@ require (
)

replace (
github.com/keptn-sandbox/lifecycle-controller/lfc-scheduler/pkg/klcpermit => /pkg/klcpermit
github.com/keptn-sandbox/lifecycle-controller/scheduler/pkg/klcpermit => /pkg/klcpermit
k8s.io/api => k8s.io/api v0.24.3
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.24.3
k8s.io/apimachinery => k8s.io/apimachinery v0.24.3
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: klfc-scheduler
newName: ghcr.io/keptn-sandbox/lfc-scheduler
newName: ghcr.io/keptn-sandbox/scheduler
newTag: latest
File renamed without changes.
File renamed without changes.

0 comments on commit bfa37ae

Please sign in to comment.