-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update TestHostPreflightCustomSpec to use real releases
- Loading branch information
Showing
28 changed files
with
881 additions
and
128 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,33 @@ | ||
apiVersion: velero.io/v1 | ||
kind: Backup | ||
metadata: | ||
name: backup | ||
annotations: | ||
preserve: me | ||
spec: | ||
ttl: 36h0m0s | ||
includedNamespaces: | ||
- kotsadm | ||
orLabelSelectors: | ||
- matchExpressions: | ||
- { key: kots.io/kotsadm, operator: NotIn, values: ["true"] } | ||
hooks: | ||
resources: | ||
- name: test-hook | ||
includedResources: | ||
- 'pods' | ||
labelSelector: | ||
matchLabels: | ||
app: example | ||
component: nginx | ||
pre: | ||
- exec: | ||
container: nginx | ||
command: | ||
- /bin/uname | ||
- -a | ||
post: | ||
- exec: | ||
command: | ||
- /bin/uname | ||
- -a |
73 changes: 73 additions & 0 deletions
73
e2e/kots-release-install-failing-preflights/cluster-config.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,73 @@ | ||
apiVersion: embeddedcluster.replicated.com/v1beta1 | ||
kind: Config | ||
metadata: | ||
name: "testconfig" | ||
spec: | ||
version: "__version_string__" | ||
binaryOverrideUrl: "__release_url__" | ||
metadataOverrideUrl: "__metadata_url__" | ||
roles: | ||
controller: | ||
labels: | ||
controller-label: controller-label-value | ||
name: controller-test | ||
custom: | ||
- labels: | ||
abc-test-label: abc-test-label-value | ||
abc-test-label-two: abc-test-label-value-2 | ||
name: abc | ||
- labels: | ||
xyz-test-label: xyz-value | ||
name: xyz | ||
unsupportedOverrides: | ||
builtInExtensions: | ||
- name: admin-console | ||
values: | | ||
labels: | ||
release-custom-label: release-clustom-value | ||
- name: embedded-cluster-operator | ||
values: | | ||
global: | ||
labels: | ||
release-custom-label: release-clustom-value | ||
k0s: | | ||
config: | ||
metadata: | ||
name: foo | ||
spec: | ||
telemetry: | ||
enabled: false | ||
extensions: | ||
helm: | ||
repositories: | ||
- name: ingress-nginx | ||
url: https://kubernetes.github.io/ingress-nginx | ||
- name: okgolove | ||
url: https://okgolove.github.io/helm-charts/ | ||
charts: | ||
- name: ingress-nginx | ||
chartname: ingress-nginx/ingress-nginx | ||
namespace: ingress-nginx | ||
version: "4.11.3" | ||
values: | | ||
controller: | ||
service: | ||
type: NodePort | ||
nodePorts: | ||
http: "80" | ||
https: "443" | ||
image: | ||
digest: "" | ||
digestChroot: "" | ||
admissionWebhooks: | ||
patch: | ||
image: | ||
digest: "" | ||
- chartname: okgolove/goldpinger | ||
name: goldpinger | ||
namespace: goldpinger | ||
version: 6.1.2 | ||
order: 11 | ||
values: | | ||
image: | ||
repository: proxy.replicated.com/anonymous/bloomberg/goldpinger |
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,13 @@ | ||
apiVersion: kots.io/v1beta1 | ||
kind: Config | ||
spec: | ||
groups: | ||
- name: config_group | ||
title: The First Config Group | ||
items: | ||
- name: hostname | ||
title: Hostname | ||
type: text | ||
- name: pw | ||
title: Password | ||
type: password |
36 changes: 36 additions & 0 deletions
36
e2e/kots-release-install-failing-preflights/deployment-2.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,36 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: second | ||
labels: | ||
app: second | ||
replicated.com/disaster-recovery: app | ||
spec: | ||
replicas: 0 | ||
selector: | ||
matchLabels: | ||
app: second | ||
template: | ||
metadata: | ||
labels: | ||
app: second | ||
spec: | ||
affinity: | ||
podAntiAffinity: | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- weight: 100 | ||
podAffinityTerm: | ||
labelSelector: | ||
matchExpressions: | ||
- key: app | ||
operator: In | ||
values: | ||
- second | ||
topologyKey: "kubernetes.io/hostname" | ||
containers: | ||
- name: nginx | ||
image: proxy.replicated.com/anonymous/nginx:1.24-alpine | ||
resources: | ||
limits: | ||
memory: '32Mi' | ||
cpu: '50m' |
38 changes: 38 additions & 0 deletions
38
e2e/kots-release-install-failing-preflights/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,38 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx | ||
labels: | ||
app: example | ||
component: nginx | ||
replicated.com/disaster-recovery: app | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: example | ||
component: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: example | ||
component: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: proxy.replicated.com/anonymous/nginx:1.24-alpine | ||
resources: | ||
limits: | ||
memory: '64Mi' | ||
cpu: '50m' | ||
env: | ||
- name: APP_SEQUENCE | ||
value: "{{repl Cursor }}" | ||
- name: APP_VERSION | ||
value: "{{repl VersionLabel }}" | ||
- name: APP_CHANNEL | ||
value: "{{repl ChannelName }}" | ||
- name: CONFIG_HOSTNAME | ||
value: '{{repl ConfigOption "hostname" }}' | ||
- name: CONFIG_PASSWORD | ||
value: '{{repl ConfigOption "pw" }}' |
53 changes: 53 additions & 0 deletions
53
e2e/kots-release-install-failing-preflights/failing-preflights.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,53 @@ | ||
apiVersion: troubleshoot.sh/v1beta2 | ||
kind: HostPreflight | ||
spec: | ||
collectors: | ||
- tcpPortStatus: | ||
collectorName: Port 24 | ||
port: 24 | ||
- tcpPortStatus: | ||
collectorName: Port 22 | ||
port: 22 | ||
analyzers: | ||
- tcpPortStatus: | ||
checkName: Port 24 | ||
collectorName: Port 24 | ||
outcomes: | ||
- fail: | ||
when: connection-refused | ||
message: Connection to port 24 was refused. | ||
- warn: | ||
when: address-in-use | ||
message: Another process was already listening on port 24. | ||
- fail: | ||
when: connection-timeout | ||
message: Timed out connecting to port 24. | ||
- fail: | ||
when: error | ||
message: Unexpected port status | ||
- pass: | ||
when: connected | ||
message: Port 24 is available | ||
- warn: | ||
message: Unexpected port status | ||
- tcpPortStatus: | ||
checkName: Port 22 | ||
collectorName: Port 22 | ||
outcomes: | ||
- fail: | ||
when: connection-refused | ||
message: Connection to port 22 was refused. | ||
- fail: | ||
when: address-in-use | ||
message: Another process was already listening on port 22. | ||
- fail: | ||
when: connection-timeout | ||
message: Timed out connecting to port 22. | ||
- fail: | ||
when: error | ||
message: Unexpected port status | ||
- pass: | ||
when: connected | ||
message: Port 22 is available | ||
- warn: | ||
message: Unexpected port status |
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,10 @@ | ||
apiVersion: app.k8s.io/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: "nginx" | ||
spec: | ||
descriptor: | ||
links: | ||
- description: Open App | ||
# needs to match applicationUrl in kots-app.yaml | ||
url: "http://nginx" |
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: kots.io/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: nginx | ||
spec: | ||
title: Embedded Cluster Smoke Test Staging App | ||
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/kubernetes/icon/color/kubernetes-icon-color.png | ||
allowRollback: true | ||
statusInformers: | ||
- deployment/nginx | ||
ports: | ||
- serviceName: "nginx" | ||
servicePort: 80 | ||
localPort: 8888 | ||
applicationUrl: "http://nginx" |
Oops, something went wrong.