by shigemk2

当面は技術的なことしか書かない

cert-manager Let's Encrypt ACMEなど

  • ACME(Automate Certificate Management Environment)
    • 自動で証明書を管理してくれる環境
  • Issuer
    • 和訳だと発行者
    • だから証明書を発行してくれる人
  • Challenge / Order
    • 自分達がドメインを持っていることをACME発行者に証明するのがチャレンジ
    • オーダーのための複数のACMEチャレンジをカプセル化し、1つまたは複数のチャレンジを管理する

cert-manager.io

zenn.dev

letsencrypt.org

letsencrypt.org

チャレンジやオーダーがうまくいっているかどうかは kubectl get order -A とか kubectl get challenge -A とかで確認する

stackoverflow.com

awscli 2.10.0

  • api-change:connect: This update provides the Wisdom session ARN for contacts enabled for Wisdom in the chat channel.
  • api-change:appconfigdata: AWS AppConfig now offers the option to set a version label on hosted configuration versions. If a labeled hosted configuration version is deployed, its version label is available in the GetLatestConfiguration response.
  • api-change:datasync: With this launch, we are giving customers the ability to use older SMB protocol versions, enabling them to use DataSync to copy data to and from their legacy storage arrays.
  • api-change:ec2: Adds support for waiters that automatically poll for an imported snapshot until it reaches the completed state.
  • api-change:autoscaling: You can now either terminate/replace, ignore, or wait for EC2 Auto Scaling instances on standby or protected from scale in. Also, you can also roll back changes from a failed instance refresh.
  • bugfix:s3: AWS CLI no longer overwrites user supplied Content-Encoding with aws-chunked when user also supplies ChecksumAlgorithm.
  • feature:Source Distribution: Add supported autotools interface for building from source.
  • api-change:sns: This release adds support for SNS X-Ray active tracing as well as other updates.
  • api-change:ec2: With this release customers can turn host maintenance on or off when allocating or modifying a supported dedicated host. Host maintenance is turned on by default for supported hosts.
  • api-change:sagemaker: Amazon SageMaker Autopilot adds support for selecting algorithms in CreateAutoMLJob API.
  • api-change:appconfig: AWS AppConfig now offers the option to set a version label on hosted configuration versions. Version labels allow you to identify specific hosted configuration versions based on an alternate versioning scheme that you define.
  • api-change:account: This release of the Account Management API enables customers to view and manage whether AWS Opt-In Regions are enabled or disabled for their Account. For more information, see https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html
  • api-change:polly: Amazon Polly adds two new neural Japanese voices - Kazuha, Tomoko
  • api-change:snowball: Adds support for EKS Anywhere on Snowball. AWS Snow Family customers can now install EKS Anywhere service on Snowball Edge Compute Optimized devices.

github.com

gh pr comment edit-last

edit-lastオプションは同じauthorのコメントが既にある場合にコメントを編集するオプションだけれど、コメントが無い場合は no comments found for current user エラーを返す。

github.com

cli.github.com

どうしたもんかなと思ったら割と最近にissueが立てられていたので、そのうちなんとかしてくれるんじゃ無いだろうか。

github.com

KUBECTL_EXTERNAL_DIFF

KUBECTL_EXTERNAL_DIFF environment variable can be used to select your own diff command. Users can use external commands with params too, example: KUBECTL_EXTERNAL_DIFF="colordiff -N -u"

kubectl diffでは外部のdiffコマンドを参照していて、デフォルトではdiffで、色付けされていないから、diff結果を色付けしたいならcolordiffを使う。

KUBECTL_EXTERNAL_DIFF="colordiff -N -u"

kubernetes.io

Cloud Buildの変数 GitHub系

  • $TRIGGER_NAME: トリガーに関連付けられた名前
  • $COMMIT_SHA: ビルドに関連付けられた commit ID
  • $REVISION_ID: ビルドに関連付けられた commit ID
  • $SHORT_SHA: COMMIT_SHA の最初の 7 文字
  • $REPO_NAME: リポジトリの名前
  • $BRANCH_NAME: ブランチの名前
  • $TAG_NAME: タグの名前
  • $REF_NAME: ブランチまたはタグの名前
  • $_HEAD_BRANCH: pull リクエストのヘッドブランチ
  • $_BASE_BRANCH: pull リクエストのベースブランチ
  • $_HEAD_REPO_URL: pull リクエストのヘッド リポジトリの URL
  • $_PR_NUMBER: pull リクエストの数

author nameとかはないらしい cloud.google.com

pyenv 2.3.13

  • Fix pyenv-latest to ignore virtualenvs by @native-api in #2608
  • Show symlink contents in non-bare `pyenv versions' by @native-api in #2609
  • Ignore virtualenvs in `pyenv latest' in a clean way by @native-api in #2610
  • Fix link resolving in pyenv-versions by @laggardkernel in #2612
  • Add CPython 3.11.2 by @edgarrmondragon in #2615
  • Add CPython 3.10.10 by @edgarrmondragon in #2616
  • Add CPython 3.12.0a5 by @Afront in #2614

github.com

awscli 2.9.23

  • api-change:lexv2-models: Update lexv2-models command to latest version
  • api-change:backup: This release added one attribute (resource name) in the output model of our 9 existing APIs in AWS backup so that customers will see the resource name at the output. No input required from Customers.
  • api-change:workspaces: Removed Windows Server 2016 BYOL and made changes based on IAM campaign.
  • api-change:evidently: Updated entity overrides parameter to accept up to 2500 overrides or a total of 40KB.
  • api-change:chime-sdk-meetings: Documentation updates for Chime Meetings SDK
  • api-change:cloudfront: CloudFront Origin Access Control extends support to AWS Elemental MediaStore origins.
  • api-change:lakeformation: This release removes the LFTagpolicyResource expression limits.
  • api-change:lightsail: Documentation updates for Lightsail
  • api-change:emr-containers: EMR on EKS allows configuring retry policies for job runs through the StartJobRun API. Using retry policies, a job cause a driver pod to be restarted automatically if it fails or is deleted. The job's status can be seen in the DescribeJobRun and ListJobRun APIs and monitored using CloudWatch events.
  • api-change:lexv2-runtime: Update lexv2-runtime command to latest version
  • api-change:workdocs: Doc only update for the WorkDocs APIs.
  • api-change:migration-hub-refactor-spaces: This release adds support for creating environments with a network fabric type of NONE
  • api-change:glue: DirectJDBCSource + Glue 4.0 streaming options

github.com

Cloud Build env

トリガーでの設定はアンダースコア必須

steps:
# Uses the ubuntu build step:
# to run a shell script; and
# set env variables for its execution
- name: 'ubuntu'
  args: ['bash', './myscript.sh']
  env:
  - 'BUILD=$BUILD_ID'
  - 'PROJECT_ID=$PROJECT_ID'
  - 'PROJECT_NUMBER=$PROJECT_NUMBER'
  - 'REV=$REVISION_ID'

# Uses the docker build step to build an image called my-image
- name: 'gcr.io/cloud-builders/docker'
  args: ['build', '-t', 'gcr.io/$PROJECT_ID/my-image', '.']

# my-image is pushed to Container Registry
images:
- 'gcr.io/$PROJECT_ID/my-image'

cloud.google.com