operator: make replicationFactor optional (#5701)

pull/5699/head
Sashank Agarwal 4 years ago committed by GitHub
parent 2ebbecfcbd
commit dec695f112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      operator/CHANGELOG.md
  2. 4
      operator/api/v1beta1/lokistack_types.go
  3. 1
      operator/bundle/manifests/loki-operator.clusterserviceversion.yaml
  4. 1
      operator/bundle/manifests/loki.grafana.com_lokistacks.yaml
  5. 1
      operator/config/crd/bases/loki.grafana.com_lokistacks.yaml
  6. 1
      operator/config/samples/loki_v1beta1_lokistack.yaml
  7. 1
      operator/hack/lokistack_dev.yaml
  8. 1
      operator/hack/lokistack_gateway_dev.yaml
  9. 1
      operator/hack/lokistack_gateway_ocp.yaml

@ -1,5 +1,6 @@
## Main
- [5701](https://github.com/grafana/loki/pull/5701) **sasagarw**: Make ReplicationFactor optional in LokiStack API
- [5695](https://github.com/grafana/loki/pull/5695) **xperimental**: Update Go to 1.17
- [5615](https://github.com/grafana/loki/pull/5615) **sasagarw**: Document how to connect to LokiStack gateway component
- [5655](https://github.com/grafana/loki/pull/5655) **xperimental**: Update Loki operand to 2.4.2

@ -510,8 +510,8 @@ type LokiStackSpec struct {
// ReplicationFactor defines the policy for log stream replication.
//
// +required
// +kubebuilder:validation:Required
// +optional
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum:=1
// +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors="urn:alm:descriptor:com.tectonic.ui:number",displayName="Replication Factor"
ReplicationFactor int32 `json:"replicationFactor"`

@ -11,7 +11,6 @@ metadata:
"name": "lokistack-sample"
},
"spec": {
"replicationFactor": 2,
"size": "1x.small",
"storage": {
"secret": {

@ -807,7 +807,6 @@ spec:
- mode
type: object
required:
- replicationFactor
- size
- storage
- storageClassName

@ -585,7 +585,6 @@ spec:
- mode
type: object
required:
- replicationFactor
- size
- storage
- storageClassName

@ -4,7 +4,6 @@ metadata:
name: lokistack-sample
spec:
size: 1x.small
replicationFactor: 2
storage:
secret:
name: test

@ -4,7 +4,6 @@ metadata:
name: lokistack-dev
spec:
size: 1x.extra-small
replicationFactor: 1
storage:
secret:
name: test

@ -4,7 +4,6 @@ metadata:
name: lokistack-dev
spec:
size: 1x.extra-small
replicationFactor: 1
storage:
secret:
name: test

@ -4,7 +4,6 @@ metadata:
name: lokistack-dev
spec:
size: 1x.extra-small
replicationFactor: 1
storage:
secret:
name: test

Loading…
Cancel
Save