Skip to content

Commit

Permalink
Merge pull request #39 from openshift-cherrypick-robot/cherry-pick-34…
Browse files Browse the repository at this point in the history
…-to-release-0.1

[release-0.1] CRDs are namespaced
  • Loading branch information
openshift-merge-robot authored Apr 18, 2023
2 parents 783dcaa + 9632a6c commit 5c15368
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/fenceagentsremediation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type FenceAgentsRemediationStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster,shortName=far
//+kubebuilder:resource:shortName=far

// +operator-sdk:csv:customresourcedefinitions:resources={{"FenceAgentsRemediation","v1alpha1","fenceagentsremediations"}}
// FenceAgentsRemediation is the Schema for the fenceagentsremediations API
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/fenceagentsremediationtemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type FenceAgentsRemediationTemplateStatus struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster,shortName=fart
//+kubebuilder:resource:shortName=fart

// FenceAgentsRemediationTemplate is the Schema for the fenceagentsremediationtemplates API
// +operator-sdk:csv:customresourcedefinitions:resources={{"FenceAgentsRemediationTemplate","v1alpha1","fenceagentsremediationtemplates"}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
shortNames:
- far
singular: fenceagentsremediation
scope: Cluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
shortNames:
- fart
singular: fenceagentsremediationtemplate
scope: Cluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
shortNames:
- far
singular: fenceagentsremediation
scope: Cluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
shortNames:
- fart
singular: fenceagentsremediationtemplate
scope: Cluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
Expand Down
7 changes: 5 additions & 2 deletions test/e2e/far_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import (
"github.com/medik8s/fence-agents-remediation/api/v1alpha1"
)

const fenceAgentDummyName = "echo"
const (
fenceAgentDummyName = "echo"
testNamespace = "openshift-operators"
)

var _ = Describe("FAR E2e", func() {
Context("fence agent - dummy", func() {
Expand All @@ -41,7 +44,7 @@ var _ = Describe("FAR E2e", func() {
// createFAR assigns the input to FenceAgentsRemediation object, creates CR with offset, and returns the CR object
func createFAR(nodeName string, agent string, sharedParameters map[v1alpha1.ParameterName]string, nodeParameters map[v1alpha1.ParameterName]map[v1alpha1.NodeName]string) *v1alpha1.FenceAgentsRemediation {
far := &v1alpha1.FenceAgentsRemediation{
ObjectMeta: metav1.ObjectMeta{Name: nodeName},
ObjectMeta: metav1.ObjectMeta{Name: nodeName, Namespace: testNamespace},
Spec: v1alpha1.FenceAgentsRemediationSpec{
Agent: agent,
SharedParameters: sharedParameters,
Expand Down

0 comments on commit 5c15368

Please sign in to comment.