-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
355 additions
and
4 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
.github/workflows/helm-chart.yml → .github/workflows/helm-chart-operator.yml
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Helm charts for Hyperledger Fabric | ||
|
||
Add the helm repository to your helm client: | ||
```bash | ||
helm repo add kfs https://kfsoftware.github.io/hlf-helm-charts --force-update | ||
``` | ||
|
||
Default values can be found in [charts/hlf-operator/values.yaml](values.yaml) | ||
|
||
|
||
### Installing hlf-operator | ||
|
||
With default values: | ||
```bash | ||
helm install hlf-operator --version=1.5.0 kfs/hlf-operator | ||
``` | ||
|
||
With custom values: | ||
```bash | ||
helm install hlf-operator -f values.yaml --version=1.5.0 kfs/hlf-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
140 changes: 140 additions & 0 deletions
140
chart/hlf-operator/templates/crds/hlf.kungfusoftware.es_fabricexplorers.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,140 @@ | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.3.0 | ||
creationTimestamp: null | ||
name: fabricexplorers.hlf.kungfusoftware.es | ||
spec: | ||
group: hlf.kungfusoftware.es | ||
names: | ||
kind: FabricExplorer | ||
listKind: FabricExplorerList | ||
plural: fabricexplorers | ||
shortNames: | ||
- explorer | ||
singular: explorer | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .status.status | ||
name: State | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: FabricExplorer is the Schema for the hlfs 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: | ||
description: FabricExplorerSpec defines the desired state of FabricExplorer | ||
properties: | ||
resources: | ||
description: ResourceRequirements describes the compute resource requirements. | ||
properties: | ||
limits: | ||
additionalProperties: | ||
anyOf: | ||
- type: integer | ||
- type: string | ||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ | ||
x-kubernetes-int-or-string: true | ||
description: 'Limits describes the maximum amount of compute resources | ||
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' | ||
type: object | ||
requests: | ||
additionalProperties: | ||
anyOf: | ||
- type: integer | ||
- type: string | ||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ | ||
x-kubernetes-int-or-string: true | ||
description: 'Requests describes the minimum amount of compute | ||
resources required. If Requests is omitted for a container, | ||
it defaults to Limits if that is explicitly specified, otherwise | ||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' | ||
type: object | ||
type: object | ||
required: | ||
- resources | ||
type: object | ||
status: | ||
description: FabricExplorerStatus defines the observed state of FabricExplorer | ||
properties: | ||
conditions: | ||
description: Conditions is a set of Condition instances. | ||
items: | ||
description: "Condition represents an observation of an object's | ||
state. Conditions are an extension mechanism intended to be used | ||
when the details of an observation are not a priori known or would | ||
not apply to all instances of a given Kind. \n Conditions should | ||
be added to explicitly convey properties that users and components | ||
care about rather than requiring those properties to be inferred | ||
from other observations. Once defined, the meaning of a Condition | ||
can not be changed arbitrarily - it becomes part of the API, and | ||
has the same backwards- and forwards-compatibility concerns of | ||
any other part of the API." | ||
properties: | ||
lastTransitionTime: | ||
format: date-time | ||
type: string | ||
message: | ||
type: string | ||
reason: | ||
description: ConditionReason is intended to be a one-word, CamelCase | ||
representation of the category of cause of the current status. | ||
It is intended to be used in concise output, such as one-line | ||
kubectl get output, and in summarizing occurrences of causes. | ||
type: string | ||
status: | ||
type: string | ||
type: | ||
description: "ConditionType is the type of the condition and | ||
is typically a CamelCased word or short phrase. \n Condition | ||
types should indicate state in the \"abnormal-true\" polarity. | ||
For example, if the condition indicates when a policy is invalid, | ||
the \"is valid\" case is probably the norm, so the condition | ||
should be called \"Invalid\"." | ||
type: string | ||
required: | ||
- status | ||
- type | ||
type: object | ||
type: array | ||
message: | ||
type: string | ||
status: | ||
description: Status of the FabricCA | ||
type: string | ||
required: | ||
- conditions | ||
- message | ||
- status | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
127 changes: 127 additions & 0 deletions
127
chart/hlf-operator/templates/crds/hlf.kungfusoftware.es_fabricnetworkconfigs.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,127 @@ | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.3.0 | ||
creationTimestamp: null | ||
name: fabricnetworkconfigs.hlf.kungfusoftware.es | ||
spec: | ||
group: hlf.kungfusoftware.es | ||
names: | ||
kind: FabricNetworkConfig | ||
listKind: FabricNetworkConfigList | ||
plural: fabricnetworkconfigs | ||
shortNames: | ||
- networkconfig | ||
singular: networkconfig | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .status.status | ||
name: State | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: FabricNetworkConfig is the Schema for the hlfs 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: | ||
description: FabricNetworkConfigSpec defines the desired state of FabricNetworkConfig | ||
properties: | ||
internal: | ||
type: boolean | ||
organization: | ||
type: string | ||
organizations: | ||
items: | ||
type: string | ||
type: array | ||
secretName: | ||
type: string | ||
required: | ||
- internal | ||
- organization | ||
- organizations | ||
- secretName | ||
type: object | ||
status: | ||
description: FabricNetworkConfigStatus defines the observed state of FabricNetworkConfig | ||
properties: | ||
conditions: | ||
description: Conditions is a set of Condition instances. | ||
items: | ||
description: "Condition represents an observation of an object's | ||
state. Conditions are an extension mechanism intended to be used | ||
when the details of an observation are not a priori known or would | ||
not apply to all instances of a given Kind. \n Conditions should | ||
be added to explicitly convey properties that users and components | ||
care about rather than requiring those properties to be inferred | ||
from other observations. Once defined, the meaning of a Condition | ||
can not be changed arbitrarily - it becomes part of the API, and | ||
has the same backwards- and forwards-compatibility concerns of | ||
any other part of the API." | ||
properties: | ||
lastTransitionTime: | ||
format: date-time | ||
type: string | ||
message: | ||
type: string | ||
reason: | ||
description: ConditionReason is intended to be a one-word, CamelCase | ||
representation of the category of cause of the current status. | ||
It is intended to be used in concise output, such as one-line | ||
kubectl get output, and in summarizing occurrences of causes. | ||
type: string | ||
status: | ||
type: string | ||
type: | ||
description: "ConditionType is the type of the condition and | ||
is typically a CamelCased word or short phrase. \n Condition | ||
types should indicate state in the \"abnormal-true\" polarity. | ||
For example, if the condition indicates when a policy is invalid, | ||
the \"is valid\" case is probably the norm, so the condition | ||
should be called \"Invalid\"." | ||
type: string | ||
required: | ||
- status | ||
- type | ||
type: object | ||
type: array | ||
message: | ||
type: string | ||
status: | ||
description: Status of the FabricNetworkConfig | ||
type: string | ||
required: | ||
- conditions | ||
- message | ||
- status | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
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
Oops, something went wrong.