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

ci: release bundle.yaml and crds.yaml #182

Merged
merged 1 commit into from
Sep 18, 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
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
run: |
cp ./config/crd/resources/greptime.io_greptimedbclusters.yaml ./greptimedbclusters.yaml
cp ./config/crd/resources/greptime.io_greptimedbstandalones.yaml ./greptimedbstandalones.yaml
cp ./manifests/bundle.yaml ./bundle.yaml
cp ./manifests/crds.yaml ./crds.yaml

- name: Publish release
uses: softprops/action-gh-release@v2
Expand All @@ -112,3 +114,5 @@ jobs:
files: |
greptimedbclusters.yaml
greptimedbstandalones.yaml
bundle.yaml
crds.yaml
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ help: ## Display this help.
.PHONY: manifests
manifests: kustomize controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=greptimedb-operator-role crd:maxDescLen=0 webhook paths="./..." output:crd:artifacts:config=config/crd/resources
$(KUSTOMIZE) build config/crd > ${MANIFESTS_DIR}/greptimedb-operator-crd.yaml
$(KUSTOMIZE) build config/default > ${MANIFESTS_DIR}/greptimedb-operator-deployment.yaml
$(KUSTOMIZE) build config/crd > ${MANIFESTS_DIR}/crds.yaml
$(KUSTOMIZE) build config/default > ${MANIFESTS_DIR}/bundle.yaml

.PHONY: generate
generate: kustomize controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ make help
make deploy
```

The operator will deploy in `greptimedb-operator-system` namespace:
The operator will deploy in `greptimedb-admin` namespace:

```console
kubectl get pod -n greptimedb-operator-system
kubectl get pod -n greptimedb-admin
NAME READY STATUS RESTARTS AGE
greptimedb-operator-7b4496c84d-bpwbm 1/1 Running 0 76s
```
Expand Down
4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Adds namespace to all resources.
namespace: greptimedb-operator-system
namespace: greptimedb-admin

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
Expand All @@ -26,7 +26,7 @@ namePrefix:
#commonLabels:
# someName: someValue

bases:
resources:
- ../crd
- ../rbac
- ../manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: greptimedb-operator-system
name: greptimedb-admin
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -17122,13 +17122,13 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: greptimedb-operator
namespace: greptimedb-operator-system
namespace: greptimedb-admin
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: greptimedb-operator-leader-election-role
namespace: greptimedb-operator-system
namespace: greptimedb-admin
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -17332,15 +17332,15 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: greptimedb-operator-leader-election-rolebinding
namespace: greptimedb-operator-system
namespace: greptimedb-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: greptimedb-operator-leader-election-role
subjects:
- kind: ServiceAccount
name: greptimedb-operator
namespace: greptimedb-operator-system
namespace: greptimedb-admin
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -17353,15 +17353,15 @@ roleRef:
subjects:
- kind: ServiceAccount
name: greptimedb-operator
namespace: greptimedb-operator-system
namespace: greptimedb-admin
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: controller-manager
name: greptimedb-operator
namespace: greptimedb-operator-system
namespace: greptimedb-admin
spec:
replicas: 1
selector:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/e2e/setup/create-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function wait_all_service_ready() {
# Wait for greptimedb-operator to be ready.
kubectl rollout \
status deployment/greptimedb-operator \
-n greptimedb-operator-system \
-n greptimedb-admin \
--timeout="$DEFAULT_TIMEOUT"

echo -e "${GREEN}<= All services are ready.${RESET}"
Expand Down
Loading