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

feat(crd): rename plugin and pluginconfig crds #112

Merged
merged 13 commits into from
Apr 8, 2024
4 changes: 2 additions & 2 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resources:
controller: true
domain: sap
group: greenhouse
kind: Plugin
kind: PluginDefinition
path: github.com/cloudoperators/greenhouse/pkg/apis/greenhouse/v1alpha1
version: v1alpha1
webhooks:
Expand All @@ -55,7 +55,7 @@ resources:
controller: true
domain: sap
group: greenhouse
kind: PluginConfig
kind: Plugin
path: github.com/cloudoperators/greenhouse/pkg/apis/greenhouse/v1alpha1
version: v1alpha1
webhooks:
Expand Down
4 changes: 2 additions & 2 deletions charts/demo/templates/alertmanager-pluginconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ SPDX-License-Identifier: Apache-2.0

{{- if .Values.alerts.enabled }}
apiVersion: greenhouse.sap/v1alpha1
kind: PluginConfig
kind: Plugin
metadata:
name: alerts
namespace: {{ .Chart.Name }}
spec:
plugin: alerts
pluginDefinition: alerts
disabled: false
displayName: Alerts
optionValues:
Expand Down
4 changes: 2 additions & 2 deletions charts/demo/templates/doop-pluginconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ SPDX-License-Identifier: Apache-2.0

{{- if .Values.doop.enabled }}
apiVersion: greenhouse.sap/v1alpha1
kind: PluginConfig
kind: Plugin
metadata:
name: doop
namespace: {{ .Chart.Name }}
spec:
disabled: false
plugin: doop
pluginDefinition: doop
displayName: {{ required ".Values.doop.displayName missing" .Values.doop.displayName }}
optionValues:
- name: apiEndpoint
Expand Down
4 changes: 2 additions & 2 deletions charts/greenhouse/templates/pluginconfig-alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ SPDX-License-Identifier: Apache-2.0

{{- if.Values.alerts.enabled }}
apiVersion: greenhouse.sap/v1alpha1
kind: PluginConfig
kind: Plugin
metadata:
name: alerts
namespace: {{ .Chart.Name }}
spec:
plugin: alerts
pluginDefinition: alerts
disabled: false
displayName: Alerts
optionValues:
Expand Down
4 changes: 2 additions & 2 deletions charts/greenhouse/templates/pluginconfig-cert-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ SPDX-License-Identifier: Apache-2.0
*/}}

apiVersion: greenhouse.sap/v1alpha1
kind: PluginConfig
kind: Plugin
metadata:
name: cert-manager
namespace: {{ .Chart.Name }}
spec:
plugin: cert-manager
pluginDefinition: cert-manager
disabled: false
{{ if .Values.digicertIssuer.enabled }}
optionValues:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ SPDX-License-Identifier: Apache-2.0

{{- if .Values.digicertIssuer.enabled }}
apiVersion: greenhouse.sap/v1alpha1
kind: PluginConfig
kind: Plugin
metadata:
name: digicert-issuer
namespace: {{ .Chart.Name }}
spec:
plugin: digicert-issuer
pluginDefinition: digicert-issuer
disabled: false
optionValues:
- name: provisioner.apiToken
Expand Down
4 changes: 2 additions & 2 deletions charts/greenhouse/templates/pluginconfig-disco.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ SPDX-License-Identifier: Apache-2.0

{{- if .Values.disco.enabled }}
apiVersion: greenhouse.sap/v1alpha1
kind: PluginConfig
kind: Plugin
metadata:
name: disco
namespace: {{ .Chart.Name }}
spec:
plugin: disco
pluginDefinition: disco
disabled: false
optionValues:
- name: record
Expand Down
4 changes: 2 additions & 2 deletions charts/greenhouse/templates/pluginconfig-ingress-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ SPDX-License-Identifier: Apache-2.0

{{- if .Values.ingress.enabled }}
apiVersion: greenhouse.sap/v1alpha1
kind: PluginConfig
kind: Plugin
metadata:
name: ingress-nginx
namespace: {{ .Chart.Name }}
spec:
plugin: ingress-nginx
pluginDefinition: ingress-nginx
disabled: false
optionValues:
# Remove after all components were moved to greenhouse namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ SPDX-License-Identifier: Apache-2.0

{{- if .Values.monitoring.enabled }}
apiVersion: greenhouse.sap/v1alpha1
kind: PluginConfig
kind: Plugin
metadata:
name: kube-monitoring
namespace: {{ .Chart.Name }}
spec:
disabled: false
plugin: kube-monitoring
pluginDefinition: kube-monitoring
optionValues:
- name: kubeMonitoring.prometheus.prometheusSpec.externalLabels
value:
Expand Down
Loading
Loading