diff --git a/Makefile b/Makefile index 1c96195e85e8..404a489cf784 100644 --- a/Makefile +++ b/Makefile @@ -349,6 +349,7 @@ pkg/apiclient/workflowtemplate/workflow-template.swagger.json: $(PROTO_BINARIES) manifests/base/crds/full/argoproj.io_workflows.yaml: $(GOPATH)/bin/controller-gen $(TYPES) ./hack/crdgen.sh ./hack/crds.go ./hack/crdgen.sh +.PHONY: manifests manifests: \ manifests/install.yaml \ manifests/namespace-install.yaml \ @@ -361,14 +362,23 @@ manifests: \ dist/manifests/quick-start-mysql.yaml \ dist/manifests/quick-start-postgres.yaml +.PHONY: manifests/install.yaml manifests/install.yaml: /dev/null kubectl kustomize --load-restrictor=LoadRestrictionsNone manifests/cluster-install | ./hack/auto-gen-msg.sh > manifests/install.yaml + +.PHONY: manifests/namespace-install.yaml manifests/namespace-install.yaml: /dev/null kubectl kustomize --load-restrictor=LoadRestrictionsNone manifests/namespace-install | ./hack/auto-gen-msg.sh > manifests/namespace-install.yaml + +.PHONY: manifests/quick-start-minimal.yaml manifests/quick-start-minimal.yaml: /dev/null kubectl kustomize --load-restrictor=LoadRestrictionsNone manifests/quick-start/minimal | ./hack/auto-gen-msg.sh > manifests/quick-start-minimal.yaml + +.PHONY: manifests/quick-start-mysql.yaml manifests/quick-start-mysql.yaml: /dev/null kubectl kustomize --load-restrictor=LoadRestrictionsNone manifests/quick-start/mysql | ./hack/auto-gen-msg.sh > manifests/quick-start-mysql.yaml + +.PHONY: manifests/quick-start-postgres.yaml manifests/quick-start-postgres.yaml: /dev/null kubectl kustomize --load-restrictor=LoadRestrictionsNone manifests/quick-start/postgres | ./hack/auto-gen-msg.sh > manifests/quick-start-postgres.yaml diff --git a/manifests/cluster-install/kustomization.yaml b/manifests/cluster-install/kustomization.yaml index a1698bd2ac72..986293cd64b0 100644 --- a/manifests/cluster-install/kustomization.yaml +++ b/manifests/cluster-install/kustomization.yaml @@ -5,3 +5,5 @@ resources: - ../base - ./workflow-controller-rbac - ./argo-server-rbac + +namespace: argo \ No newline at end of file diff --git a/manifests/install.yaml b/manifests/install.yaml index c75c1f02b8ae..2e98ba700665 100644 --- a/manifests/install.yaml +++ b/manifests/install.yaml @@ -672,16 +672,19 @@ apiVersion: v1 kind: ServiceAccount metadata: name: argo + namespace: argo --- apiVersion: v1 kind: ServiceAccount metadata: name: argo-server + namespace: argo --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: argo-role + namespace: argo rules: - apiGroups: - coordination.k8s.io @@ -962,6 +965,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: argo-binding + namespace: argo roleRef: apiGroup: rbac.authorization.k8s.io kind: Role @@ -969,6 +973,7 @@ roleRef: subjects: - kind: ServiceAccount name: argo + namespace: argo --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -981,6 +986,7 @@ roleRef: subjects: - kind: ServiceAccount name: argo + namespace: argo --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -993,16 +999,19 @@ roleRef: subjects: - kind: ServiceAccount name: argo-server + namespace: argo --- apiVersion: v1 kind: ConfigMap metadata: name: workflow-controller-configmap + namespace: argo --- apiVersion: v1 kind: Service metadata: name: argo-server + namespace: argo spec: ports: - name: web @@ -1017,6 +1026,7 @@ metadata: labels: app: workflow-controller name: workflow-controller-metrics + namespace: argo spec: ports: - name: metrics @@ -1036,6 +1046,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: argo-server + namespace: argo spec: selector: matchLabels: @@ -1084,6 +1095,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: workflow-controller + namespace: argo spec: selector: matchLabels: