Fix name-too-long problem during deployment:
Some checks failed
DevStar DevContainer Operator CI Pipeline - main branch / build-and-push-devstar-devcontainer-operator (push) Failing after 6s

The Service "devstar-devcontainer-kubebuilder-scaffold-controller-manager-metrics-service" is invalid: metadata.name: Invalid value: "devstar-devcontainer-kubebuilder-scaffold-controller-manager-metrics-service": must be no more than 63 characters
make: *** [Makefile:140: deploy] Error 1
This commit is contained in:
Mingchen Dai
2024-09-30 08:19:26 +00:00
parent 4c886ea321
commit 72bd77fca3
17 changed files with 26 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
# devstar-devcontainer-kubebuilder-scaffold
# devcontainer-operator
DevStar DevContainer CRD 脚手架工程
@@ -43,7 +43,7 @@ kubectl get sc
**Build and push your image to the location specified by `IMG`:**
```sh
make docker-build docker-push IMG=<some-registry>/devstar-devcontainer-kubebuilder-scaffold:tag
make docker-build docker-push IMG=<some-registry>/devcontainer-operator:tag
```
**NOTE:** This image ought to be published in the personal registry you specified.
@@ -59,7 +59,7 @@ make install
**Deploy the Manager to the cluster with the image specified by `IMG`:**
```sh
make deploy IMG=<some-registry>/devstar-devcontainer-kubebuilder-scaffold:tag
make deploy IMG=<some-registry>/devcontainer-operator:tag
```
> **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin
@@ -100,7 +100,7 @@ Following are the steps to build the installer and distribute this project to us
1. Build the installer for the image built and published in the registry:
```sh
make build-installer IMG=<some-registry>/devstar-devcontainer-kubebuilder-scaffold:tag
make build-installer IMG=<some-registry>/devcontainer-operator:tag
```
NOTE: The makefile target mentioned above generates an 'install.yaml'
@@ -113,7 +113,7 @@ its dependencies.
Users can just run kubectl apply -f <URL for YAML BUNDLE> to install the project, i.e.:
```sh
kubectl apply -f https://raw.githubusercontent.com/<org>/devstar-devcontainer-kubebuilder-scaffold/<tag or branch>/dist/install.yaml
kubectl apply -f https://raw.githubusercontent.com/<org>/devcontainer-operator/<tag or branch>/dist/install.yaml
```
## Contributing