Skip to content

Commit

Permalink
feat(metrics-operator)!: use v1beta1 in operator logic (#2472)
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT authored Nov 14, 2023
1 parent 97acdbf commit 94f17c1
Show file tree
Hide file tree
Showing 134 changed files with 2,361 additions and 657 deletions.
42 changes: 16 additions & 26 deletions .github/scripts/.helm-tests/default/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5857,7 +5857,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -6016,7 +6016,7 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down Expand Up @@ -6373,7 +6373,7 @@ spec:
type: string
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- name: v1beta1
Expand Down Expand Up @@ -6703,7 +6703,7 @@ spec:
type: string
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down Expand Up @@ -6786,7 +6786,7 @@ spec:
type: string
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -6842,7 +6842,7 @@ spec:
type: string
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand All @@ -6864,16 +6864,6 @@ metadata:
app.kubernetes.io/version: vmyversion
helm.sh/chart: metrics-operator-0.1.0
spec:
conversion:
strategy: Webhook
webhook:
clientConfig:
service:
name: 'metrics-webhook-service'
namespace: 'helmtests'
path: /convert
conversionReviewVersions:
- v1
group: metrics.keptn.sh
names:
kind: KeptnMetric
Expand Down Expand Up @@ -7197,7 +7187,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -7363,7 +7353,7 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down Expand Up @@ -7504,7 +7494,7 @@ spec:
type: string
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- name: v1beta1
Expand Down Expand Up @@ -7564,7 +7554,7 @@ spec:
type: string
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down Expand Up @@ -9484,14 +9474,14 @@ webhooks:
service:
name: 'metrics-webhook-service'
namespace: 'helmtests'
path: /validate-metrics-keptn-sh-v1alpha3-keptnmetric
path: /validate-metrics-keptn-sh-v1beta1-keptnmetric
failurePolicy: Fail
name: vkeptnmetric.kb.io
rules:
- apiGroups:
- metrics.keptn.sh
apiVersions:
- v1alpha3
- v1beta1
operations:
- CREATE
- UPDATE
Expand All @@ -9504,14 +9494,14 @@ webhooks:
service:
name: 'metrics-webhook-service'
namespace: 'helmtests'
path: /validate-metrics-keptn-sh-v1alpha3-analysis
path: /validate-metrics-keptn-sh-v1beta1-analysis
failurePolicy: Fail
name: vanalysis.kb.io
rules:
- apiGroups:
- metrics.keptn.sh
apiVersions:
- v1alpha3
- v1beta1
operations:
- CREATE
- UPDATE
Expand All @@ -9524,14 +9514,14 @@ webhooks:
service:
name: 'metrics-webhook-service'
namespace: 'helmtests'
path: /validate-metrics-keptn-sh-v1alpha3-analysisdefinition
path: /validate-metrics-keptn-sh-v1beta1-analysisdefinition
failurePolicy: Fail
name: vanalysisdefinition.kb.io
rules:
- apiGroups:
- metrics.keptn.sh
apiVersions:
- v1alpha3
- v1beta1
operations:
- CREATE
- UPDATE
Expand Down
42 changes: 16 additions & 26 deletions .github/scripts/.helm-tests/metrics-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -379,7 +379,7 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down Expand Up @@ -736,7 +736,7 @@ spec:
type: string
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- name: v1beta1
Expand Down Expand Up @@ -1066,7 +1066,7 @@ spec:
type: string
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down Expand Up @@ -1149,7 +1149,7 @@ spec:
type: string
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -1205,7 +1205,7 @@ spec:
type: string
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand All @@ -1227,16 +1227,6 @@ metadata:
app.kubernetes.io/version: vmyversion
helm.sh/chart: metrics-operator-0.1.0
spec:
conversion:
strategy: Webhook
webhook:
clientConfig:
service:
name: 'metrics-webhook-service'
namespace: 'helmtests'
path: /convert
conversionReviewVersions:
- v1
group: metrics.keptn.sh
names:
kind: KeptnMetric
Expand Down Expand Up @@ -1560,7 +1550,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -1726,7 +1716,7 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down Expand Up @@ -1867,7 +1857,7 @@ spec:
type: string
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- name: v1beta1
Expand Down Expand Up @@ -1927,7 +1917,7 @@ spec:
type: string
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down Expand Up @@ -2448,14 +2438,14 @@ webhooks:
service:
name: 'metrics-webhook-service'
namespace: 'helmtests'
path: /validate-metrics-keptn-sh-v1alpha3-keptnmetric
path: /validate-metrics-keptn-sh-v1beta1-keptnmetric
failurePolicy: Fail
name: vkeptnmetric.kb.io
rules:
- apiGroups:
- metrics.keptn.sh
apiVersions:
- v1alpha3
- v1beta1
operations:
- CREATE
- UPDATE
Expand All @@ -2468,14 +2458,14 @@ webhooks:
service:
name: 'metrics-webhook-service'
namespace: 'helmtests'
path: /validate-metrics-keptn-sh-v1alpha3-analysis
path: /validate-metrics-keptn-sh-v1beta1-analysis
failurePolicy: Fail
name: vanalysis.kb.io
rules:
- apiGroups:
- metrics.keptn.sh
apiVersions:
- v1alpha3
- v1beta1
operations:
- CREATE
- UPDATE
Expand All @@ -2488,14 +2478,14 @@ webhooks:
service:
name: 'metrics-webhook-service'
namespace: 'helmtests'
path: /validate-metrics-keptn-sh-v1alpha3-analysisdefinition
path: /validate-metrics-keptn-sh-v1beta1-analysisdefinition
failurePolicy: Fail
name: vanalysisdefinition.kb.io
rules:
- apiGroups:
- metrics.keptn.sh
apiVersions:
- v1alpha3
- v1beta1
operations:
- CREATE
- UPDATE
Expand Down
Loading

0 comments on commit 94f17c1

Please sign in to comment.