-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitHubDeployment
resource
#809
Draft
int128
wants to merge
1
commit into
main
Choose a base branch
from
github-deployment-resource
base: main
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.
Draft
Conversation
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
diff
config/default/apiextensions.k8s.io_v1_customresourcedefinition_githubdeployments.argocdcommenter.int128.github.io.yaml--- /dev/null
+++ b/tmp/kustomize-action-IuIxnb/config/default/apiextensions.k8s.io_v1_customresourcedefinition_githubdeployments.argocdcommenter.int128.github.io.yaml
@@ -0,0 +1,60 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ controller-gen.kubebuilder.io/version: v0.9.2
+ creationTimestamp: null
+ name: githubdeployments.argocdcommenter.int128.github.io
+spec:
+ group: argocdcommenter.int128.github.io
+ names:
+ kind: GitHubDeployment
+ listKind: GitHubDeploymentList
+ plural: githubdeployments
+ singular: githubdeployment
+ scope: Namespaced
+ versions:
+ - name: v1
+ schema:
+ openAPIV3Schema:
+ description: GitHubDeployment is the Schema for the githubdeployments API
+ properties:
+ apiVersion:
+ description: 'APIVersion defines the versioned schema of this representation
+ of an object. Servers should convert recognized schemas to the latest
+ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
+ type: string
+ kind:
+ description: 'Kind is a string value representing the REST resource this
+ object represents. Servers may infer this from the endpoint the client
+ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: GitHubDeploymentSpec defines the desired state of GitHubDeployment
+ properties:
+ url:
+ description: GitHub Deployment URL in the form of https://api.github.com/repos/OWNER/REPO/deployments/ID
+ type: string
+ type: object
+ status:
+ description: GitHubDeploymentStatus defines the observed state of GitHubDeployment
+ properties:
+ lastHealthEvent:
+ properties:
+ deploymentURL:
+ type: string
+ health:
+ description: Represents resource health status
+ type: string
+ updatedAt:
+ format: date-time
+ type: string
+ type: object
+ type: object
+ type: object
+ served: true
+ storage: true
+ subresources:
+ status: {} config/default/rbac.authorization.k8s.io_v1_clusterrole_argocd-commenter-manager-role.yaml--- a/tmp/kustomize-action-kftdWa/config/default/rbac.authorization.k8s.io_v1_clusterrole_argocd-commenter-manager-role.yaml
+++ b/tmp/kustomize-action-IuIxnb/config/default/rbac.authorization.k8s.io_v1_clusterrole_argocd-commenter-manager-role.yaml
@@ -30,6 +30,32 @@ rules:
- get
- patch
- update
+- apiGroups:
+ - argocdcommenter.int128.github.io
+ resources:
+ - githubdeployments
+ verbs:
+ - create
+ - delete
+ - get
+ - list
+ - patch
+ - update
+ - watch
+- apiGroups:
+ - argocdcommenter.int128.github.io
+ resources:
+ - githubdeployments/finalizers
+ verbs:
+ - update
+- apiGroups:
+ - argocdcommenter.int128.github.io
+ resources:
+ - githubdeployments/status
+ verbs:
+ - get
+ - patch
+ - update
- apiGroups:
- argoproj.io
resources: e2e_test/controller/apiextensions.k8s.io_v1_customresourcedefinition_githubdeployments.argocdcommenter.int128.github.io.yaml--- /dev/null
+++ b/tmp/kustomize-action-IuIxnb/e2e_test/controller/apiextensions.k8s.io_v1_customresourcedefinition_githubdeployments.argocdcommenter.int128.github.io.yaml
@@ -0,0 +1,60 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ annotations:
+ controller-gen.kubebuilder.io/version: v0.9.2
+ creationTimestamp: null
+ name: githubdeployments.argocdcommenter.int128.github.io
+spec:
+ group: argocdcommenter.int128.github.io
+ names:
+ kind: GitHubDeployment
+ listKind: GitHubDeploymentList
+ plural: githubdeployments
+ singular: githubdeployment
+ scope: Namespaced
+ versions:
+ - name: v1
+ schema:
+ openAPIV3Schema:
+ description: GitHubDeployment is the Schema for the githubdeployments API
+ properties:
+ apiVersion:
+ description: 'APIVersion defines the versioned schema of this representation
+ of an object. Servers should convert recognized schemas to the latest
+ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
+ type: string
+ kind:
+ description: 'Kind is a string value representing the REST resource this
+ object represents. Servers may infer this from the endpoint the client
+ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
+ type: string
+ metadata:
+ type: object
+ spec:
+ description: GitHubDeploymentSpec defines the desired state of GitHubDeployment
+ properties:
+ url:
+ description: GitHub Deployment URL in the form of https://api.github.com/repos/OWNER/REPO/deployments/ID
+ type: string
+ type: object
+ status:
+ description: GitHubDeploymentStatus defines the observed state of GitHubDeployment
+ properties:
+ lastHealthEvent:
+ properties:
+ deploymentURL:
+ type: string
+ health:
+ description: Represents resource health status
+ type: string
+ updatedAt:
+ format: date-time
+ type: string
+ type: object
+ type: object
+ type: object
+ served: true
+ storage: true
+ subresources:
+ status: {} e2e_test/controller/rbac.authorization.k8s.io_v1_clusterrole_argocd-commenter-manager-role.yaml--- a/tmp/kustomize-action-kftdWa/e2e_test/controller/rbac.authorization.k8s.io_v1_clusterrole_argocd-commenter-manager-role.yaml
+++ b/tmp/kustomize-action-IuIxnb/e2e_test/controller/rbac.authorization.k8s.io_v1_clusterrole_argocd-commenter-manager-role.yaml
@@ -30,6 +30,32 @@ rules:
- get
- patch
- update
+- apiGroups:
+ - argocdcommenter.int128.github.io
+ resources:
+ - githubdeployments
+ verbs:
+ - create
+ - delete
+ - get
+ - list
+ - patch
+ - update
+ - watch
+- apiGroups:
+ - argocdcommenter.int128.github.io
+ resources:
+ - githubdeployments/finalizers
+ verbs:
+ - update
+- apiGroups:
+ - argocdcommenter.int128.github.io
+ resources:
+ - githubdeployments/status
+ verbs:
+ - get
+ - patch
+ - update
- apiGroups:
- argoproj.io
resources: e2e_test/fixture/app1/argocdcommenter.int128.github.io_v1_githubdeployment_app1.yaml--- /dev/null
+++ b/tmp/kustomize-action-IuIxnb/e2e_test/fixture/app1/argocdcommenter.int128.github.io_v1_githubdeployment_app1.yaml
@@ -0,0 +1,7 @@
+apiVersion: argocdcommenter.int128.github.io/v1
+kind: GitHubDeployment
+metadata:
+ name: app1
+ namespace: app1
+spec:
+ url: DEPLOYMENT_URL e2e_test/fixture/app2/argocdcommenter.int128.github.io_v1_githubdeployment_app2.yaml--- /dev/null
+++ b/tmp/kustomize-action-IuIxnb/e2e_test/fixture/app2/argocdcommenter.int128.github.io_v1_githubdeployment_app2.yaml
@@ -0,0 +1,7 @@
+apiVersion: argocdcommenter.int128.github.io/v1
+kind: GitHubDeployment
+metadata:
+ name: app2
+ namespace: app2
+spec:
+ url: DEPLOYMENT_URL e2e_test/fixture/app3/argocdcommenter.int128.github.io_v1_githubdeployment_app3.yaml--- /dev/null
+++ b/tmp/kustomize-action-IuIxnb/e2e_test/fixture/app3/argocdcommenter.int128.github.io_v1_githubdeployment_app3.yaml
@@ -0,0 +1,7 @@
+apiVersion: argocdcommenter.int128.github.io/v1
+kind: GitHubDeployment
+metadata:
+ name: app3
+ namespace: app3
+spec:
+ url: DEPLOYMENT_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.