-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from projectsyn/no-prune-of-ns-cattle-system
Do not prune the namespace if the SUP is installed in cattle-system
- Loading branch information
Showing
12 changed files
with
696 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
parameters: | ||
system_upgrade_controller: | ||
namespace: cattle-system |
Empty file.
8 changes: 8 additions & 0 deletions
8
...olden/cattle-system/system-upgrade-controller/system-upgrade-controller/00_namespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: Prune=false | ||
labels: | ||
name: cattle-system | ||
name: cattle-system |
8 changes: 8 additions & 0 deletions
8
.../cattle-system/system-upgrade-controller/system-upgrade-controller/01_serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: system-upgrade | ||
name: system-upgrade | ||
namespace: cattle-system |
16 changes: 16 additions & 0 deletions
16
...tle-system/system-upgrade-controller/system-upgrade-controller/02_clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: system-upgrade | ||
name: system-upgrade | ||
namespace: cattle-system | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: system-upgrade | ||
namespace: cattle-system |
18 changes: 18 additions & 0 deletions
18
...olden/cattle-system/system-upgrade-controller/system-upgrade-controller/03_configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: v1 | ||
data: | ||
SYSTEM_UPGRADE_CONTROLLER_DEBUG: 'false' | ||
SYSTEM_UPGRADE_CONTROLLER_THREADS: '2' | ||
SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: '900' | ||
SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: '3' | ||
SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: Always | ||
SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: rancher/kubectl:v1.17.0 | ||
SYSTEM_UPGRADE_JOB_PRIVILEGED: 'true' | ||
SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: '900' | ||
SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: 15m | ||
kind: ConfigMap | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: default-controller-env | ||
name: default-controller-env | ||
namespace: cattle-system |
72 changes: 72 additions & 0 deletions
72
...lden/cattle-system/system-upgrade-controller/system-upgrade-controller/04_deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/instance: c-green-test-1234 | ||
app.kubernetes.io/managed-by: syn | ||
app.kubernetes.io/name: system-upgrade-controller | ||
name: system-upgrade-controller | ||
name: system-upgrade-controller | ||
namespace: cattle-system | ||
spec: | ||
minReadySeconds: 30 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
upgrade.cattle.io/controller: system-upgrade-controller | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
upgrade.cattle.io/controller: system-upgrade-controller | ||
spec: | ||
affinity: {} | ||
containers: | ||
- args: [] | ||
env: | ||
- name: SYSTEM_UPGRADE_CONTROLLER_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.labels['upgrade.cattle.io/controller'] | ||
- name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
envFrom: | ||
- configMapRef: | ||
name: default-controller-env | ||
image: docker.io/rancher/system-upgrade-controller:v0.13.1 | ||
imagePullPolicy: IfNotPresent | ||
name: system-upgrade-controller | ||
ports: [] | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 128Mi | ||
requests: | ||
cpu: 250m | ||
memory: 64Mi | ||
stdin: false | ||
tty: false | ||
volumeMounts: | ||
- mountPath: /etc/ssl | ||
name: etc-ssl | ||
- mountPath: /tmp | ||
name: tmp | ||
imagePullSecrets: [] | ||
initContainers: [] | ||
serviceAccountName: system-upgrade | ||
terminationGracePeriodSeconds: 30 | ||
volumes: | ||
- hostPath: | ||
path: /etc/ssl | ||
type: Directory | ||
name: etc-ssl | ||
- emptyDir: {} | ||
name: tmp |
Empty file.
Oops, something went wrong.