Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix manifests for namespace install #1077

Closed
wants to merge 3 commits into from
Closed

Fix manifests for namespace install #1077

wants to merge 3 commits into from

Conversation

dtaniwaki
Copy link
Member

I wasn't able to use Argo by just installing from the current manifests/namespace-install.yaml because the workflow-controller and argo-ui are installed in default namespace while workflows are expected to run in argo namespace, which the used service account doesn't have access to. I fixed the Role, RoleBinding and the option of argo-ui so it works by just installing the manifests. Please check if this is what you intended.

I didn't update the aggregated manifests which are supposed to be generated by Kustomize because ./hack/update-manifests.sh shows the following error.

$ ./hack/update-manifests.sh
Error: json: unknown field "namespace"
Usage:
  kustomize build [path] [flags]

Examples:
Use the file somedir/kustomization.yaml to generate a set of api resources:
build somedir/

Flags:
  -h, --help   help for build

Global Flags:
      --alsologtostderr                  log to standard error as well as files
      --log_backtrace_at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --log_dir string                   If non-empty, write log files in this directory
      --logtostderr                      log to standard error instead of files
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
  -v, --v Level                          log level for V logs
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging

It seems namespace in manifests/cluster-install/kustomization.yaml is not recognized as a valid field. Could you tell me how to update the aggregated manifests, or please do it on your side.

@dtaniwaki
Copy link
Member Author

I updated kustomize to v1.0.10, then ./hack/update-manifests.sh worked successfully.

@dtaniwaki
Copy link
Member Author

I also added the namespace manifest just in case.

@dtaniwaki
Copy link
Member Author

I think I may misunderstand the purpose of each aggregated manifest. Could someone tell me when we use which?

@jessesuen
Copy link
Member

@dtaniwaki theres a description of the purpose of the two manifests here:
https://github.com/argoproj/argo/tree/master/manifests

Copied here:
install.yaml - Standard argo cluster-wide installation. Controller operates on all namespaces
namespace-install.yaml - Installation of argo which operates on a single namespace. Controller does not require to be run with clusterrole. Installs to argo namespace as an example.

apiVersion: v1
kind: Namespace
metadata:
name: argo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't include namespaces as part of install, since namespaces are not often included in installation manifests. Also, oftentimes namespaces are created for other teams, and user's are not allowed a "vanity" namespace.

For example, internally here, we could not use this set of manifests as a kustomize base, since our namespaces are created using a separate namespace provisioning system, using a special convention for the name.

- watch
- list
---
apiVersion: rbac.authorization.k8s.io/v1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should split the existing argo-role to two roles: argo-cm-role and argo-role. It makes the object management more confusing.

@dtaniwaki
Copy link
Member Author

I'm closing this PR as the changes are not necessary.

@dtaniwaki dtaniwaki closed this Jan 17, 2019
@dtaniwaki dtaniwaki deleted the update-manifests-for-single-namespace-use branch January 17, 2019 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants