Skip to content

Commit

Permalink
fix charts
Browse files Browse the repository at this point in the history
  • Loading branch information
freeznet committed Jan 24, 2025
1 parent e515282 commit c97a32a
Show file tree
Hide file tree
Showing 8 changed files with 223 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/chart-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ jobs:
diff config/crd/bases/resource.streamnative.io_pulsarsources.yaml charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarsources.yaml && \
diff config/crd/bases/resource.streamnative.io_pulsarpackages.yaml charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarpackages.yaml && \
diff config/crd/bases/resource.streamnative.io_pulsartopics.yaml charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsartopics.yaml && \
diff config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml
diff config/crd/bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml charts/pulsar-resources-operator/crds/resource.streamnative.io_pulsarnsisolationpolicies.yaml && \
diff config/crd/bases/resource.streamnative.io_streamnativecloudconnections.yaml charts/pulsar-resources-operator/crds/resource.streamnative.io_streamnativecloudconnections.yaml && \
diff config/crd/bases/resource.streamnative.io_computeworkspaces.yaml charts/pulsar-resources-operator/crds/resource.streamnative.io_computeworkspaces.yaml && \
diff config/crd/bases/resource.streamnative.io_computeflinkdeployments.yaml charts/pulsar-resources-operator/crds/resource.streamnative.io_computeflinkdeployments.yaml
- name: Set up Helm
uses: azure/setup-helm@v3
Expand Down
3 changes: 3 additions & 0 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ resources:
- bases/resource.streamnative.io_pulsarsinks.yaml
- bases/resource.streamnative.io_pulsarsources.yaml
- bases/resource.streamnative.io_pulsarnsisolationpolicies.yaml
- bases/resource.streamnative.io_streamnativecloudconnections.yaml
- bases/resource.streamnative.io_computeworkspaces.yaml
- bases/resource.streamnative.io_computeflinkdeployments.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
Expand Down
38 changes: 38 additions & 0 deletions config/rbac/computeflinkdeployment_editor_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# permissions for end users to edit pulsartopics.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: computeflinkdeployment-editor-role
rules:
- apiGroups:
- resource.streamnative.io
resources:
- computeflinkdeployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- resource.streamnative.io
resources:
- computeflinkdeployments/status
verbs:
- get
34 changes: 34 additions & 0 deletions config/rbac/computeflinkdeployment_viewer_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# permissions for end users to edit pulsartopics.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: computeflinkdeployment-viewer-role
rules:
- apiGroups:
- resource.streamnative.io
resources:
- computeflinkdeployments
verbs:
- get
- list
- watch
- apiGroups:
- resource.streamnative.io
resources:
- computeflinkdeployments/status
verbs:
- get
38 changes: 38 additions & 0 deletions config/rbac/computeworkspace_editor_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# permissions for end users to edit pulsartopics.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: computeworkspace-editor-role
rules:
- apiGroups:
- resource.streamnative.io
resources:
- computeworkspaces
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- resource.streamnative.io
resources:
- computeworkspaces/status
verbs:
- get
34 changes: 34 additions & 0 deletions config/rbac/computeworkspace_viewer_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# permissions for end users to edit pulsartopics.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: computeworkspace-viewer-role
rules:
- apiGroups:
- resource.streamnative.io
resources:
- computeworkspaces
verbs:
- get
- list
- watch
- apiGroups:
- resource.streamnative.io
resources:
- computeworkspaces/status
verbs:
- get
38 changes: 38 additions & 0 deletions config/rbac/streamnativecloudconnection_editor_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# permissions for end users to edit pulsartopics.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: streamnativecloudconnection-editor-role
rules:
- apiGroups:
- resource.streamnative.io
resources:
- streamnativecloudconnections
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- resource.streamnative.io
resources:
- streamnativecloudconnections/status
verbs:
- get
34 changes: 34 additions & 0 deletions config/rbac/streamnativecloudconnection_viewer_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# permissions for end users to edit pulsartopics.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: streamnativecloudconnection-viewer-role
rules:
- apiGroups:
- resource.streamnative.io
resources:
- streamnativecloudconnections
verbs:
- get
- list
- watch
- apiGroups:
- resource.streamnative.io
resources:
- streamnativecloudconnections/status
verbs:
- get

0 comments on commit c97a32a

Please sign in to comment.