Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k8s-argocd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
k8s-let
k8s-argocd
Commits
dfc7f987
Commit
dfc7f987
authored
Nov 16, 2020
by
Bengt Giger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed YAML, caused yamllint error
parent
4ae17201
Pipeline
#78588
passed with stage
in 13 seconds
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
29 deletions
+30
-29
.gitlab-ci.yml
.gitlab-ci.yml
+12
-0
.yamllint
.yamllint
+6
-0
ansible/roles/k8s-base/tasks/main.yml
ansible/roles/k8s-base/tasks/main.yml
+2
-3
ansible/roles/k8s-controller/tasks/debian.yml
ansible/roles/k8s-controller/tasks/debian.yml
+0
-2
ansible/roles/k8s-controller/tasks/main.yml
ansible/roles/k8s-controller/tasks/main.yml
+7
-13
ansible/roles/k8s-controller/tasks/redhat.yml
ansible/roles/k8s-controller/tasks/redhat.yml
+0
-1
ansible/roles/k8s-projects/tasks/namespaces.yml
ansible/roles/k8s-projects/tasks/namespaces.yml
+2
-2
ansible/roles/k8s-projects/tasks/projects.yml
ansible/roles/k8s-projects/tasks/projects.yml
+0
-1
ansible/roles/requirements.yml
ansible/roles/requirements.yml
+0
-1
base/argocd-server-service.yml
base/argocd-server-service.yml
+0
-1
tst/argocd-ingress.yml
tst/argocd-ingress.yml
+1
-2
tst/argocd-rbac-cm.yml
tst/argocd-rbac-cm.yml
+0
-1
tst/kustomization.yml
tst/kustomization.yml
+0
-1
tst/self.yml
tst/self.yml
+0
-1
No files found.
.gitlab-ci.yml
0 → 100644
View file @
dfc7f987
stages
:
-
lint
lint-yaml
:
stage
:
lint
image
:
sdesbure/yamllint
tags
:
-
k8s-runner
script
:
-
for file in $(find . -name "*.y*ml");
do yamllint $file;
done
.yamllint
0 → 100644
View file @
dfc7f987
extends: relaxed
rules:
line-length:
max: 120
level: warning
ansible/roles/k8s-base/tasks/main.yml
View file @
dfc7f987
...
...
@@ -13,9 +13,8 @@
kind
:
Namespace
metadata
:
name
:
argocd
annotations
:
annotations
:
field.cattle.io/projectId
:
"
{{
project_system.stdout
}}"
-
name
:
Install sealed-secrets encryption environment
command
:
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.12.6/controller.yaml
ansible/roles/k8s-controller/tasks/debian.yml
View file @
dfc7f987
...
...
@@ -7,5 +7,3 @@
-
name
:
Repository for kubectl
apt_repository
:
repo
:
deb https://apt.kubernetes.io/ kubernetes-xenial main
ansible/roles/k8s-controller/tasks/main.yml
View file @
dfc7f987
...
...
@@ -6,7 +6,7 @@
package
:
name
:
kubectl
state
:
latest
-
name
:
Create tarball cache directory
file
:
path
:
"
{{
k8s_tarball_cache
}}"
...
...
@@ -15,13 +15,13 @@
-
name
:
Install Python libraries
pip
:
name
:
openshift
# Install rancher CLI
-
name
:
Determine rancher CLI latest version
shell
:
curl --silent "https://api.github.com/repos/rancher/cli/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'
register
:
rancher_version
changed_when
:
false
-
name
:
Get rancher CLI tarball
get_url
:
url
:
"
https://github.com/rancher/cli/releases/download/{{
rancher_version.stdout
}}/rancher-linux-amd64-{{
rancher_version.stdout
}}.tar.gz"
...
...
@@ -35,24 +35,21 @@
tempfile
:
state
:
directory
register
:
tmpdir
-
name
:
Unarchive rancher CLI
unarchive
:
src
:
"
{{
k8s_tarball_cache
}}/rancher-linux-amd64-{{
rancher_version.stdout
}}.tar.gz"
dest
:
"
{{
tmpdir.path
}}"
remote_src
:
yes
-
name
:
Copy rancher CLI
copy
:
src
:
"
{{
tmpdir.path
}}/rancher-{{
rancher_version.stdout
}}/rancher"
dest
:
"
{{
k8s_install_basedir
}}/rancher"
mode
:
0755
-
name
:
Remove temporary directory
file
:
path
:
"
{{
tmpdir.path
}}"
state
:
absent
when
:
new_rancher.changed == True
# Install kubeseal
...
...
@@ -60,13 +57,13 @@
shell
:
curl --silent "https://api.github.com/repos/bitnami-labs/sealed-secrets/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'
register
:
kubeseal_version
changed_when
:
false
-
name
:
Install kubeseal
get_url
:
url
:
"
https://github.com/bitnami-labs/sealed-secrets/releases/download/{{
kubeseal_version.stdout
}}/kubeseal-linux-amd64"
dest
:
"
{{
k8s_install_basedir
}}/kubeseal"
mode
:
0755
-
name
:
Set environment for kubeseal
copy
:
dest
:
/etc/profile.d/kubeseal.sh
...
...
@@ -80,7 +77,7 @@
shell
:
curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'
register
:
argocd_version
changed_when
:
false
-
name
:
Install argocd CLI
get_url
:
url
:
"
https://github.com/argoproj/argo-cd/releases/download/{{
argocd_version.stdout
}}/argocd-linux-amd64"
...
...
@@ -101,17 +98,14 @@
-
name
:
Install kustomize
block
:
-
name
:
Unarchive kustomize
unarchive
:
src
:
"
{{
k8s_tarball_cache
}}/kustomize_{{
kustomize_version.stdout
}}_linux_amd64.tar.gz"
dest
:
"
/tmp"
remote_src
:
yes
-
name
:
Copy kustomize
copy
:
src
:
"
/tmp/kustomize"
dest
:
"
{{
k8s_install_basedir
}}/kustomize"
mode
:
0755
when
:
new_kustomize.changed == True
ansible/roles/k8s-controller/tasks/redhat.yml
View file @
dfc7f987
...
...
@@ -9,4 +9,3 @@
gpgkey
:
-
https://packages.cloud.google.com/yum/doc/yum-key.gpg
-
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
ansible/roles/k8s-projects/tasks/namespaces.yml
View file @
dfc7f987
...
...
@@ -3,7 +3,7 @@
shell
:
"
rancher
project
list
|
grep
-e
'{{
namespace.project
}}'
|
cut
-c
1-15"
register
:
project_id
changed_when
:
false
-
name
:
"
Assign
namespace
'{{
namespace.name
}}'
to
project
'{{
namespace.project
}}"
community.kubernetes.k8s
:
state
:
present
...
...
@@ -13,5 +13,5 @@
kind
:
Namespace
metadata
:
name
:
"
{{
namespace.name
}}"
annotations
:
annotations
:
field.cattle.io/projectId
:
"
{{
project_id.stdout
}}"
ansible/roles/k8s-projects/tasks/projects.yml
View file @
dfc7f987
...
...
@@ -7,4 +7,3 @@
-
name
:
"
Create
'{{
project.name
}}'
project"
shell
:
"
rancher
project
create
--description
'{{
project.description
}}'
{{
project.name
}}"
when
:
project_name.stdout == ""
ansible/roles/requirements.yml
View file @
dfc7f987
---
collections
:
-
name
:
community.kubernetes
base/argocd-server-service.yml
View file @
dfc7f987
...
...
@@ -11,4 +11,3 @@
-
op
:
replace
path
:
/spec/type
value
:
NodePort
tst/argocd-ingress.yml
View file @
dfc7f987
...
...
@@ -19,7 +19,7 @@ spec:
-
backend
:
serviceName
:
argocd-server
servicePort
:
443
-
host
:
argocd-cltst.let
http
:
paths
:
...
...
@@ -31,4 +31,3 @@ spec:
-
argocd-cltst.let.ethz.ch
-
argocd-cltst.let
secretName
:
auto-cert-argocd
tst/argocd-rbac-cm.yml
View file @
dfc7f987
...
...
@@ -30,4 +30,3 @@ data:
kind
:
ConfigMap
metadata
:
name
:
argocd-rbac-cm
tst/kustomization.yml
View file @
dfc7f987
...
...
@@ -19,4 +19,3 @@ patchesStrategicMerge:
# enable patch and ClusterIssuer in argocd-ingress.yml to use cert-manager certificate.
# Causes issues with argocd commandline tool
# - ./argocd-redirect-patch.yml
tst/self.yml
View file @
dfc7f987
...
...
@@ -15,4 +15,3 @@ spec:
targetRevision
:
HEAD
syncPolicy
:
automated
:
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment