From fb8ed04ec9010d7e8ba6f6a6b16c9b67c323e3e7 Mon Sep 17 00:00:00 2001 From: Peter Braun Date: Sat, 18 Sep 2021 13:37:33 +0200 Subject: [PATCH] Fix csv 4.0 (#522) * fix: spec.client is not working * update auto generated code * feat: crd migration working as expected * remove required field --- api/integreatly/v1alpha1/grafana_types.go | 11 +- .../v1alpha1/zz_generated.deepcopy.go | 5 + ...rafana-operator.clusterserviceversion.yaml | 558 ++++++++---------- .../integreatly.org_grafanadatasources.yaml | 8 + .../manifests/integreatly.org_grafanas.yaml | 66 +++ .../crd/bases/integreatly.org_grafanas.yaml | 2 - controllers/grafana/grafana_controller.go | 5 +- controllers/grafana/grafana_reconciler.go | 4 +- deploy/examples/Grafana.yaml | 2 + 9 files changed, 353 insertions(+), 308 deletions(-) diff --git a/api/integreatly/v1alpha1/grafana_types.go b/api/integreatly/v1alpha1/grafana_types.go index 97a2a8037..73e9bbcdd 100644 --- a/api/integreatly/v1alpha1/grafana_types.go +++ b/api/integreatly/v1alpha1/grafana_types.go @@ -61,8 +61,8 @@ type JsonnetConfig struct { // Grafana API client settings type GrafanaClient struct { - TimeoutSeconds *int `json:"timeout,omitempty"` - PreferService bool `json:"preferService"` + TimeoutSeconds *int `json:"timeout,omitempty"` + PreferService *bool `json:"preferService,omitempty"` } // GrafanaService provides a means to configure the service @@ -571,3 +571,10 @@ type GrafanaList struct { func init() { SchemeBuilder.Register(&Grafana{}, &GrafanaList{}) } + +func (cr *Grafana) GetPreferServiceValue() bool { + if cr.Spec.Client != nil && cr.Spec.Client.PreferService != nil { + return *cr.Spec.Client.PreferService + } + return false +} diff --git a/api/integreatly/v1alpha1/zz_generated.deepcopy.go b/api/integreatly/v1alpha1/zz_generated.deepcopy.go index e4a81b9d7..1d6f1e0af 100644 --- a/api/integreatly/v1alpha1/zz_generated.deepcopy.go +++ b/api/integreatly/v1alpha1/zz_generated.deepcopy.go @@ -62,6 +62,11 @@ func (in *GrafanaClient) DeepCopyInto(out *GrafanaClient) { *out = new(int) **out = **in } + if in.PreferService != nil { + in, out := &in.PreferService, &out.PreferService + *out = new(bool) + **out = **in + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaClient. diff --git a/bundle/manifests/grafana-operator.clusterserviceversion.yaml b/bundle/manifests/grafana-operator.clusterserviceversion.yaml index 31a338842..01238d824 100644 --- a/bundle/manifests/grafana-operator.clusterserviceversion.yaml +++ b/bundle/manifests/grafana-operator.clusterserviceversion.yaml @@ -2,63 +2,25 @@ apiVersion: operators.coreos.com/v1alpha1 kind: ClusterServiceVersion metadata: annotations: - alm-examples: "[\n{\n \"apiVersion\": \"integreatly.org/v1alpha1\",\n \"kind\"\ - : \"Grafana\",\n \"metadata\": {\n \"name\": \"example-grafana\"\n },\n\ - \ \"spec\": {\n \"ingress\": {\n \"enabled\": true\n },\n \"\ - config\": {\n \"auth\": {\n \"disable_signout_menu\": true\n \ - \ },\n \"auth.anonymous\": {\n \"enabled\": true\n },\n \ - \ \"log\": {\n \"level\": \"warn\",\n \"mode\": \"console\"\ - \n },\n \"security\": {\n \"admin_password\": \"secret\",\n\ - \ \"admin_user\": \"root\"\n }\n },\n \"dashboardLabelSelector\"\ - : [\n {\n \"matchExpressions\": [\n {\n \"key\": \"app\"\ - ,\n \"operator\": \"In\",\n \"values\": [\n \"grafana\"\ - \n ]\n }\n ]\n }\n ]\n }\n},\n{\n \"apiVersion\": \"\ - integreatly.org/v1alpha1\",\n \"kind\": \"GrafanaDashboard\",\n \"metadata\"\ - : {\n \"labels\": {\n \"app\": \"grafana\"\n },\n \"name\": \"\ - simple-dashboard\"\n },\n \"spec\": {\n \"json\": \"{\\n \\\"id\\\": null,\\\ - n \\\"title\\\": \\\"Simple Dashboard\\\",\\n \\\"tags\\\": [],\\n \\\"style\\\ - \": \\\"dark\\\",\\n \\\"timezone\\\": \\\"browser\\\",\\n \\\"editable\\\"\ - : true,\\n \\\"hideControls\\\": false,\\n \\\"graphTooltip\\\": 1,\\n \\\ - \"panels\\\": [],\\n \\\"time\\\": {\\n \\\"from\\\": \\\"now-6h\\\",\\\ - n \\\"to\\\": \\\"now\\\"\\n },\\n \\\"timepicker\\\": {\\n \\\"time_options\\\ - \": [],\\n \\\"refresh_intervals\\\": []\\n },\\n \\\"templating\\\": {\\\ - n \\\"list\\\": []\\n },\\n \\\"annotations\\\": {\\n \\\"list\\\":\ - \ []\\n },\\n \\\"refresh\\\": \\\"5s\\\",\\n \\\"schemaVersion\\\": 17,\\\ - n \\\"version\\\": 0,\\n \\\"links\\\": []\\n}\\n\",\n \"name\": \"simple-dashboard.json\"\ - \n }\n},\n{\n \"apiVersion\": \"integreatly.org/v1alpha1\",\n \"kind\": \"\ - GrafanaDataSource\",\n \"metadata\": {\n \"name\": \"example-grafanadatasource\"\ - \n },\n \"spec\": {\n \"datasources\": [\n {\n \"access\": \"proxy\"\ - ,\n \"editable\": true,\n \"isDefault\": true,\n \"jsonData\"\ - : {\n \"timeInterval\": \"5s\"\n },\n \"name\": \"Prometheus\"\ - ,\n \"type\": \"prometheus\",\n \"url\": \"http://prometheus-service:9090\"\ - ,\n \"version\": 1\n }\n ],\n \"name\": \"example-datasources.yaml\"\ - \n }\n}\n]" + alm-examples: '[]' capabilities: Basic Install operators.operatorframework.io/builder: operator-sdk-v1.3.2 operators.operatorframework.io/project_layout: go.kubebuilder.io/v3 - categories: Monitoring - certified: 'False' - containerImage: quay.io/grafana-operator/grafana-operator:v4.0.0 - createdAt: 2020-08-23 00:00:00 - description: An Operator for managing Grafana instances, dashboards and data sources - repository: https://github.com/integr8ly/grafana-operator - support: Red Hat - olm.properties: '[{"type": "olm.maxOpenShiftVersion", "value": "4.8"}]' name: grafana-operator.v4.0.0 namespace: placeholder spec: apiservicedefinitions: {} customresourcedefinitions: owned: - - kind: GrafanaDashboard - name: grafanadashboards.integreatly.org - version: v1alpha1 - - kind: GrafanaDataSource - name: grafanadatasources.integreatly.org - version: v1alpha1 - - kind: Grafana - name: grafanas.integreatly.org - version: v1alpha1 + - kind: GrafanaDashboard + name: grafanadashboards.integreatly.org + version: v1alpha1 + - kind: GrafanaDataSource + name: grafanadatasources.integreatly.org + version: v1alpha1 + - kind: Grafana + name: grafanas.integreatly.org + version: v1alpha1 description: | A Kubernetes Operator based on the Operator SDK for creating and managing Grafana instances. @@ -75,267 +37,267 @@ spec: * Install Plugins (panels) displayName: Grafana Operator icon: - - base64data: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMC4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4KCjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0iTGF5ZXJfMSIKICAgeD0iMHB4IgogICB5PSIwcHgiCiAgIHdpZHRoPSI1Ny43OTk5OTkiCiAgIGhlaWdodD0iNTcuNzk5OTk5IgogICB2aWV3Qm94PSIwIDAgNTcuNzk5OTk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ZD0icGF0aDM3NzgiCiAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgIHN0eWxlPSJmaWxsOnVybCgjU1ZHSURfMV8pIiAvPgo8L3N2Zz4= + mediatype: image/svg+xml install: spec: clusterPermissions: - - rules: - - apiGroups: - - "" - resources: - - configmaps - - persistentvolumeclaims - - secrets - - serviceaccounts - - services - verbs: - - create - - delete - - get - - list - - patch - - update - - watch - - apiGroups: - - "" - resources: - - events - verbs: - - create - - get - - list - - watch - - apiGroups: - - "" - resources: - - pods - verbs: - - get - - list - - watch - - apiGroups: - - apps - - extensions - resources: - - deployments - - deployments/finalizers - verbs: - - create - - delete - - get - - list - - patch - - update - - watch - - apiGroups: - - integreatly.org - resources: - - grafanadashboards - verbs: - - create - - delete - - get - - list - - patch - - update - - watch - - apiGroups: - - integreatly.org - resources: - - grafanadashboards/status - verbs: - - get - - patch - - update - - apiGroups: - - integreatly.org - resources: - - grafanadatasources - verbs: - - create - - delete - - get - - list - - patch - - update - - watch - - apiGroups: - - integreatly.org - resources: - - grafanadatasources/status - verbs: - - get - - patch - - update - - apiGroups: - - integreatly.org - resources: - - grafanas - - grafanas/finalizers - verbs: - - create - - delete - - get - - list - - patch - - update - - watch - - apiGroups: - - integreatly.org - resources: - - grafanas/status - verbs: - - get - - patch - - update - - apiGroups: - - networking.k8s.io - resources: - - ingresses - verbs: - - create - - delete - - get - - list - - patch - - update - - watch - - apiGroups: - - route.openshift.io - resources: - - routes - verbs: - - create - - delete - - get - - list - - patch - - update - - watch - - apiGroups: - - authentication.k8s.io - resources: - - tokenreviews - verbs: - - create - - apiGroups: - - authorization.k8s.io - resources: - - subjectaccessreviews - verbs: - - create - serviceAccountName: default + - rules: + - apiGroups: + - "" + resources: + - configmaps + - persistentvolumeclaims + - secrets + - serviceaccounts + - services + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - "" + resources: + - events + verbs: + - create + - get + - list + - watch + - apiGroups: + - "" + resources: + - pods + verbs: + - get + - list + - watch + - apiGroups: + - apps + - extensions + resources: + - deployments + - deployments/finalizers + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - integreatly.org + resources: + - grafanadashboards + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - integreatly.org + resources: + - grafanadashboards/status + verbs: + - get + - patch + - update + - apiGroups: + - integreatly.org + resources: + - grafanadatasources + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - integreatly.org + resources: + - grafanadatasources/status + verbs: + - get + - patch + - update + - apiGroups: + - integreatly.org + resources: + - grafanas + - grafanas/finalizers + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - integreatly.org + resources: + - grafanas/status + verbs: + - get + - patch + - update + - apiGroups: + - networking.k8s.io + resources: + - ingresses + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - route.openshift.io + resources: + - routes + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - authentication.k8s.io + resources: + - tokenreviews + verbs: + - create + - apiGroups: + - authorization.k8s.io + resources: + - subjectaccessreviews + verbs: + - create + serviceAccountName: default deployments: - - name: grafana-operator-controller-manager - spec: - replicas: 1 - selector: - matchLabels: + - name: grafana-operator-controller-manager + spec: + replicas: 1 + selector: + matchLabels: + control-plane: controller-manager + strategy: {} + template: + metadata: + labels: control-plane: controller-manager - strategy: {} - template: - metadata: - labels: - control-plane: controller-manager - spec: - containers: - - args: - - --secure-listen-address=0.0.0.0:8443 - - --upstream=http://127.0.0.1:8080/ - - --logtostderr=true - - --v=10 - image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 - name: kube-rbac-proxy - ports: - - containerPort: 8443 - name: https - resources: {} - - args: - - --health-probe-bind-address=:8081 - - --metrics-bind-address=127.0.0.1:8080 - - --leader-elect - - --zap-log-level=error - command: - - /manager - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: WATCH_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.annotations['olm.targetNamespaces'] - image: quay.io/grafana-operator/grafana-operator:v4.0.0 - imagePullPolicy: Always - livenessProbe: - httpGet: - path: /healthz - port: 8081 - initialDelaySeconds: 15 - periodSeconds: 20 - name: manager - readinessProbe: - httpGet: - path: /readyz - port: 8081 - initialDelaySeconds: 5 - periodSeconds: 10 - resources: - limits: - cpu: 100m - memory: 300Mi - requests: - cpu: 100m - memory: 100Mi - securityContext: - allowPrivilegeEscalation: false - terminationGracePeriodSeconds: 10 + spec: + containers: + - args: + - --secure-listen-address=0.0.0.0:8443 + - --upstream=http://127.0.0.1:8080/ + - --logtostderr=true + - --v=10 + image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 + name: kube-rbac-proxy + ports: + - containerPort: 8443 + name: https + resources: {} + - args: + - --health-probe-bind-address=:8081 + - --metrics-bind-address=127.0.0.1:8080 + - --leader-elect + - --zap-log-level=error + command: + - /manager + env: + - name: POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: WATCH_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.annotations['olm.targetNamespaces'] + image: quay.io/grafana-operator/grafana-operator:v4.0.0 + imagePullPolicy: Always + livenessProbe: + httpGet: + path: /healthz + port: 8081 + initialDelaySeconds: 15 + periodSeconds: 20 + name: manager + readinessProbe: + httpGet: + path: /readyz + port: 8081 + initialDelaySeconds: 5 + periodSeconds: 10 + resources: + limits: + cpu: 100m + memory: 300Mi + requests: + cpu: 100m + memory: 100Mi + securityContext: + allowPrivilegeEscalation: false + terminationGracePeriodSeconds: 10 permissions: - - rules: - - apiGroups: - - "" - - coordination.k8s.io - resources: - - configmaps - - leases - verbs: - - get - - list - - watch - - create - - update - - patch - - delete - - apiGroups: - - "" - resources: - - events - verbs: - - create - - patch - serviceAccountName: default + - rules: + - apiGroups: + - "" + - coordination.k8s.io + resources: + - configmaps + - leases + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - events + verbs: + - create + - patch + serviceAccountName: default strategy: deployment installModes: - - supported: true - type: OwnNamespace - - supported: true - type: SingleNamespace - - supported: false - type: MultiNamespace - - supported: false - type: AllNamespaces + - supported: true + type: OwnNamespace + - supported: true + type: SingleNamespace + - supported: false + type: MultiNamespace + - supported: false + type: AllNamespaces keywords: - - grafana + - grafana links: - - name: Grafana Operator - url: https://grafana-operator.domain + - name: Grafana Operator + url: https://grafana-operator.domain maintainers: - - email: pbraun@redhat.com - name: Peter Braun - - email: hstefans@redhat.com - name: Hubert Stefanski + - email: pbraun@redhat.com + name: Peter Braun + - email: hstefans@redhat.com + name: Hubert Stefanski maturity: alpha provider: name: Red Hat diff --git a/bundle/manifests/integreatly.org_grafanadatasources.yaml b/bundle/manifests/integreatly.org_grafanadatasources.yaml index 896306503..8126d4730 100644 --- a/bundle/manifests/integreatly.org_grafanadatasources.yaml +++ b/bundle/manifests/integreatly.org_grafanadatasources.yaml @@ -273,6 +273,14 @@ spec: - name type: object status: + properties: + message: + type: string + phase: + type: string + required: + - message + - phase type: object type: object served: true diff --git a/bundle/manifests/integreatly.org_grafanas.yaml b/bundle/manifests/integreatly.org_grafanas.yaml index a4ebcac1b..893707380 100644 --- a/bundle/manifests/integreatly.org_grafanas.yaml +++ b/bundle/manifests/integreatly.org_grafanas.yaml @@ -32,6 +32,12 @@ spec: baseImage: type: string client: + description: Grafana API client settings + properties: + preferService: + type: boolean + timeout: + type: integer type: object config: description: GrafanaConfig is the configuration for grafana @@ -3301,6 +3307,66 @@ spec: - config type: object status: + description: GrafanaStatus defines the observed state of Grafana + properties: + dashboards: + items: + description: Used to keep a dashboard reference without having access to the dashboard struct itself + properties: + folderId: + format: int64 + type: integer + folderName: + type: string + hash: + type: string + name: + type: string + namespace: + type: string + uid: + type: string + required: + - folderId + - folderName + - hash + - name + - namespace + - uid + type: object + type: array + failedPlugins: + items: + description: GrafanaPlugin contains information about a single plugin + properties: + name: + type: string + version: + type: string + required: + - name + - version + type: object + type: array + installedPlugins: + items: + description: GrafanaPlugin contains information about a single plugin + properties: + name: + type: string + version: + type: string + required: + - name + - version + type: object + type: array + message: + type: string + phase: + type: string + previousServiceName: + type: string type: object type: object served: true diff --git a/config/crd/bases/integreatly.org_grafanas.yaml b/config/crd/bases/integreatly.org_grafanas.yaml index f25263032..58f86a6a5 100644 --- a/config/crd/bases/integreatly.org_grafanas.yaml +++ b/config/crd/bases/integreatly.org_grafanas.yaml @@ -44,8 +44,6 @@ spec: type: boolean timeout: type: integer - required: - - preferService type: object config: description: GrafanaConfig is the configuration for grafana diff --git a/controllers/grafana/grafana_controller.go b/controllers/grafana/grafana_controller.go index 4528acf62..3a553bfff 100644 --- a/controllers/grafana/grafana_controller.go +++ b/controllers/grafana/grafana_controller.go @@ -240,10 +240,7 @@ func (r *ReconcileGrafana) manageError(cr *grafanav1alpha1.Grafana, issue error, func (r *ReconcileGrafana) getGrafanaAdminUrl(cr *grafanav1alpha1.Grafana, state *common.ClusterState) (string, error) { // If preferService is true, we skip the routes and try to access grafana // by using the service. - preferService := false - if cr.Spec.Client != nil { - preferService = cr.Spec.Client.PreferService - } + preferService := cr.GetPreferServiceValue() // First try to use the route if it exists. Prefer the route because it also works // when running the operator outside of the cluster diff --git a/controllers/grafana/grafana_reconciler.go b/controllers/grafana/grafana_reconciler.go index 7a9d4c74f..043e0c32b 100644 --- a/controllers/grafana/grafana_reconciler.go +++ b/controllers/grafana/grafana_reconciler.go @@ -63,14 +63,14 @@ func (i *GrafanaReconciler) getGrafanaReadiness(state *common.ClusterState, cr * var actions []common.ClusterAction cfg := config.GetControllerConfig() openshift := cfg.GetConfigBool(config.ConfigOpenshift, false) - if openshift && cr.Spec.Ingress != nil && cr.Spec.Ingress.Enabled && (cr.Spec.Client == nil || !cr.Spec.Client.PreferService) { + if openshift && cr.Spec.Ingress != nil && cr.Spec.Ingress.Enabled && !cr.GetPreferServiceValue() { // On OpenShift, check the route, only if preferService is false actions = append(actions, common.RouteReadyAction{ Ref: state.GrafanaRoute, Msg: "check route readiness", }) } - if !openshift && cr.Spec.Ingress != nil && cr.Spec.Ingress.Enabled && (cr.Spec.Client == nil || !cr.Spec.Client.PreferService) { + if !openshift && cr.Spec.Ingress != nil && cr.Spec.Ingress.Enabled && !cr.GetPreferServiceValue() { // On vanilla Kubernetes, check the ingress,only if preferService is false actions = append(actions, common.IngressReadyAction{ Ref: state.GrafanaIngress, diff --git a/deploy/examples/Grafana.yaml b/deploy/examples/Grafana.yaml index 32aeba3d0..ef0f5490c 100644 --- a/deploy/examples/Grafana.yaml +++ b/deploy/examples/Grafana.yaml @@ -3,6 +3,8 @@ kind: Grafana metadata: name: example-grafana spec: + client: + preferService: true ingress: enabled: True pathType: Prefix