-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Operator Name to Ceph S3 Operator (#31)
* change operator github address to snapp-cab/ceph-s3-operator * change s3-operator name to ceph-s3-operator * use snapp-cab in manager kustomization * revert to snapp-incubator * fix helm chart * fix names in csv and readme * fix spc35774 docker test image * change logo * rename csv file
- Loading branch information
Showing
90 changed files
with
387 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,10 +58,10 @@ jobs: | |
- name: Chart | Push | ||
uses: appany/[email protected] | ||
with: | ||
name: s3-operator | ||
name: ceph-s3-operator | ||
repository: ${{ github.repository }}/helm-charts | ||
tag: ${{ github.ref_name }} | ||
path: charts/s3-operator # Default charts/{name} | ||
path: charts/ceph-s3-operator # Default charts/{name} | ||
registry: ghcr.io | ||
registry_username: ${{ github.repository_owner }} | ||
registry_password: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,8 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL) | |
# This variable is used to construct full image tags for bundle and catalog images. | ||
# | ||
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both | ||
# snappcloud.io/s3-operator-bundle:$VERSION and snappcloud.io/s3-operator-catalog:$VERSION. | ||
IMAGE_TAG_BASE ?= snappcloud.io/s3-operator | ||
# snappcloud.io/ceph-s3-operator-bundle:$VERSION and snappcloud.io/ceph-s3-operator-catalog:$VERSION. | ||
IMAGE_TAG_BASE ?= snappcloud.io/ceph-s3-operator | ||
|
||
# BUNDLE_IMG defines the image:tag used for the bundle. | ||
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>) | ||
|
@@ -118,7 +118,7 @@ e2e-test: docker-build # Run e2e tests | |
.PHONY: e2e-test-local | ||
e2e-test-local: docker-build # Run e2e tests for local development purposes | ||
kind load docker-image $(IMG) | ||
kubectl delete pod -n s3-operator-system -l control-plane=controller-manager | ||
kubectl delete pod -n ceph-s3-operator-system -l control-plane=controller-manager | ||
kubectl kuttl test --start-kind=false | ||
|
||
##@ Build | ||
|
@@ -180,7 +180,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified | |
|
||
.PHONY: deploy | ||
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. | ||
cd config/manager && $(KUSTOMIZE) edit set image ghcr.io/snapp-incubator/s3-operator=${IMG} | ||
cd config/manager && $(KUSTOMIZE) edit set image ghcr.io/snapp-incubator/ceph-s3-operator=${IMG} | ||
$(KUSTOMIZE) build config/default | kubectl apply -f - | ||
|
||
.PHONY: undeploy | ||
|
@@ -189,7 +189,7 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi | |
|
||
.PHONY: deploy-for-e2e-test | ||
deploy-for-e2e-test: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config customized for e2e tests. | ||
cd config/manager && $(KUSTOMIZE) edit set image ghcr.io/snapp-incubator/s3-operator=${IMG} | ||
cd config/manager && $(KUSTOMIZE) edit set image ghcr.io/snapp-incubator/ceph-s3-operator=${IMG} | ||
$(KUSTOMIZE) build config/test | kubectl apply -f - | ||
|
||
##@ Build Dependencies | ||
|
@@ -232,7 +232,7 @@ $(ENVTEST): $(LOCALBIN) | |
.PHONY: bundle | ||
bundle: manifests kustomize ## Generate bundle manifests and metadata, then validate generated files. | ||
operator-sdk generate kustomize manifests -q | ||
cd config/manager && $(KUSTOMIZE) edit set image ghcr.io/snapp-incubator/s3-operator=$(IMG) | ||
cd config/manager && $(KUSTOMIZE) edit set image ghcr.io/snapp-incubator/ceph-s3-operator=$(IMG) | ||
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle $(BUNDLE_GEN_FLAGS) | ||
operator-sdk bundle validate ./bundle | ||
|
||
|
@@ -324,4 +324,4 @@ $(HELMIFY): $(LOCALBIN) | |
test -s $(LOCALBIN)/helmify || GOBIN=$(LOCALBIN) go install github.com/arttor/helmify/cmd/[email protected] | ||
|
||
helm: manifests kustomize helmify | ||
$(KUSTOMIZE) build config/default | $(HELMIFY) deploy/charts/s3-operator | ||
$(KUSTOMIZE) build config/default | $(HELMIFY) charts/ceph-s3-operator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
charts/ceph-s3-operator/templates/clusterresourcequota-updater-binding-rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "ceph-s3-operator.fullname" . }}-clusterresourcequota-updater-binding | ||
labels: | ||
{{- include "ceph-s3-operator.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: '{{ include "ceph-s3-operator.fullname" . }}-clusterresourcequota-updater' | ||
subjects: | ||
- kind: ServiceAccount | ||
name: '{{ include "ceph-s3-operator.fullname" . }}-controller-manager' | ||
namespace: '{{ .Release.Namespace }}' |
4 changes: 2 additions & 2 deletions
4
...es/clusterresourcequota-updater-rbac.yaml → ...es/clusterresourcequota-updater-rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../templates/controller-manager-config.yaml → .../templates/controller-manager-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "s3-operator.fullname" . }}-controller-manager-config | ||
name: {{ include "ceph-s3-operator.fullname" . }}-controller-manager-config | ||
labels: | ||
{{- include "s3-operator.labels" . | nindent 4 }} | ||
{{- include "ceph-s3-operator.labels" . | nindent 4 }} | ||
stringData: | ||
config.yaml: {{ required "controllerManagerConfig.configYaml is required" .Values.controllerManagerConfig.configYaml | ||
| quote }} |
Oops, something went wrong.