-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added back permission to list and watch namespaces (#404)
Signed-off-by: RealAnna <[email protected]>
- Loading branch information
Showing
6 changed files
with
93 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,8 @@ rules: | |
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
|
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,9 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: test | ||
name: test | ||
namespace: test-annotation | ||
status: | ||
readyReplicas: 1 |
48 changes: 48 additions & 0 deletions
48
test/integration/simple-deployment-annotated/00-install.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,48 @@ | ||
|
||
--- | ||
|
||
apiVersion: lifecycle.keptn.sh/v1alpha1 | ||
kind: KeptnTaskDefinition | ||
metadata: | ||
name: pre-deployment-hello | ||
namespace: test-annotation | ||
spec: | ||
function: | ||
inline: | ||
code: | | ||
console.log("Pre-Deployment Task has been executed"); | ||
--- | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: test | ||
name: test | ||
namespace: test-annotation | ||
annotations: | ||
keptn.sh/workload: waiter | ||
keptn.sh/version: "0.4" | ||
keptn.sh/pre-deployment-tasks: pre-deployment-hello | ||
keptn.sh/post-deployment-tasks: pre-deployment-hello | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: test | ||
strategy: {} | ||
template: | ||
metadata: | ||
labels: | ||
app: test | ||
spec: | ||
containers: | ||
- image: busybox | ||
name: busybox | ||
command: ['sh', '-c', 'echo The app is running! && sleep infinity'] | ||
initContainers: | ||
- name: init-myservice | ||
image: busybox:1.28 | ||
command: ['sh', '-c', 'sleep 30'] | ||
|
26 changes: 26 additions & 0 deletions
26
test/integration/simple-deployment-annotated/01-assert.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,26 @@ | ||
apiVersion: lifecycle.keptn.sh/v1alpha1 | ||
kind: KeptnWorkload | ||
metadata: | ||
name: waiter-waiter | ||
namespace: test-annotation | ||
|
||
--- | ||
|
||
apiVersion: lifecycle.keptn.sh/v1alpha1 | ||
kind: KeptnWorkloadInstance | ||
metadata: | ||
name: waiter-waiter-0.4 | ||
namespace: test-annotation | ||
status: | ||
currentPhase: Completed | ||
deploymentStatus: Succeeded | ||
postDeploymentEvaluationStatus: Succeeded | ||
postDeploymentStatus: Succeeded | ||
postDeploymentTaskStatus: | ||
- status: Succeeded | ||
taskDefinitionName: pre-deployment-hello | ||
preDeploymentEvaluationStatus: Succeeded | ||
preDeploymentStatus: Succeeded | ||
preDeploymentTaskStatus: | ||
- status: Succeeded | ||
taskDefinitionName: pre-deployment-hello |