This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
pipelinesNamespace #604
Open
dacleyra
wants to merge
9
commits into
kabanero-io:master
Choose a base branch
from
dacleyra:230-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
pipelinesNamespace #604
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c575381
pipelinesNamespace
dacleyra 0e810dd
pipelinesNamespace
dacleyra 3e25ec0
pipelinesNamespace
dacleyra 3e3bc94
230-2
dacleyra 5f85fc6
pipelinesNamespace
dacleyra 5a8ddd0
pipelinesNamespace
dacleyra 2e5a3e6
pipelinesNamespace
dacleyra e191510
resolve merge conflict
dacleyra 92df991
cleanup debug
dacleyra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
config/orchestrations/stack-controller/0.1/stack-controller-kabanero-triggers.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,42 @@ | ||
# This role lets the stack controller create triggerbindings, | ||
# triggertemplates and eventlisteners in the tekton-pipelines | ||
# namespace, as required by the tekton dashboard webhooks | ||
# extension. The Role was created during Kabanero install. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: kabanero-trigger-role | ||
namespace: tekton-pipelines | ||
rules: | ||
- apiGroups: | ||
- tekton.dev | ||
resources: | ||
- triggerbindings | ||
- triggertemplates | ||
- eventlisteners | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- patch | ||
- watch | ||
--- | ||
# This rolebinding lets the stack controller create triggerbindings, | ||
# triggertemplates and eventlisteners in the tekton-pipelines | ||
# namespace, as required by the tekton dashboard webhooks | ||
# extension. The Role was created during Kabanero install. | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ .name }} | ||
namespace: tekton-pipelines | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kabanero-operator-stack-controller | ||
namespace: {{ .kabaneroNamespace }} | ||
roleRef: | ||
kind: Role | ||
name: kabanero-trigger-role | ||
apiGroup: rbac.authorization.k8s.io |
228 changes: 228 additions & 0 deletions
228
...g/orchestrations/stack-controller/0.1/stack-controller-pipelines-namespace-manifests.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,228 @@ | ||
# ServiceAccount, Role & RoleBinding for stack-controller to create & piplines to be run | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: kabanero-pipeline | ||
namespace: {{ .pipelinesNamespace }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: kabanero-pipeline-role | ||
namespace: {{ .pipelinesNamespace }} | ||
rules: | ||
- apiGroups: | ||
- security.openshift.io | ||
resources: | ||
- securitycontextconstraints | ||
verbs: | ||
- use | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- serviceaccounts | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
- services | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods/log | ||
- namespaces | ||
- events | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- delete | ||
- update | ||
- watch | ||
- apiGroups: | ||
- extensions | ||
- apps | ||
resources: | ||
- deployments | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- tekton.dev | ||
resources: | ||
- tasks | ||
- clustertasks | ||
- taskruns | ||
- pipelines | ||
- pipelineruns | ||
- pipelineresources | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- tekton.dev | ||
resources: | ||
- taskruns/finalizers | ||
- pipelineruns/finalizers | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- tekton.dev | ||
resources: | ||
- tasks/status | ||
- clustertasks/status | ||
- taskruns/status | ||
- pipelines/status | ||
- pipelineruns/status | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- kabanero.io | ||
resources: | ||
- stacks | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- "" | ||
- image.openshift.io | ||
resources: | ||
- imagestreams/layers | ||
verbs: | ||
- get | ||
- update | ||
- apiGroups: | ||
- "" | ||
- image.openshift.io | ||
resources: | ||
- imagestreams | ||
verbs: | ||
- create | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: kabanero-pipeline-get-stack-role | ||
namespace: {{ .kabaneroNamespace }} | ||
rules: | ||
- apiGroups: | ||
- kabanero.io | ||
resources: | ||
- stacks | ||
verbs: | ||
- get | ||
- list | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: kabanero-pipeline-role-binding | ||
namespace: {{ .pipelinesNamespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: kabanero-pipeline-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kabanero-pipeline | ||
namespace: {{ .pipelinesNamespace }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: kabanero-pipeline-get-stack-role-binding | ||
namespace: {{ .kabaneroNamespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: kabanero-pipeline-get-stack-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kabanero-pipeline | ||
namespace: {{ .pipelinesNamespace }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: kabanero-operator-stack-controller-tekton | ||
namespace: {{ .pipelinesNamespace }} | ||
rules: | ||
- apiGroups: | ||
- tekton.dev | ||
resources: | ||
- conditions | ||
- pipelines | ||
- tasks | ||
- triggerbindings | ||
- triggertemplates | ||
verbs: | ||
- delete | ||
- get | ||
- create | ||
- list | ||
- update | ||
- watch | ||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: kabanero-operator-stack-controller-tekton | ||
namespace: {{ .pipelinesNamespace }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kabanero-operator-stack-controller | ||
namespace: {{ .kabaneroNamespace }} | ||
roleRef: | ||
kind: Role | ||
name: kabanero-operator-stack-controller | ||
apiGroup: rbac.authorization.k8s.io |
5 changes: 5 additions & 0 deletions
5
config/orchestrations/stack-controller/0.1/stack-controller-pipelines-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,5 @@ | ||
# This namespace is created for tekton pipelineruns | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: {{ .pipelinesNamespace }} |
17 changes: 0 additions & 17 deletions
17
config/orchestrations/stack-controller/0.1/stack-controller-tekton.yaml
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before we delete a stack with the incorrect pipeline namespace, we have to be sure that none of the versions have
desiredState
set to some value. ThedesiredState
is a clue that the stack is being manually managed. I believe there is other code in here that checks thedesiredState
when attempting to sync up with the stack hub index yaml.