Skip to content

Commit

Permalink
[artemiscloud#676] modified CRD's to fix scorecard test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Msarawan committed Sep 20, 2023
1 parent 209a961 commit aab825b
Show file tree
Hide file tree
Showing 19 changed files with 128 additions and 19 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/activemqartemissecurity_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ type ActiveMQArtemisSecurityStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemissecurities,shortName=aas
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// Security configuration for the broker
// +operator-sdk:csv:customresourcedefinitions:displayName="ActiveMQ Artemis Security"
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/activemqartemisaddress_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ type ActiveMQArtemisAddressStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:storageversion
//+kubebuilder:resource:path=activemqartemisaddresses,shortName=aaa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// Adding and removing addresses using custom resource definitions
// +operator-sdk:csv:customresourcedefinitions:displayName="ActiveMQ Artemis Address"
Expand Down
3 changes: 2 additions & 1 deletion api/v1beta1/activemqartemisscaledown_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type ActiveMQArtemisScaledownSpec struct {
// Important: Run "make" to regenerate code after modifying this file

// Triggered by main ActiveMQArtemis CRD messageMigration entry
//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Local Only",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:booleanSwitch"}
//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Temporary",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:booleanSwitch"}
LocalOnly bool `json:"localOnly"`
// Specifies the minimum/maximum amount of compute resources required/allowed
//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Resource Requirements",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:resourceRequirements"}
Expand All @@ -47,6 +47,7 @@ type ActiveMQArtemisScaledownStatus struct {
//+kubebuilder:storageversion
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemisscaledowns,shortName=aad
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// Provides message migration on clustered broker scaledown
// +operator-sdk:csv:customresourcedefinitions:displayName="ActiveMQ Artemis Scaledown"
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/activemqartemissecurity_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ type ActiveMQArtemisSecurityStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:storageversion
//+kubebuilder:resource:path=activemqartemissecurities,shortName=aas
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// Security configuration for the broker
// +operator-sdk:csv:customresourcedefinitions:displayName="ActiveMQ Artemis Security"
Expand Down
1 change: 1 addition & 0 deletions api/v2alpha1/activemqartemis_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ type ActiveMQArtemisStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemises
//+kubebuilder:resource:path=activemqartemises,shortName=aa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemis is the Schema for the activemqartemises API
type ActiveMQArtemis struct {
Expand Down
1 change: 1 addition & 0 deletions api/v2alpha1/activemqartemisaddress_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type ActiveMQArtemisAddressStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemisaddresses,shortName=aaa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemisAddress is the Schema for the activemqartemisaddresses API
type ActiveMQArtemisAddress struct {
Expand Down
3 changes: 2 additions & 1 deletion api/v2alpha1/activemqartemisscaledown_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type ActiveMQArtemisScaledownSpec struct {
// Important: Run "make" to regenerate code after modifying this file

// Triggered by main ActiveMQArtemis CRD messageMigration entry
//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Local Only",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:booleanSwitch"}
//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Temporary",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:booleanSwitch"}
LocalOnly bool `json:"localOnly"`
}

Expand All @@ -42,6 +42,7 @@ type ActiveMQArtemisScaledownStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemisscaledowns,shortName=aad
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemisScaledown is the Schema for the activemqartemisscaledowns API
type ActiveMQArtemisScaledown struct {
Expand Down
1 change: 1 addition & 0 deletions api/v2alpha2/activemqartemis_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ type ActiveMQArtemisStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemises
//+kubebuilder:resource:path=activemqartemises,shortName=aa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemis is the Schema for the activemqartemises API
type ActiveMQArtemis struct {
Expand Down
1 change: 1 addition & 0 deletions api/v2alpha2/activemqartemisaddress_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type ActiveMQArtemisAddressStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemisaddresses,shortName=aaa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemisAddress is the Schema for the activemqartemisaddresses API
type ActiveMQArtemisAddress struct {
Expand Down
1 change: 1 addition & 0 deletions api/v2alpha3/activemqartemis_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ type ActiveMQArtemisStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemises
//+kubebuilder:resource:path=activemqartemises,shortName=aa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemis is the Schema for the activemqartemises API
type ActiveMQArtemis struct {
Expand Down
1 change: 1 addition & 0 deletions api/v2alpha3/activemqartemisaddress_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ type ActiveMQArtemisAddressStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemisaddresses,shortName=aaa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemisAddress is the Schema for the activemqartemisaddresses API
type ActiveMQArtemisAddress struct {
Expand Down
1 change: 1 addition & 0 deletions api/v2alpha4/activemqartemis_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ type ActiveMQArtemisStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemises
//+kubebuilder:resource:path=activemqartemises,shortName=aa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemis is the Schema for the activemqartemises API
type ActiveMQArtemis struct {
Expand Down
1 change: 1 addition & 0 deletions api/v2alpha5/activemqartemis_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ type ActiveMQArtemisStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:path=activemqartemises
//+kubebuilder:resource:path=activemqartemises,shortName=aa
//+operator-sdk:csv:customresourcedefinitions:resources={{"Secret", "v1"}}

// ActiveMQArtemis is the Schema for the activemqartemises API
type ActiveMQArtemis struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ spec:
displayName: ActiveMQ Artemis Address
kind: ActiveMQArtemisAddress
name: activemqartemisaddresses.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
specDescriptors:
- description: The Address Name
displayName: Address Name
Expand Down Expand Up @@ -425,18 +429,30 @@ spec:
displayName: Active MQArtemis Address
kind: ActiveMQArtemisAddress
name: activemqartemisaddresses.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
version: v2alpha1
- description: ActiveMQArtemisAddress is the Schema for the activemqartemisaddresses
API
displayName: Active MQArtemis Address
kind: ActiveMQArtemisAddress
name: activemqartemisaddresses.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
version: v2alpha2
- description: ActiveMQArtemisAddress is the Schema for the activemqartemisaddresses
API
displayName: Active MQArtemis Address
kind: ActiveMQArtemisAddress
name: activemqartemisaddresses.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
version: v2alpha3
- description: A stateful deployment of one or more brokers
displayName: ActiveMQ Artemis
Expand Down Expand Up @@ -1390,26 +1406,46 @@ spec:
displayName: Active MQArtemis
kind: ActiveMQArtemis
name: activemqartemises.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
version: v2alpha1
- description: ActiveMQArtemis is the Schema for the activemqartemises API
displayName: Active MQArtemis
kind: ActiveMQArtemis
name: activemqartemises.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
version: v2alpha2
- description: ActiveMQArtemis is the Schema for the activemqartemises API
displayName: Active MQArtemis
kind: ActiveMQArtemis
name: activemqartemises.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
version: v2alpha3
- description: ActiveMQArtemis is the Schema for the activemqartemises API
displayName: Active MQArtemis
kind: ActiveMQArtemis
name: activemqartemises.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
version: v2alpha4
- description: ActiveMQArtemis is the Schema for the activemqartemises API
displayName: Active MQArtemis
kind: ActiveMQArtemis
name: activemqartemises.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
version: v2alpha5
- description: ActiveMQArtemisScaledown is the Schema for the activemqartemisscaledowns
API
Expand All @@ -1422,9 +1458,13 @@ spec:
displayName: Active MQArtemis Scaledown
kind: ActiveMQArtemisScaledown
name: activemqartemisscaledowns.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
specDescriptors:
- description: Triggered by main ActiveMQArtemis CRD messageMigration entry
displayName: Local Only
displayName: Temporary
path: localOnly
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:booleanSwitch
Expand All @@ -1433,6 +1473,10 @@ spec:
displayName: ActiveMQ Artemis Security
kind: ActiveMQArtemisSecurity
name: activemqartemissecurities.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
specDescriptors:
- description: Apply this security config to the broker crs in the current namespace.
A value of * or empty string means applying to all broker crs. Default apply
Expand Down Expand Up @@ -1951,6 +1995,10 @@ spec:
displayName: ActiveMQ Artemis Security
kind: ActiveMQArtemisSecurity
name: activemqartemissecurities.broker.amq.io
resources:
- kind: Secret
name: ""
version: v1
specDescriptors:
- description: Apply this security config to the broker crs in the current namespace.
A value of * or empty string means applying to all broker crs. Default apply
Expand Down Expand Up @@ -2572,7 +2620,7 @@ spec:
fieldPath: metadata.annotations['olm.targetNamespaces']
- name: ENABLE_WEBHOOKS
value: "false"
image: quay.io/msarawan/operator:1.0.14
image: quay.io/artemiscloud/activemq-artemis-operator:1.0.15
livenessProbe:
httpGet:
path: /healthz
Expand Down
12 changes: 6 additions & 6 deletions bundle/tests/scorecard/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ stages:
- entrypoint:
- scorecard-test
- basic-check-spec
image: quay.io/operator-framework/scorecard-test:v1.15.0
image: quay.io/operator-framework/scorecard-test:v1.31
labels:
suite: basic
test: basic-check-spec-test
Expand All @@ -18,7 +18,7 @@ stages:
- entrypoint:
- scorecard-test
- olm-bundle-validation
image: quay.io/operator-framework/scorecard-test:v1.15.0
image: quay.io/operator-framework/scorecard-test:v1.31
labels:
suite: olm
test: olm-bundle-validation-test
Expand All @@ -28,7 +28,7 @@ stages:
- entrypoint:
- scorecard-test
- olm-crds-have-validation
image: quay.io/operator-framework/scorecard-test:v1.15.0
image: quay.io/operator-framework/scorecard-test:v1.31
labels:
suite: olm
test: olm-crds-have-validation-test
Expand All @@ -38,7 +38,7 @@ stages:
- entrypoint:
- scorecard-test
- olm-crds-have-resources
image: quay.io/operator-framework/scorecard-test:v1.15.0
image: quay.io/operator-framework/scorecard-test:v1.31
labels:
suite: olm
test: olm-crds-have-resources-test
Expand All @@ -48,7 +48,7 @@ stages:
- entrypoint:
- scorecard-test
- olm-spec-descriptors
image: quay.io/operator-framework/scorecard-test:v1.15.0
image: quay.io/operator-framework/scorecard-test:v1.31
labels:
suite: olm
test: olm-spec-descriptors-test
Expand All @@ -58,7 +58,7 @@ stages:
- entrypoint:
- scorecard-test
- olm-status-descriptors
image: quay.io/operator-framework/scorecard-test:v1.15.0
image: quay.io/operator-framework/scorecard-test:v1.31
labels:
suite: olm
test: olm-status-descriptors-test
Expand Down
4 changes: 2 additions & 2 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: quay.io/msarawan/operator
newTag: 1.0.14
newName: quay.io/artemiscloud/activemq-artemis-operator
newTag: 1.0.15
Loading

0 comments on commit aab825b

Please sign in to comment.