Skip to content

Commit

Permalink
upgrade crds version from v1beta1 to v1 (#54)
Browse files Browse the repository at this point in the history
* upgrade crds version from v1beta1 to v1

Signed-off-by: clyang82 <[email protected]>

* Declare the status

Signed-off-by: clyang82 <[email protected]>

* Add undeclared properties since preserveUnknownFields is true in v1

Signed-off-by: clyang82 <[email protected]>
  • Loading branch information
clyang82 authored Apr 7, 2021
1 parent 00cb7a9 commit 08f589b
Show file tree
Hide file tree
Showing 7 changed files with 1,611 additions and 2,126 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/kind
/kubectl
/tmp/
vendor
9 changes: 9 additions & 0 deletions api/v1alpha1/observatorium_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ package v1alpha1
import (
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/brancz/locutus/feedback"
)

// ObservatoriumSpec defines the desired state of Observatorium
Expand Down Expand Up @@ -220,6 +222,9 @@ type TenantOIDC struct {
IssuerURL string `json:"issuerURL"`
RedirectURL string `json:"redirectURL,omitempty"`
UsernameClaim string `json:"usernameClaim,omitempty"`
CAKey string `json:"caKey,omitempty"`
ConfigMapName string `json:"configMapName,omitempty"`
IssuerCAPath string `json:"issuerCAPath,omitempty"`
}

// TenantMTLS represents the mTLS configuration for an Observatorium API tenant.
Expand Down Expand Up @@ -379,6 +384,10 @@ type LokiSpec struct {
type ObservatoriumStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Represents the status of Observatorium
// +optional
Conditions []*feedback.StatusCondition `json:"conditions"`
}

// Observatorium is the Schema for the observatoria API
Expand Down
14 changes: 13 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example/manifests/observatorium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ spec:
- hashring: default
tenants: []
loki:
image: docker.io/grafana/loki:2.0.0
image: docker.io/grafana/loki:2.1.0
replicas:
compactor: 1
distributor: 1
ingester: 1
querier: 1
query_frontend: 1
version: 2.0.0
version: 2.1.0
volumeClaimTemplate:
spec:
accessModes:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ require (
k8s.io/api v0.20.5
k8s.io/apimachinery v0.20.5
sigs.k8s.io/controller-runtime v0.5.0
sigs.k8s.io/controller-tools v0.2.8
sigs.k8s.io/controller-tools v0.5.0
)
175 changes: 96 additions & 79 deletions go.sum

Large diffs are not rendered by default.

3,532 changes: 1,489 additions & 2,043 deletions manifests/crds/core.observatorium.io_observatoria.yaml

Large diffs are not rendered by default.

0 comments on commit 08f589b

Please sign in to comment.