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

Dev #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
GOLANG_VERSION: ${{ vars.GOLANG_VERSION }}
GOPROXY: ${{ secrets.GOPROXY }}
SOURCE_REPO: ${{ secrets.SOURCE_REPO }}
SOURCE_REPO_TAG: ${{ vars.SOURCE_REPO_TAG }}

on:
pull_request:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
GOLANG_VERSION: ${{ vars.GOLANG_VERSION }}
GOPROXY: ${{ secrets.GOPROXY }}
SOURCE_REPO: ${{ secrets.SOURCE_REPO }}
SOURCE_REPO_TAG: ${{ vars.SOURCE_REPO_TAG }}

on:
push:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
GOLANG_VERSION: ${{ vars.GOLANG_VERSION }}
GOPROXY: ${{ secrets.GOPROXY }}
SOURCE_REPO: ${{ secrets.SOURCE_REPO }}
SOURCE_REPO_TAG: ${{ vars.SOURCE_REPO_TAG }}

on:
workflow_dispatch:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
MODULES_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }}
MODULES_READ_REGISTRY_PASSWORD: ${{ secrets.PROD_MODULES_READ_REGISTRY_PASSWORD }}
MODULES_MODULE_TAG: ${{ github.event.inputs.tag }}
SOURCE_REPO_TAG: ${{ vars.SOURCE_REPO_TAG }}

on:
workflow_dispatch:
Expand Down
Binary file added charts/deckhouse_lib_helm-1.22.0.tgz
Binary file not shown.
1,012 changes: 1,012 additions & 0 deletions crds/huawei-csi-snapshot-crd-v1.yaml

Large diffs are not rendered by default.

115 changes: 115 additions & 0 deletions crds/huaweistorageconnection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: huaweistorageconnections.storage.deckhouse.io
labels:
heritage: deckhouse
module: csi-ceph
spec:
group: storage.deckhouse.io
scope: Cluster
names:
plural: huaweistorageconnections
singular: huaweistorageconnection
kind: HuaweiStorageConnection
preserveUnknownFields: false
versions:
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
description: |
Huawei storage connection parameters.
required:
- spec
properties:
spec:
type: object
required:
- storageType
- pools
- urls
- login
- password
- protocol
- maxClientThreads
properties:
storageType:
type: string
x-kubernetes-validations:
- rule: self == oldSelf
message: "The storageType field is immutable."
enum:
- OceanStorSAN
- OceanStorNAS
- OceanStorDtree
- FusionStorageSAN
- FusionStorageNAS
pools:
type: array
items:
type: string
urls:
type: array
items:
type: string
login:
type: string
password:
type: string
protocol:
type: string
x-kubernetes-validations:
- rule: self == oldSelf
message: "The protocol field is immutable."
enum:
- ISCSI
- FC
- ROCE
- FC-NVME
- NFS
- DPC
- SCSI
portals:
type: array
items:
type: string
maxClientThreads:
type: integer
x-kubernetes-validations:
- rule: self == oldSelf
message: "The maxClientThreads field is immutable."
status:
type: object
description: |
Displays current information about the resources managed by the HuaweiStorageConnection custom resource.
properties:
phase:
type: string
description: |
The current state of resources managed by the HuaweiStorageConnection custom resource. Might be:
- Failed (if the controller received incorrect resource configuration or some errors occurred during the operation)
- Created (if everything went fine)
enum:
- Failed
- Created
reason:
type: string
description: |
Additional information about the resources managed by the HuaweiStorageConnection custom resource.
subresources:
status: {}
additionalPrinterColumns:
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .status.reason
name: Reason
type: string
priority: 1
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
description: The age of this resource
174 changes: 174 additions & 0 deletions crds/xuanwu.huawei.io_resourcetopologies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null
name: resourcetopologies.xuanwu.huawei.io
spec:
group: xuanwu.huawei.io
names:
kind: ResourceTopology
listKind: ResourceTopologyList
plural: resourcetopologies
shortNames:
- rt
singular: resourcetopology
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.provisioner
name: Provisioner
type: string
- jsonPath: .spec.volumeHandle
name: VolumeHandle
type: string
- jsonPath: .status.status
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1
schema:
openAPIV3Schema:
description: ResourceTopology is the Schema for the ResourceTopologys API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
provisioner:
description: Provisioner is the volume provisioner name
type: string
tags:
description: Tags defines pv and other relationships and ownership
items:
description: Tag defines pv and other relationships and ownership
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this
representation of an object. Servers should convert recognized
schemas to the latest internal value, and may reject unrecognized
values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource
this object represents. Servers may infer this from the endpoint
the client submits requests to. Cannot be updated. In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: Name is the name of the resource
type: string
namespace:
description: NameSpace is the namespace of the resource
type: string
owner:
description: Owner defines who does the resource belongs to
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of
this representation of an object. Servers should convert
recognized schemas to the latest internal value, and may
reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST
resource this object represents. Servers may infer this
from the endpoint the client submits requests to. Cannot
be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: Name is the name of the resource
type: string
namespace:
description: NameSpace is the namespace of the resource
type: string
type: object
type: object
type: array
volumeHandle:
description: VolumeHandle is the backend name and identity of the
volume, format as <backend>.<identity>
type: string
required:
- provisioner
- tags
- volumeHandle
type: object
status:
properties:
status:
description: Status is the status of the ResourceTopology
type: string
tags:
description: Tags defines pv and other relationships and ownership
items:
description: Tag defines pv and other relationships and ownership
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this
representation of an object. Servers should convert recognized
schemas to the latest internal value, and may reject unrecognized
values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource
this object represents. Servers may infer this from the endpoint
the client submits requests to. Cannot be updated. In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: Name is the name of the resource
type: string
namespace:
description: NameSpace is the namespace of the resource
type: string
owner:
description: Owner defines who does the resource belongs to
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of
this representation of an object. Servers should convert
recognized schemas to the latest internal value, and may
reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST
resource this object represents. Servers may infer this
from the endpoint the client submits requests to. Cannot
be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: Name is the name of the resource
type: string
namespace:
description: NameSpace is the namespace of the resource
type: string
type: object
type: object
type: array
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Loading