Skip to content

Commit fb5ec13

Browse files
committed
Removed support for env variable to set Cluster Scoped instance namespaces
Signed-off-by: Anand Francis Joseph <anjoseph@redhat.com>
1 parent 57b00c8 commit fb5ec13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+742
-672
lines changed

.github/workflows/ci-build.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ jobs:
9898
run: |
9999
go mod download
100100
- name: Run the operator locally
101-
env:
102-
ARGOCD_CLUSTER_CONFIG_NAMESPACES: argocd-e2e-cluster-config, argocd-test-impersonation
103101
run: |
104102
set -o pipefail
105103
make install generate fmt vet

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ e2e: ## Run operator e2e tests
177177

178178

179179
start-e2e:
180-
ARGOCD_CLUSTER_CONFIG_NAMESPACES="argocd-e2e-cluster-config, argocd-test-impersonation-1-046, argocd-agent-principal-1-051, argocd-agent-agent-1-052, appset-argocd, appset-old-ns, appset-new-ns" make run
180+
make run
181181

182182
all: test install run e2e ## UnitTest, Run the operator locally and execute e2e tests.
183183

api/v1beta1/clusterargocd_types.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"github.com/argoproj-labs/argocd-operator/common"
2120
corev1 "k8s.io/api/core/v1"
2221
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22+
23+
"github.com/argoproj-labs/argocd-operator/common"
2324
)
2425

2526
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
@@ -61,15 +62,15 @@ type ClusterArgoCD struct {
6162
type ClusterArgoCDList struct {
6263
metav1.TypeMeta `json:",inline"`
6364
metav1.ListMeta `json:"metadata,omitempty"`
64-
Items []ArgoCD `json:"items"`
65+
Items []ClusterArgoCD `json:"items"`
6566
}
6667

6768
// ClusterArgoCDSpec defines the desired state of ArgoCD
6869
// +k8s:openapi-gen=true
6970
type ClusterArgoCDSpec struct {
7071

7172
// ControlPlaneNamespace is the target namespace where Argo CD resources would get deployed.
72-
ControlPlaneNamespace string `json:"controlPlaneNamespace"`
73+
ControlPlaneNamespace string `json:"controlPlaneNamespace,omitempty"`
7374

7475
// ArgoCDApplicationSet defines whether the Argo CD ApplicationSet controller should be installed.
7576
ApplicationSet *ArgoCDApplicationSet `json:"applicationSet,omitempty"`

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/manifests/argocd-operator-controller-manager-metrics-service_v1_service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ kind: Service
33
metadata:
44
creationTimestamp: null
55
labels:
6-
control-plane: controller-manager
6+
control-plane: argocd-operator
77
name: argocd-operator-controller-manager-metrics-service
88
spec:
99
ports:
1010
- name: https
1111
port: 8443
1212
targetPort: 8080
1313
selector:
14-
control-plane: controller-manager
14+
control-plane: argocd-operator
1515
status:
1616
loadBalancer: {}

bundle/manifests/argocd-operator-webhook-service_v1_service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ spec:
99
protocol: TCP
1010
targetPort: 9443
1111
selector:
12-
control-plane: controller-manager
12+
control-plane: argocd-operator
1313
status:
1414
loadBalancer: {}

bundle/manifests/argocd-operator.clusterserviceversion.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ metadata:
257257
capabilities: Deep Insights
258258
categories: Integration & Delivery
259259
certified: "false"
260-
createdAt: "2025-11-04T23:03:04Z"
260+
createdAt: "2025-12-15T06:59:23Z"
261261
description: Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes.
262262
operators.operatorframework.io/builder: operator-sdk-v1.35.0
263263
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
@@ -1910,20 +1910,20 @@ spec:
19101910
serviceAccountName: argocd-operator-controller-manager
19111911
deployments:
19121912
- label:
1913-
control-plane: controller-manager
1913+
control-plane: argocd-operator
19141914
name: argocd-operator-controller-manager
19151915
spec:
19161916
replicas: 1
19171917
selector:
19181918
matchLabels:
1919-
control-plane: controller-manager
1919+
control-plane: argocd-operator
19201920
strategy: {}
19211921
template:
19221922
metadata:
19231923
annotations:
19241924
kubectl.kubernetes.io/default-container: manager
19251925
labels:
1926-
control-plane: controller-manager
1926+
control-plane: argocd-operator
19271927
spec:
19281928
containers:
19291929
- args:

bundle/manifests/argoproj.io_argocds.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8606,8 +8606,10 @@ spec:
86068606
will be mounted on the ApplicationSet Controller (optional).
86078607
type: string
86088608
sourceNamespaces:
8609-
description: SourceNamespaces defines the namespaces applicationset
8610-
resources are allowed to be created in
8609+
description: |-
8610+
SourceNamespaces defines the namespaces applicationset resources are allowed to be created in
8611+
Deprecated: This field is deprecated for namespace-scoped ArgoCD instances and will be removed in a future release.
8612+
Use ClusterArgoCD for cluster-scoped instances that support cross-namespace application management.
86118613
items:
86128614
type: string
86138615
type: array
@@ -10643,8 +10645,10 @@ spec:
1064310645
type: object
1064410646
type: object
1064510647
argoCDAgent:
10646-
description: ArgoCDAgent defines configurations for the ArgoCD Agent
10647-
component.
10648+
description: |-
10649+
ArgoCDAgent defines configurations for the ArgoCD Agent component.
10650+
Deprecated: This field is deprecated for namespace-scoped ArgoCD instances and will be removed in a future release.
10651+
Use ClusterArgoCD for cluster-scoped instances that support cross-namespace application management.
1064810652
properties:
1064910653
agent:
1065010654
description: Agent defines configurations for the Agent component
@@ -17119,9 +17123,10 @@ spec:
1711917123
type: object
1712017124
type: object
1712117125
sourceNamespaces:
17122-
description: SourceNamespaces is a list of namespaces from which
17123-
the notifications controller will watch for ArgoCD Notification
17124-
resources.
17126+
description: |-
17127+
SourceNamespaces is a list of namespaces from which the notifications controller will watch for ArgoCD Notification resources.
17128+
Deprecated: This field is deprecated for namespace-scoped ArgoCD instances and will be removed in a future release.
17129+
Use ClusterArgoCD for cluster-scoped instances that support cross-namespace application management.
1712517130
items:
1712617131
type: string
1712717132
type: array
@@ -27774,8 +27779,10 @@ spec:
2777427779
type: array
2777527780
type: object
2777627781
sourceNamespaces:
27777-
description: SourceNamespaces defines the namespaces application resources
27778-
are allowed to be created in
27782+
description: |-
27783+
SourceNamespaces defines the namespaces application resources are allowed to be created in
27784+
Deprecated: This field is deprecated for namespace-scoped ArgoCD instances and will be removed in a future release.
27785+
Use ClusterArgoCD for cluster-scoped instances that support cross-namespace application management.
2777927786
items:
2778027787
type: string
2778127788
type: array

config/crd/bases/argoproj.io_argocds.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10634,8 +10634,10 @@ spec:
1063410634
type: object
1063510635
type: object
1063610636
argoCDAgent:
10637-
description: ArgoCDAgent defines configurations for the ArgoCD Agent
10638-
component.
10637+
description: |-
10638+
ArgoCDAgent defines configurations for the ArgoCD Agent component.
10639+
Deprecated: This field is deprecated for namespace-scoped ArgoCD instances and will be removed in a future release.
10640+
Use ClusterArgoCD for cluster-scoped instances that support cross-namespace application management.
1063910641
properties:
1064010642
agent:
1064110643
description: Agent defines configurations for the Agent component

config/crd/bases/argoproj.io_clusterargocds.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,6 +2828,10 @@ spec:
28282828
ConfigManagementPlugins was previously used to specify additional
28292829
config management plugins.'
28302830
type: string
2831+
controlPlaneNamespace:
2832+
description: ControlPlaneNamespace is the target namespace where Argo
2833+
CD resources would get deployed.
2834+
type: string
28312835
controller:
28322836
description: Controller defines the Application Controller options
28332837
for ArgoCD.

0 commit comments

Comments
 (0)